locked
ASP.Net V2.0 website with AJAX control tool kit 1.0 on win2008 & IIS7.0 Not working RRS feed

  • Question

  • User-1228885670 posted

    Hi,

    We have recently upgraded the development server environment from Win 2003, IIS6 to Win2008 IIS7.0

    Application still the same: asp.net v2.0 using Ajax control tool kit 1.x.

    Application works fine in win2003 environment but not on win2008.

    MSI file installation for Ajax1.0 has been done on both win 2003 and win2008 servers.

    Error: Sys is undefined and ajax control tool kit on the user end doesnt work.

    Plese suggest if there is any necessary settings that needs tobe adjusted on the server 2008 using IIS manager for making the ajax to work.

     

    Thanks!

     

    Tuesday, May 6, 2014 4:32 PM

Answers

All replies

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, May 6, 2014 11:55 PM
  • User-1228885670 posted

    Thanks for the reply, one of the links suggested above was the solution to my problem.

    Reply from @Jackyang in this thread: http://forums.asp.net/t/1526393.aspx 

    From IIS 7 and forward, you need to include the HttpModule and HttpHandler inside <system.webserver> node, see example: http://www.asp.net/AJAX/documentation/live/ConfiguringASPNETAJAX.aspx#systemwebserver

    Adding this code to my web.config solved the problem:

    <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>
    

    Thanks very much !

    Wednesday, May 7, 2014 9:57 AM