title: How can I run my Windows CE project from within Visual Studio (2003)?
body: <p>I'm working on a legacy app that needs to be continued in VS 2003; I cannot effectively debug it, though, because when I try to run it, I get the following dialog:</p>
  
  <p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p>
  
  <p>Deploy </p>
  
  <p>Choose the device to target. If the .NET Compact Framework is not already on the selected device, it will be deployed along iwth your application.</p>
  
  <pre><code>Pocket PC 2002 Emulator
  Pocket PC Device
  Windows CE .NET Device
  Windows CE .NET Emulator (Default)
  </code></pre>
  
  <p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p>
  
  <p>I am running this (VS 2003) in XP Mode (Virtual Machine) on Windows 7. I do not have a connection (from XP Mode) to the device - a Symbol/Motorola PDT 3090 - so I get, "Unable to connect" when trying to run/debug/deploy in VS 2003.</p>
  
  <p>What has been the case up to now is the developer would build the binary, adding debug messages, and then copy the binary over to the device and run it. Rather than continue this method, I would prefer to be able to debug it from within VS 2003. Is there a way to do this? None of the options (Pocket PC 2002 Emulator, etc.) seem to work...the device is attached to the computer via a usb. The Emulators won't work because they don’t have the necessary hardware (barcode scanner). So I need to use one of the *Device options, but have not been able to connect the usb port to XP Mode.</p>
  
  <p>Does anybody have any ideas on how to debug without the constant copying-and-replacing of binaries, and the use of "show message"?</p>
  
  <h2>UPDATE</h2>
  
  <p>Alternately, if I can't run the app from within VS 2003 / XP Mode as an emulator, it would also be fine to run it on the attached Motorola handheld, attached via usb cable from the cradle to the desktop computer; I prefer the former, for the debugging capabilities afforded, but even the latter would be better than my current predicament (copying the files to the handheld device, detaching it from the computer, attaching it to the belt printer, firing it up, testing and repeat ad nauseum ad infinitum). ASAP (within two hours), I will set a bounty on this question.</p>
  
  <h2>UPDATE 2</h2>
  
  <p>If I try to run from VS 2003 in an emulator, and select "Windows CE .NET Emulator (Default)", I get:</p>
  
  <p><em>"Emulator for Windows CE will not run within another copy of Emulator for Windows CE. 
  You just had to try, didn't you?"</em></p>
  
  <p>?!? Is it saying this because I'm in a VM (XP Mode) session?</p>
  
  <p>Then I select "OK" (the only option), and get, "There were deployment errors. Continue?" That trick never works; it even causes the build to fail (a rebuild fixes that, though).</p>
  
  <h2>UPDATE 3</h2>
  
  <p>Perhaps my problem with not being able to debug by connecting to the device itself is related to this msg I saw when booting up this morning (but I don't know what to do about it, IF this is the problem - do I need to search for a new driver for the Motorola MC3100?):</p>
  
  <pre><code>Devices or applications disabled.
  Virtual PC/Windows CE Emulator will cause Windows to become unstable. Windows has prevented these drivers from loading. click here for more details.
  </code></pre>
  
  <p>The "more details" are:</p>
  
  <pre><code>Virtual PC/Windows CE Emulator 
  Microsoft 
  
  --------------------------------------------------------------------------------
  
  Issue Description: 
  
      A driver is installed that causes stability problems with your system. This driver will be disabled. Please contact the driver manufacturer for an update that is compatible with this version of Windows. 
  
      Contact Information: 
  
      Web Site: http://go.microsoft.com/fwlink/?LinkId=26320
      Telephone: 1-800-936-5800
  </code></pre>
  
  <p>That link (<a href="http://go.microsoft.com/fwlink/?LinkId=26320" rel="nofollow">http://go.microsoft.com/fwlink/?LinkId=26320</a>) ended up as: "Internet Explorer cannot display the webpage"</p>
  
  <h2>UPDATE 4</h2>
  
  <p>There is some headway (or perhaps just false hope) on the connecting to the device front:</p>
  
  <p>I have 4 USB ports on my desktop machine. I plugged the USB cable into the 3rd from the top for the first time a bit ago. It then said it was recognized, and ActiveSync was finally able to make a connection.</p>
  
  <p>So I then tried deploying the app again. The fourth option (the default - C.E. Device Emulator) failed as always. So did the penultimate choice (C.E. device). The second option, though (Pocket PC device), seems to possibly be working.</p>
  
  <p>However, I got a cryptic err msg that just said:</p>
  
  <pre><code>#183:
  </code></pre>
  
  <p>I dismissed that and since then (it's been a good ten minutes now), the bottom of the VS Output windows has been saying "Launching Application" (with a blinking cursor beneath it) and the task bar has been claiming "Deploy started..."</p>
  
  <p>Whether that is really of any value, though, it doesn't appear to be, as I am just "stuck" there...</p>