2009-11-27 2 views
0

아래 오류는 GenericErrorPage.htm과 동일합니까?GenericErrorPage.htm의 오류입니다.

Server Error in '/' Application. 
-------------------------------------------------------------------------------- 

Runtime Error 
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. 

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off". 


<!-- Web.Config Configuration File --> 

<configuration> 
    <system.web> 
     <customErrors mode="Off"/> 
    </system.web> 
</configuration> 


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL. 


<!-- Web.Config Configuration File --> 

<configuration> 
    <system.web> 
     <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> 
    </system.web> 
</configuration> 

답변

2

이 페이지는 (일부 시간은 yellow screen of death 전화)에 ASP.NET 작업자 프로세스에서 생성됩니다. 응용 프로그램에 오류가 있음을 알려주지 만 web.config 파일의 설정으로 인해 오류가 숨겨져 있습니다. 숨겨진 이유는 일반적인 인터넷 사용자가 코드를 엿볼 수 없기 때문입니다. 잠재적으로 해당 정보를 사용하여 응용 프로그램의 구멍을 악용 할 수 있습니다.

실제 오류를 확인하려면 게시 된 지침을 따르거나 사이트를 호스팅하는 컴퓨터에서 해당 페이지를 확인하십시오. 오류는 로컬에서 볼 때 마스크되지 않습니다.

+0

나는 GenericErrorPage.htm의 내용이 무엇인지 알고 싶습니다. 또는 다르다. 무엇이 다른가? – SmartestVEGA

+1

아니요, GenericErrorPage.htm이 아닙니다. – Bob

관련 문제