After installing the following patches for PB; Yearly 2003 QFE, Q1 2004
QFE
and Q2 2004 QFE and rebuiling a new image my CF application reports:
Unhandled exception of type 'System.TypeLoadException' occured in
TestApp.exe
Could not load type System.Data.DataSet from assembly System.Data,
Version=1.0.5000.0, Culture=neutral
When deploying this application from VS .NET 2003 to the target I get the
following warning:
Files in the package 'netcf.all.wce4.x86.cab' are more recent on the
device
than on the development computer.
I have not found any updates for VS that upgrades the CompactFrameworkSDK
folder where this cab file resides. Is there a way of building or updating
the cab file? The file is from 2002.
Rolf
Yes, your right - applications not using CF runs fine. The exception
that
I
get from an application using CF is:
Fatal Application Error - Application TestApp.exe has performed an
illegal
operation and will be shut down ... Exception: 0xC0000005
Is there a later QFE that fixes this problem ? What do you recommend I
should do?
Rolf
"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
wrote in message There was a bad QFE for CE 4.2 released a while back. If you built an
OS
with that QFE in, no .NET CF applications would run. Without the QFE,
they
were fine. Are you getting an exception when you try to run the
program?
If so, what?
Paul T.
The problem is not the application but that I have one CE .NET image
buildt
with the latest patches which does not run my application and another
older
CE image that runs the application without problems. Anyone that have
observed similar behaviour caused by using the quarterly QFE patches
for
PB
4.2? The application is the same and the target is the same.
Rolf
If your application is compiled as a desktop project it won't run on
the
device, it needs to be built against the Compact Framework as a
Smart
Device
project type.
Peter
--
Peter Foot
Windows Embedded MVP
www.inthehand.com |
www.opennetcf.org
Do have an opinion on the effectiveness of Microsoft Windows Mobile
and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
After upgrading my target system with a new version of CE .NET
I
get
the
following error when trying to run my application:
TypeLoadException
Could not load type
System.Data.DataSet from assembly
System.Data, Version 1.0.5000.0,
Culture=neutral
The application is a C# application using MS SQL desktop engine as
database.
I found a directory named "1.0.5000" under the ...\Visual
Studio
.NET
2003\CompactFrameworkSDK\... directory. I have one theory
that
the
problem
is caused by older files on the development system than on the
target
system, but I have not been able to find any simple way of
upgrading
the
Visual Studio .NET CF files. Any help on this matter would be
greatly
appreciated.
Regards,
Rolf Kragh