programing tip

http 오류 503 서비스를 사용할 수 없습니다.

itbloger 2020. 6. 13. 10:28
반응형

http 오류 503 서비스를 사용할 수 없습니다. 웹 사이트에 액세스 할 때 앱 풀이 중지됨


이것에 대한 게시물 수가 많으며 지금까지 많은 것을 시도했습니다. 그러나 아무 소용이 없습니다. 나 자신은 기본적으로 Winforms 개발자이며 회사가 웹 이니셔티브를 시작하면서 며칠 전이 웹 작업을 시작했습니다.

ASP.Net 프로젝트가 있고 로컬 IIS에서 호스팅하고 싶습니다. 에서 Project properties -> Web설정 내가 선택 Use Local IIS Server하고 URL을 주었다 localhost/MyApp. 파이어 폭스 브라우저에서 액세스하려고 시도했지만 다음과 같은 오류가 발생했습니다.HTTP Error 503. The service is unavailable.

이전에는 다른 많은 오류가 있었고 하나씩 수정했습니다. 그러나 이것에 맞았다. 프로젝트에서 설정 한 내용입니다

  1. ASP.Net v4.0 Classic으로 설정된 응용 프로그램 풀
  2. 앱 풀 Enable 32 bit Application속성이 true
  3. 앱 풀이 시작되었습니다
  4. Any CPU대상 프레임 워크 대한 프로젝트 빌드 특성 세트

그러나 나는 이상한 행동을 언급하고 싶습니다. 다음은 내가 직면하고있는 것입니다.

  1. 응용 프로그램 풀이 시작되었습니다
  2. 로컬 웹 사이트에 액세스하려고합니다 (url을 localhost/MyApp).
  3. 나는 오류를 받는다 HTTP Error 503. The service is unavailable
  4. 응용 프로그램 풀이 중지되었습니다

다음 링크를 보았고 이미 시도했습니다. 위의 행동에 대해 나는 여기에 도달 했다 . 이 링크에 따르면 컴퓨터 이름에는 포함되지 않아야 .합니다. 나는 어떤이없는 .내 컴퓨터 이름이 아니라 있나요 -그 안에. 또한 내 도메인 이름에 포함 .되어 있습니다. 또한 내 사무실 랩톱 및 TFS 설정이 도메인 및 컴퓨터 이름에 바인딩되어 있으므로 이러한 설정을 변경할 수 없습니다.

아무도 무슨 일이 일어나고 있는지 이해하도록 도울 수 있습니까? 안내해주세요. 감사.

편집하다

에 다음 코드가 Global.asax있습니다. Application_BeginRequest동일한 파일에서 메소드가 비어 있습니다.

protected override void Application_Start(object sender, EventArgs e)
{
    base.Application_Start(sender, e);
    String _path = String.Concat(System.AppDomain.CurrentDomain.RelativeSearchPath, ";",
                                         System.Environment.GetEnvironmentVariable("PATH"));
    System.Environment.SetEnvironmentVariable("PATH", _path, EnvironmentVariableTarget.Process);
    MyAppLog.Initialize();
    MyAppLog.WriteMessage("Application Started");
}

최신 정보

의견의 제안에 따라 Cassini에서 웹 사이트를 실행할 수 있습니다.


IIS의 응용 프로그램 풀이 일부 사용자 지정 계정으로 실행되도록 구성되어 있고이 계정이 없거나 잘못된 암호가 제공되었거나 암호가 변경 되었기 때문일 수 있습니다. 사용하는 계정에 대한 IIS의 응용 프로그램 풀의 고급 속성을 확인하십시오.

또한 이벤트 로그에는 첫 번째 요청에서 응용 프로그램 풀이 즉시 중지되는 이유에 대한 자세한 정보가 포함될 수 있습니다.

여기에 이미지 설명을 입력하십시오


WINDOWS 10을 사용하고 최근에 Anniversary Update 패키지로 업데이트 한 경우 아래 단계를 따라야합니다.

  1. Check your Windows Event Viewer - press Win+R and type: eventvwr, then press ENTER.
  2. On the left side of Windows Event Viewer click on Windows Logs -> Application.
  3. Now you need to find some ERRORS for source IIS-W3SVC-WP in middle window.
  4. Probably you will see message like:

The Module DLL >>path-to-DLL<< failed to load. The data is the error.

  1. You have to go to Control Panel -> Program and Features and depending on which dll cannot be load you need to repair another module:
    • for rewrite.dll - find IIS URL Rewrite Module 2 and click Change->Repair
    • for aspnetcore.dll - find Microsoft .NET Core 1.0.0 - VS 2015 Tooling ... and click Change->Repair.
  2. Restart your computer.

For my situation is that my login password changed, while the application pool still uses the old one. So just click the "Advanced Settings" of your application pool and reset your "Identity".


I was facing the same problem, and debugged it using the event logs. First it said that : "The description for Event ID 5059 from source Microsoft-Windows-WAS cannot be found".

I then turned on WAS using turn windows features on/off. Then i saw this in eventvwr "Microsoft-Windows-DistributedCOM cannot be found".

Finally I gave up and deleted the App Pool (that used to stop on accessing the website) and created it again, as it is. This resolved the problem.


For anyone coming here with Windows 10 and after updating them to Anniversary update, please check this link, it helped me:

