Geeks With Blogs
Hit [F5] To Run

One of the key configurations to get AJAX working on IIS 7.0 [Windows Server 2008 | Vista]

This should be added within the web.config of the SharePoint site.

The <system.webserver> Element

The <system.webserver> element contains configuration settings used by Microsoft Internet Information Server (IIS) 7.0.

The following example shows the <system.webserver> element for ASP.NET AJAX. Add this section to the existing Web.config file as a child of the <configuration> element.

<system.webServer>
  <validation validateIntegratedModeConfiguration="false" />
  <modules>
    <add name="ScriptModule"
      preCondition="integratedMode"
      type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
  </modules>
  <handlers>
    <remove name="WebServiceHandlerFactory-ISAPI-2.0"/>
    <add name="ScriptHandlerFactory" verb="*" path="*.asmx"
      preCondition="integratedMode"
      type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    <add name="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"/>
    <add name="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>

Posted on Thursday, April 9, 2009 4:20 PM | Back to top


Comments on this post: AJAX | IIS 7.0 |

# re: AJAX | IIS 7.0 | <system.webserver>
Requesting Gravatar...
Hi, Thanks 4 this article, but still my problem is not resolved. Still Ajax on my webapp is not working. It showing same configuration error. Can you help me please.
Left by Ratnakar on May 21, 2009 4:30 PM

# re: AJAX | IIS 7.0 | <system.webserver>
Requesting Gravatar...
Hi Buddy.

Are you configuring it on Windows Server 2008?

One of the key aspects within our environment was to get Kerberos authentication right before we could proceed with the AJAX configuration on Windows Server 2008.

Check the IIS logs this gives a lot of hint.

Let me know the exact issue you are facing..

Thanks
Left by Chander on May 24, 2009 12:06 PM

# re: AJAX | IIS 7.0 | <system.webserver>
Requesting Gravatar...
That is very very very helpful. Thanks a lot!
Left by Karan on Sep 04, 2011 3:15 AM

# re: AJAX | IIS 7.0 | <system.webserver>
Requesting Gravatar...
In my web site Ajax Calender control is opens with scroll bars. So, what I need to do. Could anyone please me. I am using Windows 2008 64 bit server, IIS 7 and AjaxControlToolkit.dll 3.0.30512.1 version.
Left by Rambabu on Feb 20, 2012 7:36 PM

# re: AJAX | IIS 7.0 | <system.webserver>
Requesting Gravatar...
Hi,
Thanks for article.
Still cannot solve my problem. In my case,
Windows7,
.NetFramework4,
AjaxControlToolkit4

Ajax is still not working. Error message is the same.
Please help me, if anybody knows anything.
Left by pj9808 on May 24, 2012 5:25 PM

# re: AJAX | IIS 7.0 | <system.webserver>
Requesting Gravatar...
I have also same problem. Its not working on my side as well.
I use ajaxtoolkit. work ok on locally but on server it refreshes page as well not validate my textboxes.
Left by waseem on May 30, 2012 5:00 AM

Your comment:
 (will show your gravatar)


Copyright © iphonedev | Powered by: GeeksWithBlogs.net