정보, 통신, 기술/ASP.NET과 C#

[링크] TechDays, ASP.NET custom error page

최윤호 2010. 5. 4. 17:24
반응형

MS TechDays 사이트입니다. 좋은 자료가 많네요. 저도 이제야 하나 봤는데 즐겨찾기 해 놓고 하나씩, 하니씩 챙겨봐야겠습니다.

http://www.techdays.co.kr/

** ALM의 도입과 그 필요성 중 ALM의 성공을 위한 3대요소

ASP.NET에서 에러를 확인할 때 Server.GetLastError를 사용하는데, 페이지가 변경되면 null이 나옵니다. 때문에 페이지 변경을 하지 않기위해 Web.config 파일의 customErrors Element에 redirectMode를 "ResponseRewrite"로 설정해야 합니다.

ASP.NET custom error page - Server.GetLastError() is null
http://stackoverflow.com/questions/343014/asp-net-custom-error-page-server-getlasterror-is-null

customErrors Element (ASP.NET Settings Schema)
http://msdn.microsoft.com/en-us/library/h0hfz6fc.aspx

HttpServerUtility.GetLastError Method
http://msdn.microsoft.com/en-us/library/system.web.httpserverutility.getlasterror.aspx

Exception Class
http://msdn.microsoft.com/en-us/library/system.exception.aspx

 

반응형