Blogs

Can't start debugging in VS 2003 after installing SP1

  • Comments 1
  • Likes

Some customers are reporting problems with start debugging an application after VS2003 SP1 has been installed. Here is the scenario:

You have a managed project open (like, for example, a C# class library) and in the Project Properties, under Configuration Properties | Debugging you have Debug Mode = "Program" and Start Application = <some application that will load either this dll or other managed code you wrote> and when you F5 you are getting the an error messge saying that your .exe was not found.

If you are running into this issue please check to see if the .NET Framework 2.0 is installed on your machine (i.e. you have the following directory on your machine: <system drive>:\WINDOWS\Microsoft.NET\Framework\v2.0.50727). If you have this installed, here is a workaround you could try:

Create a file called <your exe's name>.exe.config with the following contents and place it next to your exe on your machine:

<?xml version="1.0"?>

 <configuration>

             <startup>

                <supportedRuntime version="v1.1.4322"/>

                <requiredRuntime version="v1.1.4322" safemode="true"/>

            </startup>

</configuration>

This will force your exe to load the 1.1 version of the runtime instead of the 2.0 one which otherwise would be loaded by default since it's the latest version available. The VS2003 debugger does not support debugging against the 2.0 version of the .NET Framework hence the problem.

Hope this helps!

Comments
  • I want IE7 but I want to test my VS.NET 2003 applications on IE 5.5 - fiddly but can be done

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment