Asp.Net Ajax WebService and Internal Error 500

只愿长相守 提交于 2019-12-04 19:13:12

In the event log on the webserver (i.e. your local machine) it should give a more detailed error message.

Add this to your web.config I think

<webServices>
    <protocols>
        <add name="HttpGet"/>
        <add name="HttpPost"/>
    </protocols>
</webServices>

Just ensure you uncomment [System.Web.Script.Services.ScriptService] just below the WebServiceBinding at the top of the web service class page.

That should get it solved. If it still persist, please check the URL of your SitePath making sure it is correctly rooted to the location of the webservice by including "~" before the URL as show below:

SitePath="~/Webservice.asmx"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!