Hi,
I'm using HttpModules in my ASP.NET Application (Note, i'm not using
HttpHandlers!). Well, it works correctly for the hole application, but i
wan't to remove the httpModule for a special subfolder (a WebService
Folder).
I defined the Module as followed:
<configuration>
....
<system.web>
....
<httpModules>
<add type="WsfRs.Extensions.Client.WebAuthModule, WSF_RS_ConsumerLib"
name="WsfAuthentication"/>
</httpModules>
</system.web>
<configuration>
I thought that there are two ways to solve my problem:
Solution 1 using <location> tags:
<location path="Library/RechenZentrum">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
<httpModules>
<remove name="WsfAuthentication"/>
</httpModules>
</system.web>
</location>
Solution 2, using a second web.config in the subfolder:
<configuration>
<system.web>
<authorization>
<allow users="*"/>
</authorization>
<httpModules>
<remove name="WsfAuthentication"/>
</httpModules>
</system.web>
</configuration>
Well finally, none of them are working (correctly), it looks like that they
are completly ignored by ASP.NET
What i'm doing wrong?
regards,
dominik