AjaxPro在iis7中不起作用 [英] AjaxPro does not work in iis7

查看:191
本文介绍了AjaxPro在iis7中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个网站在iis6中托管并且运行良好,当我想在iis7中托管它时,我遇到了很多问题BTW。

我认为问题是关于ashx AjaxPro工作的文件,但iis不会加载这些文件。

我试过这些:

1:我已将应用程序池更改为经典或集成模式。 (没有什么不同)

2:我已将此代码添加到网络配置



there is a web site which was hosted in iis6 and worked very well, when i wanted to host it in iis7, I faced a lot of problems BTW .
I think the problem is about ashx files in which AjaxPro works, but iis does not let these files be loaded.
I have tried these :
1 : I've changed application pool to classic or integrated mode. ( no different)
2 : I've added this code to web config

<configuration>

    <location path="ajaxpro">
        <system.webServer>
            <handlers>
                <add verb="*" path="*.ashx" name="AjaxPro"

                     type="AjaxPro.AjaxHandlerFactory,AjaxPro.2" />
            </handlers>
        </system.webServer>
    </location>

</configuration>

推荐答案

你好;

Windows 2008 \ IIS 7没有为使用Ajax默认设置的axd处理程序映射,因此如果要使用Ajax,则需要将以下代码放入web.config文件中并且是我们的Windows 2008托管计划之一。





hello ;
Windows 2008 \ IIS 7 doesn't have the axd handler mapping set up by default for using Ajax so you need to put the following code into your web.config file if you want to use Ajax and are on one of our Windows 2008 hosting plans.


<system.webServer>
        <handlers>
            <add name="Ajax" path="*.axd" verb="*" modules="IsapiModule"

scriptProcessor="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll"

resourceType="Unspecified"

preCondition="classicMode,runtimeVersionv2.0,bitness32" />
        </handlers>
</system.webServer>



或将.dll复制到bin文件夹并尝试:


or copy the .dll to the bin folder and try that:

<httpHandlers>
<add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax"/>

</httpHandlers> in <system.web>


看看这里:



http://weblogs.asp.net/mschwarz/archive/2008/11/07/appcmd-migrate-and-http-error-500-22 -things-你-CA n-try.aspx [ ^ ]






我面临同样的问题。



如果您已经解决了这个问题,请尽快告诉我。



谢谢,

Mayur
Hi,

I am facing same issue.

If you have fixed this issue then please let me know asap.

Thanks,
Mayur


这篇关于AjaxPro在iis7中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