asp.net放到IIS后ajax不运行

问题描述

用。net2005,在.net环境下ajax运行正常,为什么到IIS下就不能运行了?Web.config如下,请指点:<?xmlversion="1.0"?><configuration><configSections><sectionGroupname="system.web.extensions"type="System.Web.Configuration.SystemWebExtensionsSectionGroup,System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"><sectionGroupname="scripting"type="System.Web.Configuration.ScriptingSectionGroup,System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"><sectionname="scriptResourceHandler"type="System.Web.Configuration.ScriptingScriptResourceHandlerSection,System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"requirePermission="false"allowDefinition="MachineToApplication"/><sectionGroupname="webServices"type="System.Web.Configuration.ScriptingWebServicesSectionGroup,System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"><sectionname="jsonSerialization"type="System.Web.Configuration.ScriptingJsonSerializationSection,System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"requirePermission="false"allowDefinition="Everywhere"/><sectionname="profileService"type="System.Web.Configuration.ScriptingProfileServiceSection,System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"requirePermission="false"allowDefinition="MachineToApplication"/><sectionname="authenticationService"type="System.Web.Configuration.ScriptingAuthenticationServiceSection,System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"requirePermission="false"allowDefinition="MachineToApplication"/></sectionGroup></sectionGroup></sectionGroup></configSections><appSettings/><system.web><pages><controls><addtagPrefix="asp"namespace="System.Web.UI"assembly="System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"/></controls></pages><!--Setcompilationdebug="true"toinsertdebuggingsymbolsintothecompiledpage.Becausethisaffectsperformance,setthisvaluetotrueonlyduringdevelopment.--><compilationdebug="true"><assemblies><addassembly="System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"/></assemblies></compilation><httpHandlers><removeverb="*"path="*.asmx"/><addverb="*"path="*.asmx"validate="false"type="System.Web.Script.Services.ScriptHandlerFactory,System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"/><addverb="*"path="*_AppService.axd"validate="false"type="System.Web.Script.Services.ScriptHandlerFactory,System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"/><addverb="GET,HEAD"path="ScriptResource.axd"type="System.Web.Handlers.ScriptResourceHandler,System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"validate="false"/></httpHandlers><httpModules><addname="ScriptModule"type="System.Web.Handlers.ScriptModule,System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"/></httpModules></system.web><system.web.extensions><scripting><webServices><!--UncommentthislinetocustomizemaxJsonLengthandaddacustomconverter--><!--<jsonSerializationmaxJsonLength="500"><converters><addname="ConvertMe"type="Acme.SubAcme.ConvertMeTypeConverter"/></converters></jsonSerialization>--><!--Uncommentthislinetoenabletheauthenticationservice.IncluderequireSSL="true"ifappropriate.--><!--<authenticationServiceenabled="true"requireSSL="true|false"/>--><!--Uncommenttheselinestoenabletheprofileservice.ToallowprofilepropertiestoberetrievedandmodifiedinASP.NETAJAXapplications,youneedtoaddeachpropertynametothereadAccessPropertiesandwriteAccessPropertiesattributes.--><!--<profileServiceenabled="true"readAccessProperties="propertyname1,propertyname2"writeAccessProperties="propertyname1,propertyname2"/>--></webServices><!--<scriptResourceHandlerenableCompression="true"enableCaching="true"/>--></scripting></system.web.extensions><system.webServer><validationvalidateIntegratedModeConfiguration="false"/><modules><addname="ScriptModule"preCondition="integratedMode"type="System.Web.Handlers.ScriptModule,System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"/></modules><handlers><removename="WebServiceHandlerFactory-Integrated"/><addname="ScriptHandlerFactory"verb="*"path="*.asmx"preCondition="integratedMode"type="System.Web.Script.Services.ScriptHandlerFactory,System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"/><addname="ScriptHandlerFactoryAppServices"verb="*"path="*_AppService.axd"preCondition="integratedMode"type="System.Web.Script.Services.ScriptHandlerFactory,System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"/><addname="ScriptResource"preCondition="integratedMode"verb="GET,HEAD"path="ScriptResource.axd"type="System.Web.Handlers.ScriptResourceHandler,System.Web.Extensions,Version=1.0.61025.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"/></handlers></system.webServer></configuration>

解决方案

解决方案二:
帮你顶一下。
解决方案三:
lz是怎么放的?发布上去的?
解决方案四:
顶了刚开了一新的c#群63242231希望有志同道合的朋友加入更期望高手的加入有您的加入会更精彩。。。
解决方案五:
因为你的服务器没安装ajaxTollKit,bin目录把他的dll添加进去就可以了。

时间: 2024-09-14 12:12:40

asp.net放到IIS后ajax不运行的相关文章

