TypeLoadException in mscorlib

G

gcrasher76

I'm using CF 2.0 SP1 and recently I've been getting this error. I'm
also using VS 2005 SP1.


Could not load type 'System.Collections.Generic.List`1' from assembly
'mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=969DB8053D3322AC'.


Has anyone seen this or have any idea what to do? Seems like something
is out of sync somehow. I've reinstalled CF on the device but it
doesn't help. Here's a portion of the loader log:



========================================
Process [\Program Files\Test\Test.exe]
ProcessID [0xeea243aa]
Date [2007/01/09] (yyyy/mm/dd)
Time [21:29:13] (hh:mm:ss)
NETCF [2.0.6129.00]
Platform [Windows CE v5.1.70 (PocketPC) WinCE5ARMV4I release V2\SP1
ARMV4I IJITv2]
========================================
GAC: Updating GAC [0x0]
GAC: Checking .gac files inside [\Windows\]
GAC: Found [Microsoft .NET CF 2.0.GAC] .gac file.
GAC: Found [System.SR.2.0.ENU.gac] .gac file.
GAC: Done with the file system check. Checking the registry.
GAC: Found [System.SR.2.0.ENU.gac] registry entry.
GAC: Found [Microsoft .NET CF 2.0.GAC] registry entry.
GAC: Done with the registry check. Let's compare.
GAC: Entry [System.SR.2.0.ENU.gac] is up to date.
GAC: Entry [Microsoft .NET CF 2.0.GAC] is up to date.
GAC: GAC is up to date.
Compatibility mode [2.0.0.0]

....

