我遇到问题如题,我在网站根目录添加HTTP模块
但是我不想在子目录中应用该模块,我在子目录(注意,是子目录,不是虚拟目录)下放了web.config
<?xml version="1.0"?>
<configuration>
<system.web>
<httpModules>
<remove name="SqlPoursPrevent" />
</httpModules>
</system.web>
</configuration>
但是一点作用没有,有高手知道如何处理么?(不要建议我将子目录建为虚拟目录,我不能建虚拟目录)
但是我不想在子目录中应用该模块,我在子目录(注意,是子目录,不是虚拟目录)下放了web.config
<?xml version="1.0"?>
<configuration>
<system.web>
<httpModules>
<remove name="SqlPoursPrevent" />
</httpModules>
</system.web>
</configuration>
但是一点作用没有,有高手知道如何处理么?(不要建议我将子目录建为虚拟目录,我不能建虚拟目录)
<configuration>
<system.web>
<httpModules>
</httpModules>
</system.web>
</configuration>这样试试
或者在你的HTTPMODULE中根据REQUEST.URL的不同进行区分
<system.web>...</system.web></location>
我试过了,不行,
<httpModules>
<clear />
</httpModules>
也试过了,不行
<httpModules>
<remove name="myModule" />
</httpModules>