The Web Application Project […] is configured to use IIS. The Web server […] could not be found.

前端 未结 26 1606
醉酒成梦
醉酒成梦 2020-12-07 07:30

I have a web project in my solution file that is \"unavailable\" when I open the solution. When I right-click on the web project and reload the project, I get the following

26条回答
  •  粉色の甜心
    2020-12-07 08:11

    Follow this completed solution step by step. it's works for me in VS 2017.

    1. Open Command prompt in administrator mode

    2. Open File explorer and got to .NET Framework folder

        Eg:C:\Windows\Microsoft.NET\Framework\v4.0.30319
      

      v4.0.30319 this is my .NET folder. you want to select your relevant folder.

    3. in CMD - Go to .NET folder path

      cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
      
    4. Execute below command in CMD

      aspnet_regiis.exe -i
      

      You can see this message finally - Finished installing ASP.NET (4.0.30319.0)

      iisreset
      

      You can see this message finally - Internet services successfully restarted

    5. Open IIS in your computer (if not config Follow this)

      1. Go to Site and right click

      2. Add WebSite

      3. Fill - Site name and select physical path

      4. Then type port number (you can find port number in .csproj file and port number must equal with (IISUrl)

      EG : http://localhost:15724/ my port is 15724
      

      Note : you cannot create port 80 number. because it used default IIS page

      1. Click Ok
    6. Open visual studio with administrator permission

    7. Then right click and reload your project

    Your Problem may be solved.

提交回复
热议问题