Friday, October 23, 2015

Troubleshoot IIS7 errors

I was tasked to help a co-worker fix a problem with a site.  It was a form that once you input the data correctly it get stored in an Access Database.  When we typed in the data we got the generic 500 - internal server error.

Really the big problem with this error is that there is no detail that will help you troubleshoot the cause of the problem.  So I did some research and most blog post say do the same thing  -- send asp errors to the browser, try browsing the website from the server, turn on details for the exception error etc... I tried all this but I still got the 500 internal server error.  I found a blog by Mike Volodarsky, witch pretty much spelled out how to troubleshoot these error.

What I ended up doing was to Enable Failed Request Tracing on the site to look for 500 errors, as prescribed on the last part of his article. The xml from the trace pretty much spelled out the problem.

 What this was telling us was that the mdb file that we were using to store the results did not have proper permissions for the IIS user to write files to it.  After we fixed the mdb and intered the data correctly we no longer got the 500 error.

Please see this link as well.

No comments:

Post a Comment