Compact Framework Service Pack 2 PROBLEMS!

G

Guest

I am developing a PocketPC Demo application in VS.NET 2003 using C#. I wanted
to change the background color of a Label, so I downloaded and installed SP2.
I am now having many problems.

First, when I deploy from VS.NET I get the following message:
"- Deploying to Pocket PC Device using TCP Connect Transport
...
- Files in the package 'netcf.all.wce4.armv4.cab' are more recent on the
device than on the development computer. Consider upgrading to the latest
version." etc. etc.

- First Question - Is that message expected? How do I upgrade my development
computer so that it matches the device? If this is possible, will the new
properties available in SP2 become available in the form designer?

Now the REAL Problem - When I run my application, I get the following
execption:
"An unhandled exception of type 'System.TypeLoadException' occurred in
WinCECMBTest.exe

Additional information: Could not load type System.Windows.Forms.TextBox
from assembly System.Windows.Forms, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089."

The application crashes when calling the constructor of a class from a Class
Library I made. The constructor programatically creates the TextBox. This
worked fine before upgrading to Service Pack 2. What is going on here?

Any ideas? PLEASE Help.
Thanks,

Jeff
 
A

Alex Feinman [MVP]

The warning is expected. The device has SP2 files that are newer than what
it in VS CF SDK directory. This should not cause any problems.

As for the error you get, it is caused by you trying to use a desktop class
library project, which is bound to the desktop mscorlib and other dlls. You
need to recreate that project using SmartDevice Application project item and
*then* selecting Class Library as the project type. This class library can
be used on both CF and desktop
 
G

Guest

That makes a lot of sense. Is there any way to change my existing project
from desktop to SmartDevice platform without having to create a whole new
project? I don't see an option for that in the project properties.

Thanks.
 
A

Alex Feinman [MVP]

Jeff T. said:
That makes a lot of sense. Is there any way to change my existing project
from desktop to SmartDevice platform without having to create a whole new
project? I don't see an option for that in the project properties.
No, you need to create a new project and import existing class files into it
 

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