Search code examples
asp.netweb-servicesashx

ASHX handler return 500 Internal server error


I have the ASP.NET 4 asmx web service (IIS 7.5). It works by https. I added ashx handler. It works locally, but do not work at the hosting. Return 500 Internal Server Error. What to do?


Solution

  • ASP.Net will display a 500 if you don't have the customErrors property set to anything or it is set to On.

    Add this to the web.config to see what the actual error is:

    <customErrors mode="Off" />
    

    Once you know what the actual error is, you can proceed to fix it.