473,473 Members | 1,735 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Creating iHttpModule

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 have 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
1 893
What's the problem? It's unclear. Is it still not working even though
you've specified the strong name? Are you asking why you need to specify
the strong name?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"CD" <CD@discussions.microsoft.com> wrote in message
news:B3**********************************@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 have 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

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, We are trying to make an authorization module for our web dav folder using ..NET and implementing the IHttpModule. We have already done this in a previous version of our product, with an...
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: 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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.