Nested asp.net application

G

g4685034

I have to put asp.net application under the other one. The upper one
uses http modules and the dlls are in c:\inetpub\wwwroot\upper\bin
directory. I create my asp.net application in
c:\inetpub\wwwroot\upper\lower. The problem is I have to create
application in IIS manager because the assembly in "lower" application
is in c:\inetpub\wwwroot\upper\lower\bin. But do it cause another
problem that is it cannot find assembly for http modules. I try to use
location element in web.config but it does not solve my problem. How
can I solve this? Can I block inheritance of web.config?

Thanks,
Theewara
 
R

Remy

Do both applications have their own virtual directory?
Then IIS normally threats them as their own application.

Remy Blaettler
 
G

g4685034

I did it but it still had the same problem. Here is configuration from
the upper.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<httpModules>
<add name="MyHttpModule"
type="MyHttpModule.TweakRequestModule,MyHttpModule"/>
</httpModules>
....
</system.web>
</configuration>

And the lower is.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<httpModules>
<remove name="MyHttpModule" />
</httpModules>
....
</system.web>
</configuration>

The error message is.
Line 3: <system.web>
Line 4: <httpModules>
Line 5: <add name="MyHttpModule"
type="MyHttpModule.TweakRequestModule,MyHttpModule"/>
Line 6: </httpModules>
Line 7:

I wonder that the error message is the same regardless of remove tag.

Theewara
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top