Blog Stats
  • Posts - 7
  • Articles - 1
  • Comments - 8
  • Trackbacks - 0

 

AJAX | IIS 7.0 |

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>


Feedback

# re: AJAX | IIS 7.0 | <system.webserver>

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. 5/21/2009 4:30 PM | Ratnakar

# re: AJAX | IIS 7.0 | <system.webserver>

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 5/24/2009 12:06 PM | Chander

# re: AJAX | IIS 7.0 | <system.webserver>

Gravatar That is very very very helpful. Thanks a lot! 9/4/2011 3:15 AM | Karan

# re: AJAX | IIS 7.0 | <system.webserver>

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. 2/20/2012 7:36 PM | Rambabu

# re: AJAX | IIS 7.0 | <system.webserver>

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. 5/24/2012 5:25 PM | pj9808

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

 

 

Copyright © iphonedev