Search code examples
c#asp.netvisual-studio-2010

Can't open page in browser from Visual Studio


I checked out a project from TFS I had worked on a while ago, but when I pressed ctrl+F5 to launch it from Visual Studio, I got this message:

This address is restricted

This address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection.

How do I open this page?


Solution

  • Right click on the project and select Properties. Select the "web" tab and select "Auto assign Port" under Servers. Visual studio will automatically assign a port when it runs for you.

    enter image description here

    Or if you know a port which is available to use, you can specify that in the "specific port" section.