Click or drag to resize

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

오류 발생시 대처 방법

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

Note Note

해당 내용은 .NET Framework 설치가 OS에 포함되어 있지 않은 윈도우 2008에 적용됩니다. 윈도우 2012부터는 OS에 통합되어 있으므로 이와 같은 설치 관련 문제가 발생하지 않습니다.

ASP.NET 오류
Server Error in '/WebAccess' 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.
ASP.NET 오류
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을 재설치하면 문제가 해결되며 재설치 방법은 다음과 같습니다

  1. 명령창 프롬프트를 실행시킵니다
  2. C:\Windows\Microsoft.NET\Framework\v4.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. 웹액세스를 실행합니다.