Alex Rivera | Logout

Unable to start program 'http://localhost/Default.aspx'. VS2010

Asked 2011-06-09T14:26:12.337
10

I cannot start my website from Visual Studio 2010 anymore.

For a few days I cannot start my project in a web browser using F5. When I open my web application directly by typing the same url 'http://localhost/Default.aspx' everthing works fine.

When I run the project (F5) a new webbrowser starts, but after a few seconds it is stuck and Visual Studio gives an error dialog:


Microsoft Visual Studio

Unable to start program 'http://localhost/Default.aspx'.

OK


When I run the project in release mode it gives an extra error:


Microsoft Visual Studio

The following module was built either with optimizations enabled or without debug information:

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\6552bec6\694bce32\assembly\dl3\8c9bd8d8\fb1d75cb_af26cc01\[name].Presentation.DLL

To debug this module, change its project build configuration to Debug mode. To suppress this message, disable the 'Warn if no user code on launch' debugger option.

OK


I have already repaired, removed and reinstalled Visual Studio 2010, I've tried using different browsers (including Chrome and Firefox), used different aspnet_regiis.exe options, etc. etc.

Nothing helps, and yeah now I'm stuck pulling hair out of my head ...

Anyone any idea how to solve this?

Edit
Report

1 Answer

0

I had the same problem. When I debug my code it says:

Unable to start program 'C:\homework.exe'. this system cannot find the file specified."

I'm using Microsoft Visual C++ 2010 Express but when I made a new project by the following steps:

Open C++:

  1. Press new project
  2. Press win32
  3. Press win32 Console Application
  4. Rename it
  5. Click next
    make sure: that the application type is console application
    additional options: empty project*
  6. Press Ctrl+Shift+A
  7. In Visual C++/Code section press C++ File (.cpp)
  8. rename it and press add

It works fine with for me now.

answered 2012-01-20T12:44:51.537

Your Answer