-
When deploying to emulator I get the following error...
".NET Compact Framework v2.0 could not be found. Please install it and run this setup again."
If I remove the reference to System.Data.SqlClient from my project the error goes away.
This message appears twice and I click ok and the program runs just fine. I am using Framework v3.5 and also I have "Deploy Latest Version Of .NET Framework" checked in my device settings. Also I am running from Visual Studio 2008.
One more note: I have a reference to System.Data.SqlClient in my project. If I remove this reference (which is required by the program) then I do not get the ".NET Compact Framework v2.0 could not be found" error on the emulator.
Also, when deploying to an actual device I never get the error. This is really not a big deal, just wondering if anyone else ran into this. One last thing I promise, I am certain this has nothing to do with "saving the state" of the emulator as I have cleared all of the save points.
答案
-
2008年2月21日 2:53(MSFT)87,075 Points
That's a known issue where VS can't distinguish between SQL Client from VS 2005 (which needs NETCF V2) and from VS 2008 (which works with both V2 and 3.5). It should only happen if you have both versions of VS installed.
You can install correct SQL Client CAB manually and save emulator’s state, VS won’t deploy it again. On device you probably have NETCF V2 installed or in ROM so installation works fine.
全部回复
-
2008年2月21日 2:53(MSFT)87,075 Points
That's a known issue where VS can't distinguish between SQL Client from VS 2005 (which needs NETCF V2) and from VS 2008 (which works with both V2 and 3.5). It should only happen if you have both versions of VS installed.
You can install correct SQL Client CAB manually and save emulator’s state, VS won’t deploy it again. On device you probably have NETCF V2 installed or in ROM so installation works fine.
-
2008年2月21日 16:080 Points
Thanks for the reply.
Can you tell me the name of the CAB file and should I just copy this file to the emulator using Active Sync?
-
2008年2月21日 17:16(MSFT)87,075 Points
You can see CAB's name in the VS deployment log. Then find the very same file, only under VS 2008, copy it to the emulator and click on it to install.
-
2008年3月19日 17:3310 Points
Where do I find the VS Deployment log?
Thank you
-
2008年3月28日 10:050 Points
rams7519 wrote: Same thing is happen with me.
I have deployed my application on standalone emulator v2 for WM 6.0.
But when I was running my application I got error message that Application could not be started.
And in details I got message NullReferenceException in one of my application file.
And when I am trying to install Compact Framework V2(SP1) ,emulator gives message as This version is already installed.
Plase Help me....If u know reason....
-
2008年7月7日 7:340 PointsWhen the VS is deploying your project into the emulator on the status bar of your VS shows the cab files which are copying and installing on the emulator.
-
2008年8月1日 2:180 Points
Hi:
I am a newbie writing his first pocket pc app. I have .net framework 1.1 and 3.5 installed and .net compact framework 3.5 and 2.0 sp2. When deploying to emulator, VS 2008 can't locate 2 cab files for the sql client and I get the error listed here. These two files are from 2.0 compact framework. It seem to deploy the 3.5 cab files fine. how do I correct this?
-
2008年8月13日 15:020 Points
hi,
C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\wce500
C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\wce400
depending on which processor are you using
this is the path where you can get cab file for compact framework v2.0.
-
2008年11月1日 7:33(Partner)0 Points
I had your excact problem and in a way I have both VS 2008 and VS 2005 (this cause of Reporting Services 2005).
The solution to your problem is this:
Start your project (you'll get your error in the emulator, just click OK)
Look in the output of your build in VS 2008 and look for the line eg, "Deploying 'C:\Program Files\Microsoft.NET\SDK\CompactFramework\v3.5\windowsce\NETCFv35.wm.armv4i.cab'
Open that local path and rightclick the cab-file. Check it's MB-size (in my case 2.58MB)
Share the folder to your network (the emulator should later connect to it)
Now when the emulator is up and running open it's File Explorer, Menu, Open path. Type \\yourcomputername. Select the shared folder.
Copy the correct cab-file (for me the whole name wasn't visible so the size did the selection for me) to eg. MyDevice\temp
Close your app in the emulator (if not done already)
Go to where you put the cab-file (temp) and click it. It will now reinstall CE Fremework and you will have to reboot the emulator.
When done make sure you Save the State of the emulator.
Done!!!
Hope it works for you...it shure did for me
Regards SgxMan