AjaxPro在本地工作,但是在服务器上出现.ashx错误 [英] AjaxPro is working locally, but on server I am getting .ashx errors
问题描述
在本地,我的应用程序可以使用ajaxpro正常运行,但是在服务器上,我似乎无法弄清为什么它不起作用.
Locally my application works fine using ajaxpro, but on the server I can't seem to figure out why it is not working.
使用萤火虫,我有以下错误:
using firebug I have the following erros:
未找到GET prototype.ashx 404 找不到GET core.ashx 404 找不到ms.ashx 404
GET prototype.ashx 404 not found GET core.ashx 404 not found GET ms.ashx 404 not found
相同的代码在本地工作,因此它必须是IIS7设置吗?
Same code works locally, so it must be a IIS7 setting?
编辑,我的web.config
<httpHandlers>
<add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
</httpHandlers>
还具有:
<location path="ajaxpro">
<system.web>
<httpHandlers>
<add verb="POST,GET" path="*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
</httpHandlers>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
和:
<location path="ajaxpro/prototype.ashx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="ajaxpro/core.ashx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="ajaxpro/converter.ashx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
推荐答案
要使AjaxPro.dll在IIS7中运行,您应该将应用程序池的PipelinMode设置为Classical而不是Integrated.
For AjaxPro.dll to work in IIS7 you should set your application pool's PipelinMode to Classical instead of Integrated.
我在所有地方都试图找到它,但最终这才救了我.
I have tried everywhere to find this but at the end this was what saved me.
这篇关于AjaxPro在本地工作,但是在服务器上出现.ashx错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!