Quantcast
Viewing all articles
Browse latest Browse all 5

Re: Strange server error when user clicks quickly

Hi Yeoman,

The PDB files allow Stack Traces of your code to be logged when your application throws an Unhandled Exception.

If your website has CustomErrors in the web.config set to OFF then your error code will be visible to everybody.

If your website has CustomErrors in the web.config set to ON or RemoteOnly then your error code will not be visible to the public, however you will be able to find the StackTrace in the server Event Log and this may help you to track down errors in your code.

If you delete the PDBs (or stop then from publishing via your project build/publish configuration) then your site will not log your code in your Stack Trace, however it will log other stack information. In any case, always set CustomErrors in the web.config to ON or RemoteOnly.

The following example shows 404s for all content redirecting to index.html:

<configuration><system.webServer><httpErrors errorMode="DetailedLocalOnly" defaultPath="/index.html" defaultResponseMode="ExecuteURL"><remove statusCode="404" subStatusCode="-1" /><error statusCode="404" prefixLanguageFilePath="" path="/index.html" responseMode="ExecuteURL" /></httpErrors></system.webServer><system.web><customErrors mode="On"><error statusCode="404" redirect="/index.html" /></customErrors></system.web></configuration>

Best Regards,

Candice Zhou


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>