File or assembly name 'System.Xml' not found

C

Cliff

I have a project that I converted from cf1.1 to 2.0 and it worked for a
couple builds, then out of nowhere I get the error:

File or assembly name 'System.Xml, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089', or one of its dependencies, was not found.

I have System.Xml in my list of references for this project, and
intellisense finds all of the XML classes inside of it with no problem. When
I deploy it, it shows System.Xml.dll sent to the pocket pc emulator with the
same signature as above. How do I fix this?
 
I

Ilya Tumanov [MS]

You have a reference to desktop assembly, that is not allowed.

NETCF PKT: 969DB8053D3322AC
Desktop PKT: B77A5C561934E089

Please remove it and replace with correct reference.

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).
 
C

Cliff

Is there any way to check which platform this is for and include the correct
assembly? I have this code to handle xml in a dll file that I want to use on
the pocket pc and on the desktop. All of the functions that I use are
available on both platforms.
 
I

Ilya Tumanov [MS]

You can open DLL in question in ILDASM and check out its manifest.

If you see a reference to "mscorlib" with desktop's PKT, this DLL can not be
used with NETCF.



If you'd like to share some DLL between NETCF and desktop, it needs to be
compiled for NETCF, not for desktop.

Compiling DLL against desktop and using it in NETCF project is the most
common way to run into this problem.


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