Trying to install Basic Windows Authentication  AJAX application on local IIS 7 set up. 

This was previously only running on in built web server (is this called cassini?).

– Needed to TURN ON Windows Authentication IN the IIS Manager although this was also in the web.config.

 Got this error –

 Ajax Sys.Manager Error

 So naturally thought this was related to IIS 7 / modules / AJAX set up somehow.

 Found this – http://gramotei.wordpress.com/2007/08/17/aspnet-ajax-update-panels-and-responseredirect/ – but think this now out of date as redirect does work!

 Yet, it does just happen on redirect, so made me think IIS7 modules not set up, so, added –

  <modules>

            <add name=”ScriptModule” type=”System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″/>

 </modules>

to my <system.webServer> (which I found had to be in there for IIS 7 to work whilst trawling the web, I had already added a handlers section, but this was not enough)

Example full section ended up like this –

<system.webServer>

<handlers>

<add name=”ScriptResource.axd_GET,HEAD” path=”ScriptResource.axd” verb=”GET,HEAD” type=”System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ preCondition=”integratedMode,runtimeVersionv2.0″ />

<add name=”*_AppService.axd_*” path=”*_AppService.axd” verb=”*” type=”System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ preCondition=”integratedMode,runtimeVersionv2.0″ />

<add name=”*.asmx_*” path=”*.asmx” verb=”*” type=”System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ preCondition=”integratedMode,runtimeVersionv2.0″ />

</handlers>

<modules>

<add name=”ScriptModule” type=”System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″/>

</modules>

<defaultDocument>

<files>

<add value=”index.aspx” />

<add value=”index.asp” />

</files>

</defaultDocument>

</system.webServer>

Advertisements