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 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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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. ...
|
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...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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
|
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...
| |