cannot use visual studio2015 for debugging

立祥 陳 1 Reputation point
2022-10-12T08:29:33.997+00:00

We have developed a web site the addres of which is aaa.bbb.ccc/Form.aspx. When we debug the aspx.cs codes, we turned off the website in IIS and in property page of the solution in Visual studio (VS) 2015, we set the starting URL http://localhost:2222/. We clicked at the IIS Expreeess to debug the codes. In this case, a browser would automatically showed up. In the URL of the browser, it showed localhost:2222/Form.aspx and the webpage was shown for the debugging. This has been done for many years without any problem. Recently, we tried to debug the codes again using the same method. However, after the IIS Express button in VS2015 is clicked, the URL in the browser showed localhost:2222 first and all of a sudden it was changed to aaa.bbb.ccc. Then, we got an error message: unable to connect to aaa.bbb.ccc. We guess that the reason of the error message was that aaa.bbb.ccc had been turned off in the IIS. Of course it could not be connected. But the question is why the URL in the browser was changed to aaa.bbb.ccc as opposed to localhost:2222 as shown before. We did not change any setting. As a result, currently we are not able to debug the codes using Visual studio. Does anyone know what went wrong? how do we fix the problem?

Developer technologies | Visual Studio | Debugging
Developer technologies | Visual Studio | Setup
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,691 Reputation points Microsoft External Staff
    2022-10-12T13:42:09.437+00:00

    Hi @立祥 陳 ,

    Welcome to Microsoft Q&A forum.

    Please right-click your web project > Properties > Web > and check if you set any Start URL.

    Best Regards,
    Tianyu

    • 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.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.