TypeLoadException error when running app on new WM2003 SE device

  • Thread starter Thread starter Anon
  • Start date Start date
A

Anon

Hi,
I created an application awhile back which works perfectly on devices all
the way up to Windows Mobile 2003. However, when I try to run it on a new
device running Windows Mobile 2003 SE (with Compact Framework SP2) I get
this error message:

"An unexpected error has occurred in <application>.
Select Quit and then restart this program, or select Details for more
information."

When I select Details, I get:

"<application>
TypeLoadException
Could not load type
System.Windows.Forms.TextBox from assembly System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral,PublicKey Token=B77A5C561934EO89."

Then my only option is to Quit.
I've seen similar posts concerning this, but haven't seen any fixes. Is
this a known problem and is there a fix?

Thanks,
dylanz
 
Hi Anon,

Do you have custom assemblies in your project?

Are you using "Delay Signing" for your project components?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconDelayedSigningAssembly.asp

This looks like the application can not find a method or property in one
the referenced assemblies.

Thanks

Ercan Turkarslan
Microsoft Mobile Devices Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top