Sunday, 18 January 2009

webdev.webserver error

I got the above error in VS.NET 2008 when running an ASP.NET app. When trying to debug or show in browser the IDE gives the error in the standard "report to microsoft" dialog box followed by the following message "unable to connect to the asp.net development server".

To fix this error:
  • Right click on the project in solution explorer.

  • Hit F4 for properties (don't right click for properties).

  • Change "Use Dynamic Ports" to false and enter a new port number. Use one quite close to the current port number, I used 1080. Default was 1071.

No comments:

Free Hit Counter