Error 500 in a ASP.NET MVC Application running on IIS 5 + Windows Server 2003

709 views Asked by At

My page has an Ajax.BeginForm helper and when I submit this form, in localhost, I have success but, when I run the same page and try to submit my page on the server (Windows Server 2003 + IIS 5.0) I have a 500 Error. Somebody know why this happens and how can I solve this problem?

Thanks.

1

There are 1 answers

0
Danny Tuppeny On

HTTP Status 500 means "Internal Server Error" which would happen for a huge number of reasons (any server-side error will generally give this status).

Make sure your browser isn't set to show Friendly Http Messages and set customErrors=false in your web.config (or look in the Event Viewer). You should be able to get a full exception message/stacktrace.

There are too many things that could go wrong and cause this issue depending on what your code does (do you have incorrect connection strings, paths, or other settings in your config?) for us to guess the exact cause, but if you can provide an error message and stack trace, it'll be much easier for us to help.