Visual Studio is installed on a new machine running Vista Ultimate (64-bit). Standard install was used, and no Windows settings were customized. In other words, VS should be bug free. Even after reinstalling VS, the error persisted. However, a pattern can be detected: The error occurs more frequently when the referenced JavaScript file is open in one tab while the ASPX page that references the JavaScript file is open in another tab.
To minimize the occurence of the TypeBuilderType error, ensure the referenced JavaScript file is not open in another tab. Furthermore, ensure that the script reference is complete - i.e., specify the language attribute, source attribute and the type attribute as follows: