IT story

IIS Express 웹 서버를 시작할 수 없습니다. URL을 등록하지 못했습니다. 액세스가 거부되었습니다.

hot-time 2020. 6. 23. 07:20
반응형

IIS Express 웹 서버를 시작할 수 없습니다. URL을 등록하지 못했습니다. 액세스가 거부되었습니다.


일부 웹 프로젝트는 문제를 일으키는 반면 다른 웹 프로젝트는 문제를 일으 킵니다. 나는 문제가있는 것 중 하나에 집중하기로 결정했습니다. Windows 7에서 Visual Studio 2013을 사용하고 있습니다. 관리자로 실행한다고 생각 PROJECT NAME - Microsoft Visual Studio (Administrator)합니다.

프로젝트를 실행하려고하면 다음과 같은 팝업이 나타납니다.

Unable to launch the IIS Express Web server.

Failed to register URL "http://localhost:62940/" for site "SITE NAME"
application "/". Error description: Access is denied. (0x80070005).

이것은 전혀 드문 일이 아니지만 운이없이 많은 제안을 시도했습니다.

  1. 을 (를) 삭제 %userprofile%\Documents\IISExpress\하고 실행하려고했습니다.

  2. netsh http add urlacl url=http://localhost:62940/ user=everyone, 재부팅 및 실행을 시도했습니다. (실제로 user=Alla스웨덴어 Windows 이후).

  3. netsh http delete urlacl url=http://localhost:62940/다시 부팅 및 변경 <binding protocol="http" bindingInformation="*:62940:localhost /><binding protocol="http" bindingInformation="*:62940:/>에서 %userprofile%\Documents\IISExpress\config\applicationhost.config실행하려고 노력했다. (오류 메시지가라고 변경되었습니다 ... URL "http://*:62940/" ....

  4. 다시 설치된 IIS 8.0 Express

  5. Visual Studio 2013 재설치

나는 재치가 끝났어. 내가 뭘 잘못하고 있니?

편집 1 : 프로젝트의 포트 (예 : 55555)를 변경하면 시작됩니다 ...이 프로젝트는 여러 사람들이 작업하기 때문에 바람직한 해결책이 아닙니다. 포트가 다른 것에 의해 차단되었을 수 있습니까? 그렇다면 무엇을 확인하는 쉬운 방법이 있습니까?

편집 2 : 포트 62940이 비어있는 것 같습니다. 실행 중이면 netstat수신 대기중인 응용 프로그램이 표시되지 않습니다. 다른 것이 잘못되었습니다.

편집 3 : 몇 달 동안 프로젝트를 만지지 않은 채 오늘 프로젝트를 시작했습니다. 효과가 있었지만 이유를 모르겠습니다.


프로젝트 포트변경하여 오류를 해결했습니다 .

다음 단계를 수행했습니다.

1-프로젝트를 마우스 오른쪽 버튼으로 클릭하십시오.
2-속성으로 이동하십시오.
3- 서버 탭으로 이동 하십시오.
4-탭 섹션에서 8080 또는 3000과 같은 다른 포트의 프로젝트 URL을 변경하십시오.

행운을 빕니다!


이를 정리하는 가장 좋은 방법은 IIS Express 트레이 아이콘을 사용하여 문제를 일으키는 웹 사이트를 중지하는 것입니다. 이렇게하려면 작업 표시 줄의 오른쪽 끝에있는 작은 위쪽 화살표를 클릭하고 IIS Express 아이콘을 마우스 오른쪽 단추로 클릭하십시오. 그러면 IIS Express가 현재 실행중인 웹 사이트를 보여주는 작은 창이 나타납니다.

IIS Express 팝업

"사이트보기"아래에있는 항목 중 하나를 클릭하면 해당 사이트를 중지 할 수 있습니다. 또는 창의 맨 아래에있는 종료 항목을 클릭하여 모든 웹 사이트를 중지 할 수 있습니다.

Visual Studio에서 디버깅 할 수 있어야합니다. 다시 디버깅을 시작하면 IIS Express가 웹 사이트를 자동으로 다시 시작하므로 포트를 할당 할 수 있어야합니다.

실패하면 더러워 야합니다. Windows 작업 관리자를 열고 Microsoft.VisualStudio.Web.Host.exe*32프로세스를 종료하면 프로젝트를 정상적으로 실행할 수 있습니다. IIS Express가 완전히 종료되므로 모든 웹 사이트가 중지되므로 다른 웹 사이트를 디버깅하려면 VS에서 각 웹 사이트를 다시 시작해야합니다. 더 깨끗하고 안전한 팝업 아이콘 방법을 먼저 사용해보십시오.

이것이 당신의 문제에 답하는지 모르겠지만 그것은 저에게 효과적입니다.

