TypeLoadException "The signature is incorrect." needs more information - by JGWeissman

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 628218 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 12/3/2010 4:36:05 PM
Access Restriction Public


The method TypeBuilder.CreateType can throw a TypeLoadException with the message "The signature is incorrect." It does not say which signature is incorrect. It does not say how the signature is incorrect. This information is vital to figuring out how to fix the problem.

The stack trace is:

   at System.Reflection.Emit.TypeBuilder.TermCreateClass(RuntimeModule module, Int32 tk, ObjectHandleOnStack type)
   at System.Reflection.Emit.TypeBuilder.CreateTypeNoLock()
   at System.Reflection.Emit.TypeBuilder.CreateType()
Sign in to post a comment.
Posted by Microsoft on 2/10/2011 at 11:09 AM
Unfortunately, we won't be able to provide more detailed information on the type loading failures in the current version of the .Net Framework. We are however, keeping the bug so that we can consider it in a future version of the product. Thank you for using Visual Studio and the .Net Framework!

If you can provide a repro, I can try to figure out why type loading failed on the emitted type in your case.

Weitao Su
Microsoft Corp.
Posted by Microsoft on 12/3/2010 at 5:22 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)