Morrolan
Morrolan

Reputation: 77

Unable to debug ASP.NET application - "page cannot be displayed"

I am a php/python programmer with a good basic understanding of .NET and visual studio. I have been asked to look at a bug in an ASP.NET application at work (dev has left), but I don't understand why it won't allow me to debug the application?

The application will build fine with zero errors or warnings.

my web.config has:

<configuration>
...
  <system.web>
  ...
    <compilation debug="true" targetFramework="4.5">

and in the solution properties, the ASP.NET debugger is ticked. So far I have been following this msdn article, and Solution properties > Web > Servers shows 'Use Visual Studio Development Server' and 'auto-assign port' are both ticked/active.

However when I attempt to debug the application, I get "page cannot be displayed". I have unticked "show friendly HTTP error messages" in IE, and all I get in return is:

This page can’t be displayed

•Make sure that the web address http://localhost:52566 is correct.

•Look for the page with your search engine.

•Refresh the page in a few minutes.

I'm not sure what else to check, and so far everything I've found on Google seems to deal with debugging on remote servers or IIS etc, but I'm only using the built-in dev server?

Upvotes: 2

Views: 5058

Answers (2)

Falanor
Falanor

Reputation: 206

I've had a similar issue where I had to run VS as administrator if i was using an impersonator user.

Upvotes: 0

Nitin Alapati
Nitin Alapati

Reputation: 79

Try to access a page.. Example - Default.aspx Example-- http://localhost:52566/Default.aspx

Set a start page for your web application by right clicking on a page in your solution and clicking set as start page.

Upvotes: 1

Related Questions