mvc-ASP.NET MVC4在部署IIS后,运行时显示的是整个Web的目录列表

问题描述 ASP.NET MVC4在部署IIS后,运行时显示的是整个Web的目录列表 预览网站,只能看到目录是怎么回事? 是我IIS部署有问题,Web组件缺少还是什么问题呢? 急急急,求解答,谢谢了! 好像都不是目录浏览的问题 解决方案 我用的版本是2013 解决方案二: 是因为你开启了目录浏览,在IIS中关掉就可以了!选择你的站点,右侧会出现如图所示的界面

[C#][ASP.net] 透过WebBrowser 取得AJAX 后的网页

原文[C#][ASP.net] 透过WebBrowser 取得AJAX 后的网页 今天 Shih-Min 问我说,假设网页一开始是AJAX 会载入一些资料,但是透过WebClient 去抓 抓到都是JavaScript 跟 AJAX 的原始码,有办法可以抓到AJAX 取完值之后的资料吗?!   这需求,如果写爬虫可能也会有这需求..我的作法是这样.. 我是ASP.net 专案.. 建立一个Class 记得要加入 System.Windows.Forms     这时候我建立一隻 Class 叫做

ajax调用wcf后返回的结果.ajax里面运行error错。

问题描述 ajax调用wcf后返回的结果.ajax里面运行error错. ajax调用wcf后返回的结果为list,这个list中又有一个list.ajax里面运行error错. [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] 配置没有问题,因为把list=null;就能够正常运行.

js代码放到浏览器正确运行,放到ready里面不能正确运行

问题描述 js代码放到浏览器正确运行,放到ready里面不能正确运行 function outpic() { var outs = $('.out') for (i=0;i<outs.length;i++){ var inputText = outs[i].innerText; try { $('.out')[i].innerHTML = AnalyticEmotion(inputText); }catch(err) { console.log('x') outpic() } } } outpi

ASP.NET也像WinForm程序一样运行的实现方法_实用技巧

由于现在会使用WinForm的人是越来越少了,可能有时候做点小东西就只好用ASP.NET去完成了(喜欢控制台的朋友请不要顶针),如果是这样,悲剧就发生了:一个小工具(或者小的演示项目),发给朋友去用,总不至于让人家也装个IIS或者VS20XX吧?如果没有这二样,这种小工具还真不方便运行.怎么办?做过ASP.NET开发的人都知道:网站通常要布署到IIS上才能直接运行,当然也不排除你用VS打开项目并使用VS自带的WebDev.WebServer.exe来启动程序.这种方式难免有不方便的时候. 我平时

ASP.NET在IIS下的工作模式和原理

ASP.NET与IIS是紧密联系的,由于IIS6.0与IIS7.0的工作方式的不同,导致ASP.NET的工作原理也发生了相应的变化. IIS6(IIS7的经典模式)与IIS7的集成模式的不同 IIS6的运行过程: 分析上图可知: 在 User Mode 下,http.sys 接收到 http request,然后它会根据 IIS 中的 Metabase 查看基于该 Request 的 Application 属于哪个 Application Pool, 如果该 Application Pool

.net-ASP关于在线阅读部署至IIS后出现的问题

问题描述 ASP关于在线阅读部署至IIS后出现的问题 目前在VS本地测试已经无误.使用方案:调用office自带另存为功能,将文档生成PDF,再将生成的PDF利用pdf2swf转换为swf,最后使用flexPaper显示,实现在线阅读.问题:在VS2008中,使用.测试都无误.但部署至IIS后,发现无法生成PDF格式.环境为WIN7.将其部署至WIN 2008 R2 IIS上测试,也无效.另:该功能是要部署至WIN2008 R2上运行的. 望高人指点.

ASP.NET在IIS上注册报0x800702e4错误解决方法_实用技巧

1.--404.3 not found 2.-- 关于asp.net2.0在iis下的注册问题,因为我的win7是后装的iis,而.framework2.0则是跟着vs2005一起早就装好的,这 个时候需要手动注册一下.framework2.0,方法如下:在xp下,在"运行"里面执行一下x:\Windows\Microsoft.NET \Framework\v2.0.50727\aspnet_regiis.exe –i就行了,但在win7下,会报一个"0x800702e4 请

Orchard CMS 放到IIS上,每个页都要好几秒才能打开怎么回事呢?

问题描述 OrchardCMS放到IIS上,每个页都要好几秒才能打开我的本子是win8x64,cpu:i7,内存:8G,电子硬盘.如果是普通asp.netmvc应用运行很快.求高人指点. 解决方案 解决方案二:记录日志或者dottrace牛逼点就windbg解决方案三:web.config中加<trustlevel="Full"originUrl=""/>好多了解决方案四:主页面上有连接到不能连接的网址,去掉就可以快了.