TypeLoadException

M

Maciek

Hello

I written aplication for merchant, which uses Sql Server CE, web
services and OpenNETCF library. Aplication work OK. But sometimes when I
try to launch application on Windows Mobile 2003 Second Edition, it's
crashed with TypeLoadException error. In details is "MobileSales.exe
TypeLoadException". Only hard reset and clean install make, that my
application work but after few days of working in application it crashed
again with TypeLoadException. Reinstalling all cabs without hard reset
dosen't help. When I install cab created in Debug configuration it's
work, but not in Relase Configuration. I don't know how to diagnose what
make TypeLoadException error.

Thank's for help.

Maciek
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Do you by any chance use #if DEBUG in your code?
Do a search for it in all the source code you compile


cheers,
 
M

Maciek

Ignacio Machin ( .NET/ C# MVP ) napisa³(a):
Hi,

Do you by any chance use #if DEBUG in your code?
Do a search for it in all the source code you compile


cheers,

Hi

I checked my code and didn't find any #if DEBUG. I think, that the
problem is with Winodws Mobile 2003 SE (I use Era MDA Compact device, it
based on T-MOBILE MDA Compact). I have some customers which use this
application on MDA || with Windows Mobile 2003 and they didn't have any
problem with TypeLoadException. Maybe the problem is with the Service
Pack for .NET Compact Framework. Do I have to install .NET Compact
Framework Service Pack 3 on devices with Windows Mobile 2003 Second
Edittion?

Thanks for your reply.

Maciek
 

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