Last post Jul 31, 2014 08:45 AM by Siva Krishna Macha
Jul 30, 2014 05:42 AM|thirumalai_samy|LINK
We are using Windows server 2008[64 bit], IIS 7.0. The development is with ASP.Net 4.0 web application. We are facing the error while accessing WCF services. We are accessing WCF services using JSON and we are getting the error : 500 Internal Server error.
This is applicable to both GET method and POST method access. Can anyone explain what is the root cause of the error?
Thanks in advance.
Jul 30, 2014 05:54 AM|Siva Krishna Macha|LINK
500 internal server error means, the request hits the server and while server processing the request there is some "internal" error has occurred during the process. This is different than other errors where 404 (which is the resource not found) etc.
However, if the server hides some exception, that may also get converted to 500 error.
In particular for WCF, if you would need to know the exact error - you can enable the more detailed errors by setting this flag in server web.config file:
However, please note that this flag shouldn't be turned on in production as a practice - as may give some secure server information - like which line, page, code the error it gets, stack trace etc.
Hope this helps.
Pls mark this as answer if this helps and answers your question.
Jul 31, 2014 12:25 AM|thirumalai_samy|LINK
Thank you Siva for your timely reply!!! It works for us!!!
Jul 31, 2014 08:45 AM|Siva Krishna Macha|LINK
You're welcome, Happy to help you! Have a nice day.