Type loading Issue and SP2

M

Mark Dykun

Hello All,

We have a application that heavily uses reflection. With pre sp2 all worked
well. I just installed sp2 and recieved a Type Load Error with the specific
text....

Could not load type System.Windows.Forms, Version=1.0.5000.0,
Culture=neutral, Public ....

This type is refrenced from one of our compilied assemblies. My first
assumption is that because SP2 only updates the device that there is a
difference between the versions in SP2 and Visual Studio.net 2003.

The second is that the typeloader cannot resolve the type and the policy for
compatibility is broken.

Any help around this issue is appreciated.

Mark Dykun
 
S

Stan Adermann [Msft]

Mark,

Is the PublicKeyToken=b03f5f7f11d50a3a? If so, then your assembly is
incorrectly linked against the desktop libraries. RTM and SP1 allowed this
to retarget (incorrectly) in some cases; SP2 prevents this. If the
PKT=969db8053d3322ac, then your assembly is correct, and I would look to
see if the libraries on the device are perhaps corrupted.

Stan Adermann
Developer
Microsoft .NET Compact Framework

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: "Mark Dykun" <[email protected]>
| Subject: Type loading Issue and SP2
|
| Hello All,
|
| We have a application that heavily uses reflection. With pre sp2 all
worked
| well. I just installed sp2 and recieved a Type Load Error with the
specific
| text....
|
| Could not load type System.Windows.Forms, Version=1.0.5000.0,
| Culture=neutral, Public ....
|
| This type is refrenced from one of our compilied assemblies. My first
| assumption is that because SP2 only updates the device that there is a
| difference between the versions in SP2 and Visual Studio.net 2003.
|
| The second is that the typeloader cannot resolve the type and the policy
for
| compatibility is broken.
|
| Any help around this issue is appreciated.
|
| Mark Dykun
|
|
|
|
 

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