in

dotNetFreak

Ramblings & Controls from a .NET Addicted Freak!

Kevin Gearing's Blog

FormShield & IIS 7

Yes, I'm still around! - but I have been pretty busy at work over the last few months, however as FormShield and IIS 7 keeps coming up, I thought it was about time that I added a quick blog post!

The good news is that FormShield works fine with IIS 7, but you do need to make a configuration change...

You can either change the application pool that the Web site uses to the Classic .NET application pool or move the <httpHandlers> section under <system.web> of the web.config file to the new IIS 7 <handlers> section under <system.webServer>.

i.e. change:

<system.web>

<httpHandlers> <add path="FormShield.aspx" verb="GET" type="dotNetFreak.WebControls.FormShieldHttpHandler, dotNetFreak.WebControls.FormShield" />

</httpHandlers>

</system.web>

to:

<system.webServer>

<handlers>

<add name="FormShieldHttpHandler" path="FormShield.aspx" verb="GET" type="dotNetFreak.WebControls.FormShieldHttpHandler" resourceType="Unspecified" />

</handlers>

</system.webServer>

and it should work fine.

Thanks to Nick Eales and Mike Sloan for pointing this out.

Also, a good article on ASP.NET integration with IIS 7 can be found at: http://learn.iis.net/page.aspx/243/aspnet-integration-with-iis7/

Published Feb 10 2009, 10:44 AM by dotNetFreak
Filed under:

Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  

Protected by FormShield
Refresh
Listen
Please enter the characters shown on the image


Code:


Add
Copyright ©2004-2007 Kevin Gearing. All Rights Reserved.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems