Port Error while running multiple server website

-3

Failed to register URL for site application "/". Error description: The process cannot access the file because it is being used by another process. (0x80070020) How to change the port for Project ?

c#
asp.net-mvc
asked on Stack Overflow Nov 6, 2019 by Jayesh Khandelwal • edited Nov 6, 2019 by Jayesh Khandelwal

2 Answers

0

Go to Your project location (Right Click on solution explorer and Open folder in file explorer). View Hidden Files. open .vs folder. Go to config folder and open applicationhost.config file with notepad and find your port which is in use and change with different port number it should be grater then older port and save file then close and run your project again and change your port to new port number.

answered on Stack Overflow Nov 6, 2019 by Jayesh Khandelwal
0

Assuming you're in Visual Studio and using the built in web host rather than IIS, select the Web Application project within Solution Explorer (if you have more than one project), and either right-click on the project folder and select "Properties", or choose "Project | [ProjectName] Properties" from the menu.

Switch to the Web pane and check the following options in the Servers section:

Ensure the first drop down is set to "IIS Express" and then update the port number in the "Project Url" field:

IIS Express settings for Web Application Project

answered on Stack Overflow Nov 6, 2019 by Zhaph - Ben Duguid

User contributions licensed under CC BY-SA 3.0