업데이트 JasonCoder 덕분에 Win10에, 프로세스가 있음을 추가하기 위해 (아래 설명을 참조)Microsoft.VsHub.Server.HttpHost.exe


Visual Studio 2015를 사용할 때 솔루션은 이전 답변과 약간 다를 수 있습니다. VS2015는 솔루션 파일과 동일한 폴더 아래에 숨겨진 폴더 .vs를 만듭니다. 아래에는 applicationhost.config를 포함하는 구성 폴더가 있습니다. 이 파일 (또는 전체 .vs 폴더)을 삭제 한 후 VS2015를 시작하여 다시 작성하면이 오류를 해결할 수 있습니다.


시도 (고급 관리자)

netsh http delete urlacl url=http://*:62940/

최근 에이 오류가 발생했습니다. 위의 모든 수정 사항을 시도했지만 작동하지 않았습니다.

비활성화하려면 services.msc명령 프롬프트에 입력 한 다음 마우스 오른쪽 단추를 클릭하고 인터넷 연결 공유를 비활성화하십시오 . 시작시 비활성화하기 위해 속성을 편집했습니다. 내 모습은 이제 다음과 같습니다. services capture screenshot .


I just had a similar issue. I'm not totally sure how to describe the actual fault but it seems like the hostname in the reservation is incorrect. Try this in an elevated command prompt...

netsh http delete urlacl url=http://localhost:62940/

... then ...

netsh http add urlacl url=http://*:62940/ user=everyone

and restart your site. It should work.


This happened with me when I was trying to access my site from a remote location:

At first, applicationhost.config (VS2015) contained the standard:

<binding protocol="http" bindingInformation="*:64376:localhost" />

In order to access my site from a remote location within the network, I added (step 1):

<binding protocol="http" bindingInformation="*:64376:192.168.10.132" />

Then, I entered into CMD with Admin rights (step 2):

netsh http add urlacl url=http://*:64376/ user=Everyone

As step 3, I added it a rule to the firewall.

netsh advfirewall firewall add rule name=”IISExpressWeb” dir=in protocol=tcp localport=64376 profile=private,domain remoteip=localsubnet action=allow

Then, I got this error when trying to run the solution again.

Solution: I seemed to have done everything right, but it did not work until I ran netsh also for the existing localhost rule:

netsh http add urlacl url=http://localhost:64376/ user=Everyone

Now, it works again.


Yeah, I agree, top answers are really pro solutions,

here is one for intermediates,

Solutions Explorer

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


After trying a number of suggested solutions without success I just rebooted my PC. After that the problem didn't occur anymore.


I ended up with cleaning the project file (csproj) and the applicationhost.config (iis express) with all entries regarding iis express configuration. After that, it worked.


I ran into this same error message, but it looks like it was produced from IIS Express. This article helped me resolve it

TL;DR

Run the following command from an Administrative command prompt:

> netsh http add iplisten ipaddress=::

If you're having this after installing Visual Studio 2015 and you can see Error messages in System event log such as this: Unable to bind to the underlying transport for [::]:{your_port}. . The IP Listen-Only list may contain a reference ... then you might be missing a registry entry.

Run this under administrative command prompt: netsh http add iplisten ipaddress=:: to fix it.

I found the solution described in detail here


After all of the steps listed here failed for me I got it working by running VS2015 as administrator.


This happened to me on Windows 10 and VS 2013. Apparently there is a maximum port number IIS Express handles. Ports above 62546 don't work for me.


The error can be solved if you just restart Visual Studio. It has the same effect as restarting the Microsoft.VisualStudio.Web.Host.exe*32 process.


My issue turned out to be that I had SSL Enabled on the project settings. I simply disabled this because I did not require SSL for running the project locally.

In Visual Studio 2015:

  • Select the project in the Solution Explorer.
  • In the Properties window set SSL Enabled to False.
  • I was able to run the project.

In my situation I was getting an error about port 443 in use because this was the port set on the SSL URL for the project.


Go to the project "Properties" => "Web", and on the "Servers" section change the port to something else that is not used in and save it. You will be asked to created a virtual directory and click "Yes". Now run the project and it will work now.


In my case it worked at first and after a while stopped working and IIS Express reported that the port was in use.
netstat -ab showed that Chrome was using the port. After I quit Chrome, it started working again.
I am not sure however, why Chrome would occupy that port.


This happened to me on Windows 7 and VS 2013 while viewing a project on the browser after build. I only had to close the browser "Chrome" then made sure that the port is not in use in my Network Activities using some utility (Kaspersky) then tried again and worked without any problems.


