CF SP3 and Visual studio 2003

G

Guest

I installed CF SP3 on my PPC device.
Applications developed with .NET CS2003 no longer run (at launch it shows
message unable to load type from system.windows.form.control assembly
system.windows.form

If I unistall SP3 from device all works fine.
It seems executable generated by VS2003 aren't compatible with CF SP3.

Because new PDAs have SP3 preinsalled (i.e. HP2750) how can I instruct :NET
Visual Studio 2003 to use newer assembly?
 
R

Rob Blij

I had the same issue check to see that you havent added any standard windows
class libraries to your solution.

For some reason they make it tricky in so far that u need to add a new smart
device project THEN select class library to add an assembly.

Hope this helps I was stuck on the same typeloadexception story for ages.
(To check create a windows app and use the GetReferencedAssemblies method on
the assembly class i think it is and make sure you have no PublicTokenKey =
B7... etcetc that means it the full fx mscorlib you are referencing)

Rob
 
I

Ilya Tumanov [MS]

Are you getting TypeLoadException about something with
PublicKeyToken=b77a5c561934e089 been missing?

If so, that means your application and/or one of the libraries it uses is
compiled against desktop assemblies.

Applications and/or libraries compiled against desktop are invalid NETCF
applications and they won't run under SP2 or SP3 (they _might_ run on RTM or
SP1 under certain conditions).



The typical reason for that is choosing desktop library project and
deploying it to the device.

Instead you should choose Smart Devices projects and then choose class
library.



As to updating VS 2003 with SP3 bits, that's not supported (till VS updated
is out).

SP3 is device only installation. All correctly compiled in VS 2003
applications should run on SP3.


Best regards,


Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 

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