Ajax.NET and IIS 7 Integrated Mode

Michael Schwarz on Monday, April 14, 2008

As there are some questions on how to run Ajax.NET [1] on IIS 7 (i.e. Windows Vista) in integrated mode instead of classic mode here are two things you have to check:

<li>First check that the IIS_ISSRS group has access to your Web site folder. If you are using the default folder for Web sites with Visual Studio .NET 2005 the simplest way is to add read access at <em>C:\Users\Username\Documents\Visual Studio 2005\WebSites</em>.</li> <li>Run following command to automatic migrate your web.config file: <br><strong>%windir%\system32\inetsrv\Appcmd migrate config &quot;&lt;ApplicationPath&gt;&quot;</strong></li> The breaking change for Ajax.NET Professional [2] is that you have to move the httpHandler (and httpModule if used) to a new section system.webServer and rename httpHandler to handler; next you have to add a name attribute for the handler:

<location path="ajaxpro"> <system.webServer>
<handlers>
                <add verb="" path=".ashx" name="AjaxPro"  type="AjaxPro.AjaxHandlerFactory,AjaxPro.2" />
</handlers>
</system.webServer>
</location>

</configuration>

For more breaking changes for ASP.NET 2.0 applications running in Integrated mode read this post [3].