Click or drag to resize

ASP.NET 오류 발생시 대처 방법

ASP.NET 엔진이 올바르게 설치되지 않았을 경우 다음과 같은 오류가 발생할 수 있습니다.

Server Error in '/TabsMailer4' Application.
--------------------------------------------------------------------------------
Failed to access IIS metabase. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase. 

The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904.
Server Application Unavailable 

The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. 

Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
오류 발생시 대처 방법

ASP.NET 4.0을 재설치(.NET Framework 재설치가 아닌 IIS 등록 부분만 재설치)하면 문제가 해결되며 재설치 방법은 다음과 같습니다.

  1. 명령창 프롬프트를 실행시킵니다.

  2. C:\WINDOWS\Microsoft.NET\Framework\vv4.0.30319로 이동합니다.

  3. IIS를 멈추기 위해 net stop w3svc를 실행합니다.

  4. IIS에서 ASP.NET을 제거하기 위해 aspnet_regiis.exe -ua를 실행합니다.

  5. IIS에서 ASP.NET을 설치하기 위해 aspnet_regiis.exe -i를 실행합니다.

  6. IIS를 시작하기 위해 net start w3svc를 실행합니다.

  7. 웹매니저를 실행합니다.