문제

아래 오류는 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>
도움이 되었습니까?

해결책

이 페이지 (때때로 전화를 걸어 노란색 사망 스크린) ASP.NET 작업자 프로세스에서 생성됩니다. 응용 프로그램에 오류가 있다고 말하지만 Web.config 파일의 설정으로 인해 오류가 숨겨져 있습니다. 그것이 숨겨진 이유는 일반 인터넷 사용자가 코드를 엿볼 수 없기 때문입니다. 그들은 잠재적으로 해당 정보를 사용하여 응용 프로그램의 구멍을 이용할 수 있습니다.

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top