jccorner Posted December 19, 2005 Posted December 19, 2005 Has anyone else run into this issue?? I have a form with a tab control with over two thousand controls and when I go to run, this is the error I receive. Appreicate any help. Quote Applying computer technology is simply finding the right wrench to pound in the correct screw
Leaders snarfblam Posted December 20, 2005 Leaders Posted December 20, 2005 InvalidProgramException The exception that is thrown when a program contains invalid Microsoft intermediate language (MSIL) or metadata. Generally this indicates a bug in the compiler that generated the program. [/Quote] As the text says, this could be due to a compiler bug. I believe that this exception also occurs when unverifiable code is encountered. This can also happen when you use certain features such as unsafe code (C#). Since the designer still works, this is most likely not a problem occuring in designer generated code. Unfortunately, with an error message so vague good help is hard to provide. One other suggestion that might hint at the nature of the issue is to change your .Net runtime configuration (I'm not sure how, but it can be found in MSDN) to run unverifiable code and see if it resolves this issue. If so, then the code you are using (or a bug in the compiler) is producing unverifiable code. There is an MSDN article that discusses this exception. Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.