Missing Type. Class [System.Collections.Generic.Dictionary`2], Assembly
[mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=969DB8053D3322AC].
Missing Type. Class [System.Collections.Generic.List`1], Assembly
[mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=969DB8053D3322AC].
Missing Type. Class [System.Nullable`1], Assembly [mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC].
Missing Type. Class [System.Nullable`1], Assembly [mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC].
Missing Type. Class [System.Collections.Generic.List`1], Assembly
[mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=969DB8053D3322AC].
 
T

Tomer Gabel

Hello (e-mail address removed),

Can you post the complete code portion where this error occurs? Although
I'm pretty sure this isn't the case here, my experience shows that in the
CF a TypeLoadException or MethodLoadException often means you've done "something
unsupported," and not what you'd expect. What's the type you're using as
paramter to the container?

Regards,
Tomer Gabel (http://www.tomergabel.com)
Monfort Software Engineering Ltd. (http://www.monfort.co.il)
 
G

gcrasher76

I've posted code in a thread on MSDN forums

http://forums.microsoft.com/MSDN/ShowPost.aspx?PageIndex=2&SiteID=1&PostID=912709&PageID=1


Tomer said:
Hello (e-mail address removed),

Can you post the complete code portion where this error occurs? Although
I'm pretty sure this isn't the case here, my experience shows that in the
CF a TypeLoadException or MethodLoadException often means you've done "something
unsupported," and not what you'd expect. What's the type you're using as
paramter to the container?

Regards,
Tomer Gabel (http://www.tomergabel.com)
Monfort Software Engineering Ltd. (http://www.monfort.co.il)

I'm using CF 2.0 SP1 and recently I've been getting this error. I'm
also using VS 2005 SP1.

Could not load type 'System.Collections.Generic.List`1' from assembly
'mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=969DB8053D3322AC'.

Has anyone seen this or have any idea what to do? Seems like something
is out of sync somehow. I've reinstalled CF on the device but it
doesn't help. Here's a portion of the loader log:

========================================
Process [\Program Files\Test\Test.exe]
ProcessID [0xeea243aa]
Date [2007/01/09] (yyyy/mm/dd)
Time [21:29:13] (hh:mm:ss)
NETCF [2.0.6129.00]
Platform [Windows CE v5.1.70 (PocketPC) WinCE5ARMV4I release V2\SP1
ARMV4I IJITv2]
========================================
GAC: Updating GAC [0x0]
GAC: Checking .gac files inside [\Windows\]
GAC: Found [Microsoft .NET CF 2.0.GAC] .gac file.
GAC: Found [System.SR.2.0.ENU.gac] .gac file.
GAC: Done with the file system check. Checking the registry.
GAC: Found [System.SR.2.0.ENU.gac] registry entry.
GAC: Found [Microsoft .NET CF 2.0.GAC] registry entry.
GAC: Done with the registry check. Let's compare.
GAC: Entry [System.SR.2.0.ENU.gac] is up to date.
GAC: Entry [Microsoft .NET CF 2.0.GAC] is up to date.
GAC: GAC is up to date.
Compatibility mode [2.0.0.0]
...

Missing Type. Class [System.Collections.Generic.Dictionary`2],
Assembly
[mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=969DB8053D3322AC].
Missing Type. Class [System.Collections.Generic.List`1], Assembly
[mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=969DB8053D3322AC].
Missing Type. Class [System.Nullable`1], Assembly [mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC].
Missing Type. Class [System.Nullable`1], Assembly [mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC].
Missing Type. Class [System.Collections.Generic.List`1], Assembly
[mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=969DB8053D3322AC].
 
G

gcrasher76

In case anyone ever needs to know, the problem was the use of nullable
enumerations. Known bug in CF 2.0 and SP1. Explained here:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=717280&SiteID=1


I've posted code in a thread on MSDN forums

http://forums.microsoft.com/MSDN/ShowPost.aspx?PageIndex=2&SiteID=1&PostID=912709&PageID=1


Tomer said:
Hello (e-mail address removed),

Can you post the complete code portion where this error occurs? Although
I'm pretty sure this isn't the case here, my experience shows that in the
CF a TypeLoadException or MethodLoadException often means you've done "something
unsupported," and not what you'd expect. What's the type you're using as
paramter to the container?

Regards,
Tomer Gabel (http://www.tomergabel.com)
Monfort Software Engineering Ltd. (http://www.monfort.co.il)

I'm using CF 2.0 SP1 and recently I've been getting this error. I'm
also using VS 2005 SP1.

Could not load type 'System.Collections.Generic.List`1' from assembly
'mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=969DB8053D3322AC'.

Has anyone seen this or have any idea what to do? Seems like something
is out of sync somehow. I've reinstalled CF on the device but it
doesn't help. Here's a portion of the loader log:

========================================
Process [\Program Files\Test\Test.exe]
ProcessID [0xeea243aa]
Date [2007/01/09] (yyyy/mm/dd)
Time [21:29:13] (hh:mm:ss)
NETCF [2.0.6129.00]
Platform [Windows CE v5.1.70 (PocketPC) WinCE5ARMV4I release V2\SP1
ARMV4I IJITv2]
========================================
GAC: Updating GAC [0x0]
GAC: Checking .gac files inside [\Windows\]
GAC: Found [Microsoft .NET CF 2.0.GAC] .gac file.
GAC: Found [System.SR.2.0.ENU.gac] .gac file.
GAC: Done with the file system check. Checking the registry.
GAC: Found [System.SR.2.0.ENU.gac] registry entry.
GAC: Found [Microsoft .NET CF 2.0.GAC] registry entry.
GAC: Done with the registry check. Let's compare.
GAC: Entry [System.SR.2.0.ENU.gac] is up to date.
GAC: Entry [Microsoft .NET CF 2.0.GAC] is up to date.
GAC: GAC is up to date.
Compatibility mode [2.0.0.0]
...

Missing Type. Class [System.Collections.Generic.Dictionary`2],
Assembly
[mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=969DB8053D3322AC].
Missing Type. Class [System.Collections.Generic.List`1], Assembly
[mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=969DB8053D3322AC].
Missing Type. Class [System.Nullable`1], Assembly [mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC].
Missing Type. Class [System.Nullable`1], Assembly [mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC].
Missing Type. Class [System.Collections.Generic.List`1], Assembly
[mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=969DB8053D3322AC].
 

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