Iceman_Aragorn

How might I go about diagnosing a solution that once deployed, the
program doesnt start but instead says "*******.exe -
TypeLoadException" with no other info given on the error screen. The
program deployed and started fine until just yesterday, then it
started doing that every other deployment....now it consistently gives
that error.

What might I do to figure out whats going on

Some info

the solution has one main project, supported by two class libray
projects in the same solution, one of which uses sqllite.net
The main project uses OpenNetCF and OpenNetCF.windows.forms, and the
two supporting class libraries, as well as a dll built by a seperate
solution (a security library)....various other references all around
of course, but mostly standard stuff. Debugging does nothing, as the error seems to occur before the program even starts.

Why might the error give no additional details


Re: .NET Compact Framework How do you diagnose a TypeLoadException with no additional details.

Ilya Tumanov

Which version of NETCF are you using Could you installation be corrupted Have you tried hard reset/storage reformat and reinstall Does it work on another device What about available program memory on device






Re: .NET Compact Framework How do you diagnose a TypeLoadException with no additional details.

Iceman_Aragorn

Thanks for the ideas so far.


.NET CF 1.0 SP 3.

Installation isn't correupted (unless it can gradually become corrupted over a period of two days with virtually no changes affecting it).

Have done hard resets on the mobile device (symbol 9090).

The same problem occurs on other devices when attempting to install.

There is plenty of available memory on the devices.

Any other ideas/questions




Re: .NET Compact Framework How do you diagnose a TypeLoadException with no additional details.

tom_rdfds

I had similar problems when I started using corelab mysql connection thing. I never got to the route of the problem but I think somehow in the compilation process some glitch caused my program to reference a .net libary instead of a .net cf libary. The problem was sorted out by downloading a corelab update and I suspect possibly changing the structure of my program slightly. If it is the same problem I have it wouldn't even recognise a msgbox command. I suppose maybee creating a new project and adding items from the proper project untill you hit the error would do it..




Re: .NET Compact Framework How do you diagnose a TypeLoadException with no additional details.

Iceman_Aragorn

A glitch causing it to reference a .new library rather than a .net CF library does sound plausible.... The complexity of this program might make things difficult for me.

I did mention this is a a runtime problem, right I don't have any compilation or building errors.

I will attempt to see if any of the dozens of libraries I'm using are somehow mislinked... any hints on how to determine if something is a .net vs .net CF library

In the mean time, please feel free to provide more ideas.




Re: .NET Compact Framework How do you diagnose a TypeLoadException with no additional details.

Scarlett Lee - MSFT

.Net CF assemblies have the public key token 969DB8053D3322AC and most will be marked retargetable.




Re: .NET Compact Framework How do you diagnose a TypeLoadException with no additional details.

Iceman_Aragorn

It turned out to be a third party library.... oddly enough i still dont know the problem, jsut the solution.

If I, in VS2003, remove the project from the solution (of this 3rd party library), then re-add it in, the program consuming the library works. But then sometimes, it will still give a type load excception, so i repeat the "remove and readd the project to the solution" process.

odd. Well...i guess it's "solved", though not understood.