Rewriting an HttpModule URL using IIS6 without URLs without extension

We are using the Intelligence URLRewriting module for asp.net with version 2.0 of the framework and IIS6. Our URLs usually do not have an extension.

I understand that IIS6 cannot handle this situation without a hidden template (which causes other problems).

However, it works! Sometimes. At other times (for example, on one dev machine and on my machine, when I specify another virtual directory in the application), this is not so. "This does not work." I mean, the configured HttpModules never hit.

Can anyone explain this?

Thanks.

+3
source share
4 answers

, , :

, -, isapi. - - , !

+4

- Visual Studio, asp.net, HttpModule .

IIS6 , asp.net.

+2

, , " ", - Cassini, VS.NET? Cassini, , .

+1

If you are using IIS6 with ASP.net 4.0, you must specify and register the modules as follows:

<system.web>
<httpModules>
      <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/>

not

<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
      <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/>
</modules>

-2
source

Source: https://habr.com/ru/post/1703082/


All Articles