473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Cannot run exe to debug DLL in VS.NET 2003 - Unable to start debugging. Unable to start program. - Why???

Hello,

I'm using an executable (for which I do not have the source code nor the pdb
file) as the startup application to load a DLL I'm writing and need to
debug. If I try to debug the DLL I immediately get the error "Unable to
start debugging. Unable to start program XXX.exe". If I do "Start without
debugging" my startup application gets correctly executed. Is this problem
due to the fact I'm missing the debugging information for the exe??? The
VS.NET 2003 debugger seems to work fine (if I create for example a console
application I can debugging it without any issues). I also tried using
VS.NET 2005 and everything works as expected apart an initial notice that
the IDE could not find the debugging information for the executable. Is this
the issue with VS.NET 2003, is it the missing debugging info for the exe???
Any ideas?
Thanks.

Bob Rock
Nov 1 '06 #1
6 6159
I'm using an executable (for which I do not have the source code nor the pdb
file) as the startup application to load a DLL I'm writing and need to
debug. If I try to debug the DLL I immediately get the error "Unable to
start debugging. Unable to start program XXX.exe". If I do "Start without
debugging" my startup application gets correctly executed. Is this problem
due to the fact I'm missing the debugging information for the exe??? The
VS.NET 2003 debugger seems to work fine (if I create for example a console
application I can debugging it without any issues). I also tried using
VS.NET 2005 and everything works as expected apart an initial notice that
the IDE could not find the debugging information for the executable. Is this
the issue with VS.NET 2003, is it the missing debugging info for the exe???
Any ideas?
Missing debug information should not cause this problem.

Is this executable native or managed? Same for dll?

Is there any additional explanation in the error message?

--
Oleg
[VC++ MVP http://www.debuginfo.com/]

Nov 1 '06 #2
Missing debug information should not cause this problem.
>
Is this executable native or managed? Same for dll?

Is there any additional explanation in the error message?

--
Oleg
[VC++ MVP http://www.debuginfo.com/]
No additional info in the error message. I tried changing the startup exe to
any application like notepad or IE. I get the same exact result and message.
Anyway the original startup exe was a managed VB.NET 2002 compiled
application. But any exe leads to the same error.

Regards,
Bob Rock
Nov 1 '06 #3
BTW, I'm using a windows 2003 R2 standard edition + visual studio 6 + visual
studio .net 2003 + visual studio 2005. Everything service packed to the
latest bits.

Bob Rock
Nov 1 '06 #4

What happens if you open that same executable as a new solution?
(I mean something like File | Open Solution and select the .exe)
Will it be possible to debug it (and the dll)?

Oleg

Nov 1 '06 #5
"Oleg Starodumov" <com-dot-debuginfo-at-olegwrote in message
news:u1**************@TK2MSFTNGP04.phx.gbl...
>
What happens if you open that same executable as a new solution?
(I mean something like File | Open Solution and select the .exe)
Will it be possible to debug it (and the dll)?

Oleg
I do not have the source code for the original executable. Anyway, having
created a solution with a simple EXE that loads my DLL I can debug both the
EXE and the DLL . Still I cannot use an external executable as the startup
application for my DLL. This is most strange.

Bob
Nov 1 '06 #6
I do not have the source code for the original executable. Anyway, having
created a solution with a simple EXE that loads my DLL I can debug both the
EXE and the DLL . Still I cannot use an external executable as the startup
application for my DLL. This is most strange.
OK. So at least you have a workaround.

Also this narrows the problem down to the dll's solution.
Could you please list all settings on Project properties | Configuration Properties | Debugging
page?

Oleg


Nov 2 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ken Allen | last post by:
I have a service that was developed in C# that I wish to debug. The project resides on my desktop system and I wish it to execute on a remote test system (actually on the next desk). When I...
4
by: Stephen Miller | last post by:
Hi, I am running v1.1.4322 on Win2K server and unable to debug a ASP.Net application running locally, using a full URL (ie www.mysite.com). When I hit F5, I get the following error message: ...
6
by: Peter Afonin | last post by:
Hello: I'm running Windows server 2003. I've never had any problems with debugging, but now I cannot debug ANY of my projects. I'm getting this error: "Error while trying to run project:...
0
by: Andre S | last post by:
I have recently installed Visual Studio .NET and have been unable to debug a web project on my local machine. I have only created a standard web application and have a blank page. Running the...
1
by: Dale | last post by:
Hi, I got an error when I debug a asp.net program on a windows 2003 server. It said, 'Error while trying to run project: Unable to start debugging on the web server. You do not have permissions...
6
by: Scubadude | last post by:
Hi, I'm new to perl and have run into some roadblocks while trying to run tutorials. I have installed Apache v2.2.3 I have installed ActivePerl v6.6.1.638 I have installed php v5.2.0 I am...
11
by: benoitc | last post by:
I've been having a problem debugging an ASP.NET 1.1 application on an existing Windows XP/Visual Studio 2003 workstation that I've inherited from somebody else. The application builds fine, but...
5
by: =?Utf-8?B?SGFpcmxpcERvZzU4?= | last post by:
I have a component that was developed in VS2003 that I need to debug in a VS2005 application. Basic steps are: Build the component for Debug in VS2003. Set the following VS2003 project...
2
by: darrel | last post by:
Quick background: Our department reveived new PCs a few weeks ago. Alas, due to new security policies, we weren't immediately set up as admins of our own machines, so most of us developers had...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.