mscorlib problem

A

Art

I develope the .NetCF app in PPC.
When I run, it shows the error, like mscorlib desktop version conflicts with
mscorlib ppc version.
Someone tells me to remove the mscorlib desktop version, and install the ppc
version, but how to do that ? I try, but can't do that.
How to remove the mscorlib desktop version? How to get the mscorlib ppc
version, and how to install?

Thank you so much.


Error: The dependency 'mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=969db8053d3322ac' in project 'HopeStudy' cannot be copied to
the run directory because it would conflict with dependency 'mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
 
M

Maarten Struys, eMVP

What you should do is check the mscorlib reference in VS.NET's Solution
Explorer and make sure it's not pointing to
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll. If it does,
remove this reference and add a reference to C:\Program Files\Microsoft
Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows
CE\MSCorLib.dll (assuming you have installed VS.NET in the default path).
After checking this reference simply build your project again and now it
should deploy.

Regards,
Maarten Struys, eMVP
PTS Software bv

www.opennetcf.org | www.dotnetfordevices.com
 
A

Art

When I add the Mscorlib reference and look at it, it points to "C:\Program
Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\WindowsCE\MSCorLib.dll", then I remove
the mscorlib from my project's references. (for I don't use it.)

In my project, I only have these references...
OpenNETCF.Windows.Forms
System
System.Data
System.Data.Common
System.Data.SqlServerCe
System.Drawing
System.Windows.Forms
System.Xml

This error happens after I install and add the OpenNETCF reference.

Error: The dependency 'mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=969db8053d3322ac' in project 'HopeStudy' cannot be copied to
the run directory because it would conflict with dependency 'mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

When I remove the OpenNETCF reference, everything go fine.
How can I do?

Thank you so much.
 
M

Maarten Struys, eMVP

It looks like you are using a OpenNETCF stand-alond library. You could
consider using the Smart Device Framework. If you install SDF and make use
of one of our controls or components in a project all references are set
automatically. By the way, you need the device version of mscorlib. Are you
deploying to a device? Could it be that there is a wrong version of mscorlib
on your device? If you are running on a device you might want to reset the
device before deploying.

Regards,
Maarten Struys, eMVP
PTS Software bv

www.opennetcf.org | www.dotnetfordevices.com
 
A

Art

Thank you so much.
Where can I get the device version of mscorlib ?
How can I check whether it's wrong version or not ?
Everytime I test my app, I run it in my ppc (ipaq3870).
When I deploy, I build the CAB, and copy to other devices.
Now, I still can't use the OpenNETCF.

Regards,
 

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

Similar Threads


Top