L
Lucas Fletcher
Hello,
I was wondering how I can reference assemblies from web.config files
residing in subdirectories without having to create a new project for each
web.config-containing subdirectory?
I would like to use an HttpModule, but only for files in a particular
directory, so I add a web.config file containing this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<httpModules>
<add name="MessageAuthenticatorModule"
type="Din.MessageAuthenticator,localhost"/>
</httpModules>
</system.web>
</configuration>
to the proper subdirectory. The problem is that the localhost.dll cannot be
found for some reason, even though the web.config file should be part of the
main web project. I really don't want to have to register anything in the
GAC.
Another question: if I have to resort to creating another web project with
its root located at the subdirectory mentioned above, does the web.config
file still inherit values from the main web project? If not, which I suspect
is the case, then creating a separate project is not much of an alternative.
Thank you,
I was wondering how I can reference assemblies from web.config files
residing in subdirectories without having to create a new project for each
web.config-containing subdirectory?
I would like to use an HttpModule, but only for files in a particular
directory, so I add a web.config file containing this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<httpModules>
<add name="MessageAuthenticatorModule"
type="Din.MessageAuthenticator,localhost"/>
</httpModules>
</system.web>
</configuration>
to the proper subdirectory. The problem is that the localhost.dll cannot be
found for some reason, even though the web.config file should be part of the
main web project. I really don't want to have to register anything in the
GAC.
Another question: if I have to resort to creating another web project with
its root located at the subdirectory mentioned above, does the web.config
file still inherit values from the main web project? If not, which I suspect
is the case, then creating a separate project is not much of an alternative.
Thank you,