473,320 Members | 1,732 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,320 software developers and data experts.

Deploying an iHttpModule in the GAC

CD
Hi,
I have created a HttpModule to do some preprocessing for a web
application. This preprocessing is to be done before each page of the
application is loaded. I have created a separate project compiled it and
added a reference to it in the web application. The code is working fine.
Now i need to deploy this ihhtpModule in the GAC. I have added the
following lines of code in the web.config file of the web application
<httpModules>
<add name="Authenticate" type="myModules.AuthModule, Authenticate" />
</httpModules>
where Authenticate is my dll name, myModules is the namespace and AuthModule
is the class name. This works fine when i use a local copy of the httpModule
but throws an error when i deploy the same in the GAC.
I ahve added these lines in the web.config file to refer to the GAC.
<assemblies>
<add assembly="Authenticate, version=1.0.0.0, Culture=neutral,
PublicKeyToken=d1a87f2cb11b878f" />
</assemblies>
Anybody with any idea as to how i can resolve this issue please help.

Thanks

Nov 19 '05 #1
2 1154
A common cause for this is a missing dependency of *your* assembly which is
missing in the GAC. If that's the case then you need to place any and all
dependencies in the GAC along with your IHttpModule implementation.

Try using FUSLOGVW to see the binding log for your assembly.

--
Klaus H. Probst, MVP
http://www.simulplex.net/
"CD" <CD@discussions.microsoft.com> wrote in message
news:8F**********************************@microsof t.com...
Hi,
I have created a HttpModule to do some preprocessing for a web
application. This preprocessing is to be done before each page of the
application is loaded. I have created a separate project compiled it and
added a reference to it in the web application. The code is working fine.
Now i need to deploy this ihhtpModule in the GAC. I have added the
following lines of code in the web.config file of the web application
<httpModules>
<add name="Authenticate" type="myModules.AuthModule, Authenticate" /> </httpModules>
where Authenticate is my dll name, myModules is the namespace and AuthModule is the class name. This works fine when i use a local copy of the httpModule but throws an error when i deploy the same in the GAC.
I ahve added these lines in the web.config file to refer to the GAC. <assemblies>
<add assembly="Authenticate, version=1.0.0.0, Culture=neutral,
PublicKeyToken=d1a87f2cb11b878f" />
</assemblies>
Anybody with any idea as to how i can resolve this issue please help.

Thanks

Nov 19 '05 #2
CD
The IHttpModule is a simple one and has dependency only on System and
System.Web which are already present in the GAC. Any ideas what i could do
next ?

"Klaus H. Probst" wrote:
A common cause for this is a missing dependency of *your* assembly which is
missing in the GAC. If that's the case then you need to place any and all
dependencies in the GAC along with your IHttpModule implementation.

Try using FUSLOGVW to see the binding log for your assembly.

--
Klaus H. Probst, MVP
http://www.simulplex.net/
"CD" <CD@discussions.microsoft.com> wrote in message
news:8F**********************************@microsof t.com...
Hi,
I have created a HttpModule to do some preprocessing for a web
application. This preprocessing is to be done before each page of the
application is loaded. I have created a separate project compiled it and
added a reference to it in the web application. The code is working fine.
Now i need to deploy this ihhtpModule in the GAC. I have added the
following lines of code in the web.config file of the web application
<httpModules>
<add name="Authenticate" type="myModules.AuthModule,

Authenticate" />
</httpModules>
where Authenticate is my dll name, myModules is the namespace and

AuthModule
is the class name. This works fine when i use a local copy of the

httpModule
but throws an error when i deploy the same in the GAC.
I ahve added these lines in the web.config file to refer to the

GAC.
<assemblies>
<add assembly="Authenticate, version=1.0.0.0, Culture=neutral,
PublicKeyToken=d1a87f2cb11b878f" />
</assemblies>
Anybody with any idea as to how i can resolve this issue please help.

Thanks


Nov 19 '05 #3

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

Similar topics

0
by: moid | last post by:
Sir we are implementing front controller in asp.net. we implement three event-handler 1. PreRequestHandlerExecute 2. PostRequestHandlerExecute 3. BeginRequest we just want to initialize...
2
by: Kenneth Myhra | last post by:
Hi, We have been trying to develop an IHTTPModule (that was supposed to replace or take over the ISAPI Filters, as far as we know). We have developed one in C# and it seems to be working. The...
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...
5
by: Andrew Lippitt | last post by:
What gaurantees are there in the way of which thread the events are called from. I've seen: Thread A Begin Thread B Begin Thread A End Thread A End That seems to indicate that Begin and End...
6
by: Andy G | last post by:
I am trying to implement the global error handling described on this page... http://www.dotnetdevs.com/articles/GlobalErrorHandling.aspx I'm a VB person and don't understand much of C# when it...
6
by: Simone Busoli | last post by:
Hello, I am trying to understand when IHttpModule.Dispose method is called. Is it called when the Application is disposed, or when the request ends? If I want to make an object Application-wide...
5
by: Richard | last post by:
I've developed a small ASPX template framework (based on Chun Li's article on CodeProject: http://www.codeproject.com/aspnet/headerfooter.asp#xx849313xx) which uses a IHttpModule to apply...
8
by: =?Utf-8?B?UGhpbGlw?= | last post by:
When is the IHttpModule Dispose driven ?....at application recycle time ? I developed a test HttpModule to trace INIT, BeginRequest, EndRequest and Dispose....and the Dispose never gets driven. ...
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.