An unhandled exception of type 'System.TypeLoadException' occurred

G

Guest

hello,

I am developing application in .NET Compact frame work i am getting error :


An unhandled exception of type 'System.TypeLoadException' occurred in
System.Windows.Forms.dll

Additional information: Could not load type
Microsoft.VisualBasic.CompilerServices.StringType from assembly
Microsoft.VisualBasic, Version=7.0.5000.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A.

please help me to solve this problem

Jayakumar.A
 
D

Daniel Moth

You are referencing the desktop MS.VB.dll rather than the CF one. How you
got in that situation I am not sure (maybe you used the upgrade vb6 code
wizard which is not smart enough to know it is in a CF project) but you can
remove the reference from your project (references and referencepath) and
try again.

Cheers
Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top