![]() |
web.config Dosyası ayarları ile hata mesajlarını gösterme ve devre dışı bırakma |
Post Reply ![]() |
Author | |
invertor ![]() Security Professional ![]() İnventor Joined: 18-01-2008 Status: Offline Points: 3332 |
![]() ![]() ![]() ![]() ![]() Posted: 03-05-2014 at 01:40 |
Disabling Windows Custom Error MessagingBy default, our Windows hosting accounts display a custom error when applications generate an exception. We display a generic error because the detailed error messages allow a malicious user to obtain sensitive information. To troubleshoot the error, you can modify your CAUTION: The code samples we provide below do not constitute a complete Sayfanızdaki hata mesajlarını göstermek için size uygun olan aşağıdaki adımları uygulayın Disabling Custom Error Messages / Enabling Detailed Errors on IIS 6
Use the sample code below to display detailed error messages on IIS 6: <configuration> <system.web> <customErrors mode="Off"/> <compilation debug="true"/> </system.web> </configuration> Disabling Custom Error Messages / Enabling Detailed Errors on IIS 7
Use the sample code below to display detailed error messages on IIS 7: <configuration><system.webServer> <httpErrors errorMode="Detailed" /> <asp scriptErrorSentToBrowser="true"/> </system.webServer> <system.web> <customErrors mode="Off"/> <compilation debug="true"/> </system.web> </configuration> Disabling Custom Error Messages / Enabling Detailed Errors on IIS 8 - IIS 8.5 (Plesk)
Use the sample code below to display detailed error messages on IIS 8: <?xml version="1.0" encoding="UTF-8"?>
<configuration> <system.webServer> <httpErrors errorMode="Detailed" /> </system.webServer> <system.web> <customErrors mode="Off"/> <compilation debug="true"/> </system.web> </configuration> Hata mesajlarını gizlemek için web.config dosya içeriği aşağıdaki gibi olmalıdır. <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> </system.webServer> </configuration> Edited by invertor - 26-01-2015 at 09:19 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You can vote in polls in this forum |