https://orcharddojo.net/blog/troubleshooting-iis-apppool-crashes-status-503-after-windows-10-anniversary-update

In case link goes down: If your Event log shows that aspnetcore.dll, rewrite.dll (most often, but could be others as well) failed to load, you have to repair the missing items.

Here are two specific issues we've experienced so far and how to fix them, but you may bump into completely different ones:

"C:\WINDOWS\system32\inetsrv\rewrite.dll" (reference)
    Go to "Programs and Features" (Win+X, F) and repair "IIS URL Rewrite Module 2".
"C:\WINDOWS\system32\inetsrv\aspnetcore.dll" (reference)
    Go to "Programs and Features" (Win+X, F) and repair "Microsoft .NET Core 1.0.0 - VS 2015 Tooling ...".

Most of Time, it was occured due to AppPool Setting.

Check the following to resolve this

  1. Check Apppool service is running.
  2. Check Identity of AppPool.
  3. Enter the new password if it has changed for that identity.

The following Images show these setting in IIS

여기에 이미지 설명을 입력하십시오


If you have McAfee HIPS and if you see the following error in event viewer application log:

The Module DLL C:\Windows\System32\inetsrv\HipIISEngineStub.dll failed to load.
The data is the error.

Then the following resolved the issue in my case: https://kc.mcafee.com/corporate/index?page=content&id=KB72677&actp=LIST

Quote from the page:

  1. Click Start, Run, type explorer and click OK.
  2. Navigate to: %windir%\system32\inetsrv\config
  3. Open the file applicationHost.config as Administrator for editing in Notepad.
  4. Edit the <globalModules> section and remove the following line:
    <add name="MfeEngine" image="%windir%\System32\inetsrv\HipIISEngineStub.dll" />

  5. Edit the <modules> section and remove the following line:
    <add name="MfeEngine" />

  6. After you have finished editing the applicationHost.config file, save the file, then restart the IIS server using iisreset or by restarting the system.

I had a similar issue. I solved it by adding my user to the "Log on as a batch job" policy under "Local Security Policy" > "Local Policies" > "User Rights Assignment".


When I first time add the service and created the app pool for it. I did "iisreset" from command prompt, and it worked.


In my case I checked event logs and found error was Cannot read configuration file ' trying to read configuration data from file '\\?\', line number '0'. The data field contains the error code.

The error code was 2307.

I deleted all files in C:\inetpub\temp\appPools and restarted the iis. It fixed the issue.


If you can run the website in Visual Studio debugger, then might be able to see where in your code the application pool is crashing. In my case, it was a function being called recursively an unlimited number of times, and that caused a stack overflow. Note: the Windows event log and the IIS logs were not helpful to diagnose the problem.


I had the same issue with iis 8.5. After searching the eventViewer under windows Logs-->applications, I realized that I'm having a permission error for the machine.config file of the .net framework located at "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config". Giving it a permission for IIS_IUSRS solved my problem (right click the file-->properties-->security-->edit-->add-->IIS_IUSRS)


I was experiencing this error and in my case the cause was that some time ago I modified the user password, and the 503 error didn't appears till I restarted the application pool.

So I fixed it setting the new password on Applications Pools / Advanced Settings / Identity / [...] / Set... / Password / Confirm Password


I had a similar issue, all my app pools were stopping whenever a web request was made to them. Although I was getting the following error in the Event Viewer:

The worker process for application pool 'appPoolName' encountered an error 'Configuration file is not well-formed XML ' trying to read configuration data from file '\?\C:\inetpub\temp\apppools\appPoolName\appPoolName.config', line number '3'. The data field contains the error code.

Which told me that there were errors in the application.config at:

C:\Windows\System32\inetsrv\config\applicationHost.config

In my scenario, I edited the web.config on deploy with an element IIS clearly dislikes, the applicationHost.config scraped the web.config and inserted this bad element and wouldn't resolve until I manually removed it


In addition to the steps outlined at this link from Orhan's answer, you may need to additionally remove the native module by going to IIS Manager > Server Root > Modules > Configure Native Modules. Select MfeEngine and then select Remove.


Changing "Managed Pipeline Mode" from "Classic" to "Integrated" worked for me. It can be changed at Application Pools -> Basic Settings


Anniversary Update누락 된 파일이 cgi.dll이면 즉, Event Viewer가지고있는 경우이 문제 에 추가하기 만하면됩니다 (Microsoft 덕분에)

The Module DLL C:\WINDOWS\System32\inetsrv\cgi.dll failed to load.  The data is the error.

그런 다음 수정하십시오.

  1. 이동 IIS Manager
  2. Connections패널 에서 맨 위 행 (일반적으로 PC 이름)을 선택하십시오.
  3. 오른쪽 패널의 맨 아래에 Management있는Web Platform Installer
  4. 로드되면 Products
  5. 의 검색 유형에서 cgi다음 히트<Enter>
  6. 선택 IIS: CGI클릭 한 다음 Add마지막으로 오른쪽에와 Install바닥에
  7. 설치 후 PC를 강제로 다시 시작해야하며 수정해야합니다.

참고 URL : https://stackoverflow.com/questions/19652709/http-error-503-the-service-is-unavailable-app-pool-stops-on-accessing-website

반응형