사용자 정의 오류 페이지가 작동하지 않게하려고합니다. 이 구성은 내가 온라인에서 찾은 샘플로부터 수정되었습니다. GoDaddy에서 호스팅하는 IIS 7.0 사용web.config 사용자 지정 httpErrors가 리디렉션되지 않음 ... "내부 서버 오류가 발생했기 때문에 페이지를 표시 할 수 없습니다." 대신
아래 코드는 "내부 서버 오류가 발생했기 때문에 페이지를 표시 할 수 없습니다."라고 설명합니다. 리디렉션하는 대신
<configuration>
<system.webServer>
<httpErrors>
<remove statusCode="401" subStatusCode="-1" />
<remove statusCode="403" subStatusCode="-1" />
<remove statusCode="404" subStatusCode="-1" />
<remove statusCode="500" subStatusCode="-1" />
<error statusCode="401" path="http://www.mywebsite.com/error.html" responseMode="Redirect" />
<error statusCode="403" path="http://www.mywebsite.com/error.html" responseMode="Redirect" />
<error statusCode="404" path="http://www.mywebsite.com/error.html" responseMode="Redirect" />
<error statusCode="500" path="http://www.mywebsite.com/error.html" responseMode="Redirect" />
</httpErrors>
</system.webServer>
<system.web>
<customErrors mode="On"/>
</system.web>
</configuration>