Ajax(asp.net)不支持iis7 [英] Ajax(asp.net) is not working on iis7

查看:62
本文介绍了Ajax(asp.net)不支持iis7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,





我对asp.net中的ajax有一些问题。实际上我的服务器是从



iis6到iis7.And之后我的ajax控件在安装后无法工作



win7.So please有人建议我。

Dear all ,


I have some problem regarding ajax in asp.net.Actually my server was upgraded from

iis6 to iis7.And after that my ajax controls is not working after the installation of

win7.So please anyone to suggest me.

推荐答案

看看下面类似的问答帖子。



< a href =http://stackoverflow.com/questions/2265361/asp-net-ajax-not-running-with-iis-7> ASP.NET Ajax无法与IIS 7一起运行

Have a look at below similar Question-Answer thread.

ASP.NET Ajax not running with IIS 7


参考此文章

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


如果您使用的是MVC,则需要将MVC条目添加到web.config中。如果您在开发环境中安装MVC并将项目创建为MVC项目,则该文件应该已包含它们:



If you are using MVC, it will require adding the MVC entries to the web.config. If you install MVC in your development environment and create the project as an MVC project, the file should already contain them:

<system.web>
    <compilation debug="true" targetFramework="4.0">
        <assemblies>
            <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        </assemblies>
    </compilation>
    <pages>
        <namespaces>
            <add namespace="System.Web.Mvc" />
            <add namespace="System.Web.Mvc.Ajax" />
....





如果你在这个盒子上进行开发,它是用IIS 6升级的(Server 2000) / 2003?)到Win 7和IIS 7(这似乎是一个降级,除了IIS版本,对我来说),那么你需要在这个开发盒上重新安装MVC。如果这是最终服务器,您只需要在bin目录中发布web.config,DLL文件,以及视图,任何脚本和CSS。



If you are developing on this box and it was upgraded from something with IIS 6 (Server 2000/2003?) to Win 7 and IIS 7 (which seems like a downgrade, except for the IIS version, to me), then you'd need to re-install MVC on this dev box. If this is the final server, all you should need is to publish the web.config, DLL file in the bin directory, and the views, any scripts, and CSS.


这篇关于Ajax(asp.net)不支持iis7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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