In Visual Studio 2015:

  • Find your startup page in your project (eg: mypage.aspx) , and right click on it.
  • Click on Set as Start Page.
  • Right click on the project.
  • Click on Properties.
  • Click on the Web Tab on the left.
  • In Project URL, enter a different port, such as: http://localhost:1234/
  • In Start Action, select Specific Page: mypage.aspx or select Specific URL: http://localhost:1234/mypage.aspx?myparam=xxx

I write it for information.

Delete the file in the project.

After Clean>Build>Proje Start


Running netstat -abn I noticed that the software "Duet Display" was reserving thousands of ports in the ~51000 range.

Closing it solved my problem.


Sometimes this error my be another Visual Studio version running on the same machine.


Looks like everybody has own problem Just sharing what I did to fix this problem in VS2015 (Windows 8.1), my solution has 6 web sites (not web apps)

  1. Open your solution file *.sln
  2. Change in your solution file string VWDPort = "34781" (make it unique in your solution if you have more that 1 web site, I made +2) in notepad.

See sample solution file ProjectSection(WebsiteProperties):

Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "BOSTONBEANCOFFEE.COM", "Source_WebOfficeV4\BOSTONBEANCOFFEE.COM", "{5106A8F5-401B-4907-981C-F37784DC4E9D}"
ProjectSection(WebsiteProperties) = preProject
    SccProjectName = ""$/PrismRMSystem/VS2012/WebOfficeV4.root/WebOfficeV4", IPYHAAAA"
    SccAuxPath = ""
    SccLocalPath = "..\.."
    SccProvider = "MSSCCI:Microsoft Visual SourceSafe"
    TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
    ProjectReferences = "{04e527c3-bac6-4082-9d39-aad8771b368e}|YBTools.dll;{5d52eaec-42fb-4313-83b8-69e2f55ebf14}|AuthorizeNet.dll;{d8408f53-8f1e-4a71-8b05-76023b09b716}|AuthorizeNet.Helpers.dll;{77ebd08a-de0f-4793-b436-fad6980863e6}|WEBCUSTCONTROLS.dll;"
    Debug.AspNetCompiler.VirtualPath = "/BOSTONBEANCOFFEE.COM"
    Debug.AspNetCompiler.PhysicalPath = "Source_WebOfficeV4\BOSTONBEANCOFFEE.COM\"
    Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\BOSTONBEANCOFFEE.COM\"
    Debug.AspNetCompiler.Updateable = "true"
    Debug.AspNetCompiler.ForceOverwrite = "true"
    Debug.AspNetCompiler.KeyFile = "Key\StrongKey.snk"
    Debug.AspNetCompiler.DelaySign = "false"
    Debug.AspNetCompiler.AllowPartiallyTrustedCallers = "false"
    Debug.AspNetCompiler.FixedNames = "true"
    Debug.AspNetCompiler.Debug = "True"
    Release.AspNetCompiler.VirtualPath = "/BOSTONBEANCOFFEE.COM"
    Release.AspNetCompiler.PhysicalPath = "Source_WebOfficeV4\BOSTONBEANCOFFEE.COM\"
    Release.AspNetCompiler.TargetPath = "PrecompiledWeb\BOSTONBEANCOFFEE.COM\"
    Release.AspNetCompiler.Updateable = "true"
    Release.AspNetCompiler.ForceOverwrite = "true"
    Release.AspNetCompiler.KeyFile = "Key\StrongKey.snk"
    Release.AspNetCompiler.DelaySign = "false"
    Release.AspNetCompiler.AllowPartiallyTrustedCallers = "false"
    Release.AspNetCompiler.FixedNames = "true"
    Release.AspNetCompiler.Debug = "False"      
    VWDPort = "34781"
    SlnRelativePath = "Source_WebOfficeV4\BOSTONBEANCOFFEE.COM\"
EndProjectSection

In my case, I tried to change URL from project properties, restart VS, reboot computer, nothing helped me only this SLN file manipulation fixed my problem.


For me this problem was entirely related to a broken install of Oracle ODP tools for VS. I uninstalled and reinstalled and everything was working again.


And in my case, it turned out that I didn't have IIS enabled in Control Panel under Windows Features. Reference Image, since SO won't let me upload


In VS2017. I had to edit my .sln file and had to update the VWDPort = "5010" setting. None of the other solutions posted here worked.


I solved this issue by killing all instances of iexplorer and iexplorer*32. It looks like Internet Explorer was still in memory holding the port open even though the application window was closed.


In my case, I had the setting Override application root URL checked, on the Properties->Web tab. I was using that previously when I was running VS as an administrator, but now that I'm running it in a non-admin account, it causes the error.


I had this issue with JetBrains Rider, specifically for port 80 and 90 bit it was working with other ports as well as visual studio.

after running as admin this resolved the issue.

참고 URL : https://stackoverflow.com/questions/23502327/unable-to-launch-the-iis-express-web-server-failed-to-register-url-access-is-d

반응형