{"id":197,"date":"2010-08-18T11:09:27","date_gmt":"2010-08-18T01:09:27","guid":{"rendered":"http:\/\/chuchuva.com\/pavel\/?p=197"},"modified":"2010-08-18T11:12:25","modified_gmt":"2010-08-18T01:12:25","slug":"how-to-enable-detailed-error-information-for-iis-and-asp-net","status":"publish","type":"post","link":"https:\/\/chuchuva.com\/pavel\/2010\/08\/how-to-enable-detailed-error-information-for-iis-and-asp-net\/","title":{"rendered":"How to enable detailed error information for IIS and ASP.NET"},"content":{"rendered":"<p>By default, IIS and ASP.NET hide detailed error information to prevent revealing sensitive information about your web application:<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"201\" data-permalink=\"https:\/\/chuchuva.com\/pavel\/2010\/08\/how-to-enable-detailed-error-information-for-iis-and-asp-net\/iis-generic-error\/\" data-orig-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/08\/iis-generic-error.png?fit=502%2C343&amp;ssl=1\" data-orig-size=\"502,343\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"iis-generic-error\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/08\/iis-generic-error.png?fit=300%2C204&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/08\/iis-generic-error.png?fit=502%2C343&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/08\/iis-generic-error.png?resize=502%2C343\" alt=\"IIS generic error\" title=\"\" width=\"502\" height=\"343\" class=\"alignnone size-full wp-image-201\" srcset=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/08\/iis-generic-error.png?w=502&amp;ssl=1 502w, https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/08\/iis-generic-error.png?resize=300%2C204&amp;ssl=1 300w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"202\" data-permalink=\"https:\/\/chuchuva.com\/pavel\/2010\/08\/how-to-enable-detailed-error-information-for-iis-and-asp-net\/asp-net-generic-error\/\" data-orig-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/08\/asp-net-generic-error.png?fit=715%2C482&amp;ssl=1\" data-orig-size=\"715,482\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"asp-net-generic-error\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/08\/asp-net-generic-error.png?fit=300%2C202&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/08\/asp-net-generic-error.png?fit=604%2C407&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/08\/asp-net-generic-error.png?resize=604%2C407\" alt=\"ASP.NET generic error\" title=\"\" width=\"604\" height=\"407\" class=\"alignnone size-full wp-image-202\" srcset=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/08\/asp-net-generic-error.png?w=715&amp;ssl=1 715w, https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2010\/08\/asp-net-generic-error.png?resize=300%2C202&amp;ssl=1 300w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/p>\n<p>Sometimes you need to see error details (think shared hosting). Add these entries to your web.config file to disable generic errors:<\/p>\n<pre><code class=\"prettyprint\">&lt;configuration&gt;\r\n  &lt;system.web&gt;\r\n    &lt;customErrors mode=\"Off\" \/&gt;\r\n  &lt;\/system.web&gt;\r\n\r\n  &lt;system.webServer&gt;\r\n    &lt;httpErrors errorMode=\"Detailed\" \/&gt;\r\n  &lt;\/system.webServer&gt;\r\n&lt;\/configuration&gt;\r\n<\/code><\/pre>\n<p><strong>Resources<\/strong><\/p>\n<ul>\n<li><a href=\"http:\/\/learn.iis.net\/page.aspx\/267\/how-to-use-http-detailed-errors-in-iis-70\/\">How to Use HTTP Detailed Errors in IIS 7.0<\/a><\/li>\n<li><a href=\"http:\/\/blogs.iis.net\/ksingla\/archive\/2008\/02\/18\/what-to-expect-from-iis7-custom-error-module.aspx\">What to expect from IIS7 custom error module<\/a><\/li>\n<li><a href=\"http:\/\/www.west-wind.com\/weblog\/posts\/745738.aspx\">IIS 7 Error Pages taking over 500 Errors<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/434272\/iis7-overrides-customerrors-when-setting-response-statuscode\">IIS7 Overrides customErrors when setting Response.StatusCode?<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>By default, IIS and ASP.NET hide detailed error information to prevent revealing sensitive information about your web application: Sometimes you need to see error details (think shared hosting). Add these entries to your web.config file to disable generic errors: &lt;configuration&gt; &lt;system.web&gt; &lt;customErrors mode=&#8221;Off&#8221; \/&gt; &lt;\/system.web&gt; &lt;system.webServer&gt; &lt;httpErrors errorMode=&#8221;Detailed&#8221; \/&gt; &lt;\/system.webServer&gt; &lt;\/configuration&gt; Resources How to Use &hellip; <a href=\"https:\/\/chuchuva.com\/pavel\/2010\/08\/how-to-enable-detailed-error-information-for-iis-and-asp-net\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to enable detailed error information for IIS and ASP.NET<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8],"tags":[13,14],"class_list":["post-197","post","type-post","status-publish","format-standard","hentry","category-develop","tag-asp-net","tag-iis"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/posts\/197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/comments?post=197"}],"version-history":[{"count":0,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/posts\/197\/revisions"}],"wp:attachment":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/media?parent=197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/categories?post=197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/tags?post=197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}