Pocket PC Networking >> "Error while trying to run project: Unable to start debugging"

by QW5kcmV3IEJyb3du » Wed, 30 Mar 2005 17:39:02 GMT

Through Google web and Usenet searches, I've seen this question asked many
times before. But none of the proposed solutions I've found have resolved my
problem.

Environment:
* Windows XP Professional SP2, all critical updates as of 2005-03-28 installed
* IIS installed through "Add/Remove Windows Components"
- SMTP unchecked
- Frontpage 2000 Server Extensions checked
- Printers virtual directory unchcked
* Visual Studio .Net 2003 Enterprise Architect installed
- FULL install (all nodes in VS setup are checked, no "grey"/partial
checks)
- Installed to custom path: %SystemDrive%\opt\vs-7.1
* NO other software installed
* Machine is connected to the internet

Problem:
Attempt to debug a smart device project through the PPC 2002 Emulator:
1) Start VS .Net 2003
2) File | New | Project...
3) For "Project Types", choose VC# Projects ; for "Templates", choose Smart
Device Application. Click OK.
4) Debug | Start
5) When prompted, choose "Pocket PC 2002 Emulator", click Deploy

Actual Result:
After a successful deployment, I see the following in the Build Output window:

--- BEGIN copy of Build Output ---
Launching Application
Error while trying to run project: Unable to start debugging.

Unable to start program 'E:\Documents and Settings\Andrew\My
Documents\Visual Studio
Projects\SmartDeviceApplication1\bin\Debug\SmartDeviceApplication1.exe'.
--- END copy of Build Output ---

Expected Result:
Successful debug session launched

Notes:
1) "Debug | Start Without Debugging" from the IDE *DOES* launch the device
app successfully in the emulator.

2) I have tried all of the following (and much more) with no success:
- Tried disabling Windows Firewall
- Tried installing the Microsoft Loopback Adapter
- Tried reading through the topics referenced in this post:
http://groups-beta.google.com/group/microsoft.public.pocketpc.developer/msg/a28f0a143ea04865?dmode=source ; but none of them resolved my situation
- Tried installing the Windows CE Utilities for Visual Studio .Net 2003
Add-On Pack 1.1. Most of its contents looked relevant to debugging on
physical devices. I tried running the included .reg file (can't recall the
name), but I alreadyhad all the registry settings it contained, and it made
no difference to the repro.

I have seen this on 3 different machines with an environment like what I
have described above. I'm almost convinced that something about the
non-default install or installing to a custom path is tripping me up -- I
later gave in and did a default install on one of those same machines, and
debugging of device projects on the emulator worked fine.

I humbly request if someone could tell me if what I describe is a known
issue, and if there are any further suggestions (beyond what I've already
tried and described above) on how I could resolve this problem.

Thanks,
Andrew Brown



Similar Threads

1. "Error while trying to run project: Unable to start debugging" - p

2. Error starting to debug C# on ARM target: "Unable to start debugging" - Pocketpc Developer

3. Error starting to debug C# on ARM target: "Unable to start deb

4. Error starting to debug C# on ARM target: "Unable to start debuggi - Pocketpc Developer

5. Unable to start debugging/ Unable to Start Program

I am trying to use the Pocket PC 2002 emulator with a C#.NET app for Pocket PC.  Sometimes I am able to step through my code while my app is running on the emulator but most of the time I get an error

Unable to Start debugging.  Unable to start program. 

However, the emulator contains my application in the 'Program Files' folder on the Pocket PC.  When I try to delete the
program on the emulator, it gives me an error stating that the file is locked and cannot be deleted

If anyone could help me with this problem would be great.

6. "Error while trying to run project: Unable to start debugging" - perhaps due to custom VS .Net 2003 install? - Pocketpc Developer

7. SOLVED (was: ...start new project, no debugging info?!?)

Sandor Spruit wrote:
> Hi,
> 
> I've just finished my first experiments with VS2005, C#, .Net.
> 
> Now I want to start a new project from scratch, but debugging does not 
> seem to work as advertised. I'm targeting a Dell Axim x51v Pocket PC 
> connected to my developer machine through USB, ActiveSync 4.1.
> 
> The symbol for my breakpoint turns from a big, filled, red dot into an 
> outlined dot with an exclamation mark - somewhere during the rebuild, 
> deploy, start-up cycle.
> 
> Help in the tooltip seems to suggest I do not have debugging symbols or 
>  information, but I am sure I have set my Configuration to 'Debug'. Any 
> suggestions? I got a nagging feeling that I'm overlooking something very 
> obvious, but I'm out of options now. Hints much appreciated,

This turned out to be a versioning issue. Brilliantly disguised as some 
other problem through the use of to-the-point error messages </sarcasm>. 
Somehow, my PDA had a different version of the .Net compact framework. 
Visual Studio and the PDA were no longer compatible. Found the answer in 
the newsgroup on debugging.

Sandor

8. Unable to run IE from Run command in Start Menu - Windows XP Help&Support