ajaxPro.2.dll一直调用不到后台的方法!
本地调试是完全没问题的,部署到本地的iis也是可以用的,别人连接测试也是OK的 但是部署到服务器上就不行 。按F12可以看到错误Failed to load resource: the server responded with a status of 500 (Internal Server Error)然后,Uncaught ReferenceError: SelfHelp is not defined SelfHelp是我后台的类。看这意思就是没有加载到XXX.SelfHelp,App_Web_j2txhodz.ashx。 网上找了很久 ,都是说因为配置的原因,但是把网上的方法试遍了也还是没用。。。
<handlers>
<add name="GaGa_gagahjt" verb="*" path="*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/>
</handlers>
<httpHandlers>
<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/>
</httpHandlers>
这是我的配置