a 500 is what generally happens when you're trying to get a cgi script to work and apache just ain't playing nice. Damn near impossible to troubleshoot unless you have access to the server logs.

It's what's usually returned, for lack of a better explanation, when the script tries to do something but can't.

When using Microsoft Internet Information Services a result code of 500 usually indicates a failure an object call. This can be similar to an improperly handled cgi-bin call under other web servers. Several items to check are:

  • Security Context - what user is the web instance running under and does that user have access to the specified resource
  • Object activation - does the web page call a valid object located on the machine.
  • In addition to checking the web logs check the event log to see if there are any Security, System or Application errors resulting from the call
To avoid this errors when using IIS a few suggestions are in order
  • As always make sure that your code contains the appropriate error handling routines
  • Log your errors in the event log or some other data store
  • Understand how COM objects work in relation to Microsoft Transaction Server

HTTP Error 500
Internal Server Error

Happens when the web server software has an error that causes it to be unable to serve the document you requested. The most common cause is bad server-side code (like Perl) that causes an error or cannot execute for some reason.

Log in or register to write something here or to contact authors.