Hi @Richard Rosenheim ,
You can try the following two methods:
The first:
- In Solution Explorer, right-click the name of the web application and select Properties. Click the Web tab.
- In the Servers section, under dropdown selection for IIS Express, change the port number in the Project URL box.
- To the right of the Project URL box, click Create Virtual Directory, and then click OK.
- Save your changes, either by CTRL+S or clicking Save Selected Items that you will find in the File-menu.
The second:
- Right click on project select Unload project
- Again Right click and select Edit ProjectName.csproj
- Remove these 3 lines
<DevelopmentServerPort>0</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:62940/</IISUrl>
- Save and reload the project, and you are good to go.
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.