Odd Error

  • Thread starter Thread starter DrLargePants
  • Start date Start date
D

DrLargePants

Has anyone any idea what the following means:

Could not load type Microsoft.VisualBasic.CompilerServices.StringType
from assembly Microsoft.VisualBasic

It allways happens in the same place in a cf app, but only on certain
dev machines. Runs fine on others

Thanks

Séan
 
There was another question in my previous post. Is it a TypeLoadException?

Cheers
Daniel
 
Thing is if you try it with a different Ipaq you get a different error

Could this be the case of different devices = different versions? Check the
versions on each device:
http://wiki.opennetcf.org/ow.asp?CompactFrameworkFAQ/DeterminingVersion

If you find the one that it works on being pre-SP2 and the other on being
SP2 or SP3 then it is even more likely that you referencing a desktop
assembly somewhere (SP2 fixed a bug where the condition could be hidden):
http://blogs.msdn.com/jehance/archive/2004/07/06/174387.aspx

Cheers
Daniel
 
If you find the one that it works on being pre-SP2 and the other on being
SP2 or SP3 then it is even more likely that you referencing a desktop
assembly somewhere (SP2 fixed a bug where the condition could be hidden):
http://blogs.msdn.com/jehance/archive/2004/07/06/174387.aspx


hmm, same error even with SP3, it seems to be dependent on the machine if it
works or not though as they all work fine on my machine and not at all on
the other machine.

In fact even if I create a new CF project with one form and a msgbox I get

An unhandled exception of type 'System.TypeLoadException' occurred in
System.Windows.Forms.dllAdditional information: Could not load type
Microsoft.VisualBasic.MsgBoxResult from assembly Microsoft.VisualBasic,
Version=7.0.5000.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A.

This is a brand new clean install of xp (with all the service packs) and a
new install of Visual Studio.
 
Actually really strange error because the assembly:
Microsoft.VisualBasic,
Version=7.0.5000.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A

is an Assembly from Full Framework. Try to remove this reference and add
CF.NET assembly version. It must have the following signature:

Microsoft.VisualBasic, Version=7.0.5000.0, Culture=neutral,
PublicKeyToken=969db8053d3322ac


Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
Sergey is right -
"Microsoft.VisualBasic, Version=7.0.5000.0, Culture=neutral,
PublicKeyToken=969db8053d3322ac" is what included in NETCF SP3.

Pavel Treskunov
..NET Compact Framework
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Date: Fri, 21 Jan 2005 19:54:03 +0200
From: Sergey Bogdanov <[email protected]>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: Re: Odd Error
References: <[email protected]>
<[email protected]>
<[email protected]>
<u#[email protected]>
<[email protected]>
 
Sergey is right -
"Microsoft.VisualBasic, Version=7.0.5000.0, Culture=neutral,
PublicKeyToken=969db8053d3322ac" is what included in NETCF SP3.

Pavel Treskunov
.NET Compact Framework
This posting is provided "AS IS" with no warranties, and confers no
rights.


Excuse my ignorance but which reference am I looking at ?

Also this doesn't explain why it works fine on some dev machines and not
others
 
Back
Top