473,386 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

iHttpModule and Virtual Directories

I am working on a web application, for which i created a custom
ihttpmodule to handle authentication. I am creating another application
in a virtual directory under this one. But when I try to run it i get
the following error.

Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: File or assembly name Security, or one of its
dependencies, was not found.

Source Error:
Line 92:
Line 93: <httpModules>
Line 94: <add name="AuthenticationModule"
type="Security.AuthenticationModule, Security" />
Line 95: </httpModules>
Line 96: <httpHandlers>
Source File: c:\inetpub\wwwroot\web.config Line: 94

The error is coming from the web.config file from the root application,
but the application in the virtual directory has its own web.config. I
made sure that the directory was set as an application in IIS. Anyone
know how I can stop the application in the lower level from trying to
load the module from the root application?

Nov 21 '05 #1
1 1315
Hi,

This question would probably be better asked in the ASP.NET newsgroup
since it doesn't really have anything to do with VB.NET coding. But,
I'll help you out as best I can anyway :)

As far as I know there is no way to prevent this (Web.config settings
stack as you go down the directory hierarchy).

In an attempt to mitigate it, however, you can use the <clear /> element
in your <httpModules> section to remove all the HttpModules that your
parent directories have loaded:

---
<httpModules>
<clear />
<httpModules>
---

There is also the <remove> element to remove individual types. Check out
the documentation on "httpModules element" in the Framework SDK.

Regards,
-Adam.

SirPyros wrote:
I am working on a web application, for which i created a custom
ihttpmodule to handle authentication. I am creating another application
in a virtual directory under this one. But when I try to run it i get
the following error.

Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: File or assembly name Security, or one of its
dependencies, was not found.

Source Error:
Line 92:
Line 93: <httpModules>
Line 94: <add name="AuthenticationModule"
type="Security.AuthenticationModule, Security" />
Line 95: </httpModules>
Line 96: <httpHandlers>
Source File: c:\inetpub\wwwroot\web.config Line: 94

The error is coming from the web.config file from the root application,
but the application in the virtual directory has its own web.config. I
made sure that the directory was set as an application in IIS. Anyone
know how I can stop the application in the lower level from trying to
load the module from the root application?

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mark Hoagland | last post by:
I've got a scenario with a web application where I must access the virtual directory being accessed from within the Application_OnStart event handler. Specifically, I have a series of IIS virtual...
3
by: pleaseHelp | last post by:
To better manage our secure site we just separated the registration and checkout sections of our web into separate virtual directories. These new virtual directories are on the same server as the...
2
by: Jeffry van de Vuurst | last post by:
Hi, (sorry for the crosspost, I wasn't sure which was the best place to put this). I was just thinking about something and wondered if any of you has some ideas about this. I'm using the...
4
by: Michelle | last post by:
I have a website with 6 virtual directories under it who dont "see" the bin/ directory in the root. If I create a /bin directory in each virtual directory and then copy my dll's in there, it...
2
by: Kenneth Myhra | last post by:
Hi all, We are trying to make an ISAPI Filter, in .NET by implementing the IHttpModule interface, that will authorize the request for certain binary file types (GET), this is working fine. But we...
1
by: Mark | last post by:
In our root web site, we have roughly 100 folders. 10 of these are virtual directories. The other 90 folders are a mix - some contain static HTML content. Others contain subfolders and...
2
by: Angelo Cook | last post by:
how do you prevent the publishing of virtual directories in VS 2005. I have been using VS2003 and developing websites for years. I have been using virtual directories for images, icons, styles...
1
by: Eric Goforth | last post by:
Hello, I found a C# example on the web that used an httpmodule. I've translated it to VB.NET and the website compiles fine, but when I build the website the iHttpModule doesn't compile, I can't...
4
by: Paul F | last post by:
Im confused about the difference(s) between virtual directories and physical directories in IIS. Any ideas? *** Sent via Developersdex http://www.developersdex.com ***
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.