Pocket PC Emulator Issue in VS 2005 Beta (Refresh 1)

I was recently playing with the new compact framework part of Visual Studio 2005 Beta 1 (which is released with the VSTS Edition) and am having a tough time getting to the emulator to wok when I try and debug the application. This is a simple hello world application and I tried using all of the following emulators with no luck:

  • Pocket PC 2003 SE Emulator
  • Pocket PC 2003 SE Emulator (Legacy)
  • Pocket PC 2003 SE VGA Emulator

Every time I try and “Deploy” to that the emulator comes up fine and I can connect to it, etc. but it cannot install the application for it and always get the Deploy error message (see the screen shots below). Also every time I try and “Power Off” the emulator, it comes right back up and does not really quit – it does not matter, if I save the state or do a soft or hard reset. All this time VS.NET is waiting for the emulator to exit. Ultimately I have to kill the process (DeviceEmulator.exe).

Image 1: The Emulator “Boots” Fine


Image 2: Other applications work fine


Image 3: I can also connect to the internet

Image 4: VS.NET is not Happy

I also get the following errors below, which are probably the crux of the issue.

No way to resolve conflict between “System.Xml, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes” and “System.Xml, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=969db8053d3322ac”. Choosing “System.Xml, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes” arbitrarily.

No way to resolve conflict between “System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes” and “System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=969db8053d3322ac”. Choosing “System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes” arbitrarily.

No way to resolve conflict between “System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes” and “System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=969db8053d3322ac”. Choosing “System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes” arbitrarily.

No way to resolve conflict between “System.Drawing, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes” and “System.Drawing, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=969db8053d3322ac”. Choosing “System.Drawing, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes” arbitrarily.

ResGen.exe /useSourcePath /r:”..\..\..\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\Microsoft.WindowsCE.Forms.dll” /r:”..\..\..\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\mscorlib.dll” /r:”..\..\..\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\System.Data.dll” /r:”..\..\..\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\System.dll” /r:”..\..\..\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\System.Drawing.dll” /r:”..\..\..\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\System.Windows.Forms.dll” /r:”..\..\..\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\System.Xml.dll” /compile Form1.resx,obj\Debug\PocketPCApplication1.Form1.resources

Csc.exe /noconfig /nostdlib+ /warn:4 /define:DEBUG;TRACE /reference:”..\..\..\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\Microsoft.WindowsCE.Forms.dll” /reference:”..\..\..\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\mscorlib.dll” /reference:”..\..\..\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\System.Data.dll” /reference:”..\..\..\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\System.dll” /reference:”..\..\..\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\System.Drawing.dll” /reference:”..\..\..\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\System.Windows.Forms.dll” /reference:”..\..\..\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\System.Xml.dll” /debug+ /optimize- /out:obj\Debug\PocketPCApplication1.exe /resource:obj\Debug\PocketPCApplication1.Form1.resources /resource:obj\Debug\PocketPCApplication1.Properties.Resources.resources /target:winexe Form1.cs Form1.Designer.cs Program.cs Properties\AssemblyInfo.cs

Does anyone have any idea on what is wrong or point me in the right direction?

Published by

Amit Bahree

This blog is my personal blog and while it does reflect my experiences in my professional life, this is just my thoughts. Most of the entries are technical though sometimes they can vary from the wacky to even political – however that is quite rare. Quite often, I have been asked what’s up with the “gibberish” and the funny title of the blog? Some people even going the extra step to say that, this is a virus that infected their system (ahem) well. [:D] It actually is quite simple, and if you have still not figured out then check out this link – whats in a name?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.