ASP.NET Ajax not working with IIS 7

I have a small ASP.NET AJAX web application that works well under ASP.NET Cassini from http://www.ultidev.com/ . But when I tried to host it under IIS7, AJAX did not work. UpdatePanel, a Calendar extension, client-side validation from Verification Control do not work at all. I think this is an IIS 7 issue.

Here is the section of the web.config file:

<system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules> <remove name="ScriptModule"/> <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> </modules> <handlers> <remove name="WebServiceHandlerFactory-Integrated"/> <remove name="ScriptHandlerFactory"/> <remove name="ScriptHandlerFactoryAppServices"/> <remove name="ScriptResource"/> <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode"/></handlers> </system.webServer> 

Can someone tell me what the problem is with IIS 7? How to configure it to work with ASP.NET AJAX? Thanks.

+4
source share
3 answers

I simply removed the web server role and again added the web server role. He is working now. I think maybe some component that IIS 7 was configured in the first place.

0
source

Add the following line to the Handlers section in the web.config file:

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

+2
source

Delete the following line of code if you added AJAX from NUGET and after adding ajaxcontroltoolkit.dll from here: http://ajaxcontroltoolkit.codeplex.com/releases/view/109918

 <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"/> 

PD: AJAX CONTROL TOOL KIT 4.5 DOES NOT WORK WITH FRAMES 4.5. AND AJAX FROM A NUGHET PROBLEM

0
source

Source: https://habr.com/ru/post/1301325/


All Articles