473,725 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GAC + Http module (ISAPI filter) problem

I wrote HTTP module and configured it to fire with every request to my
application.

In IIS6 aspnet_isapi.dl l mapped as Application Extension, web.config
contains the following:
<system.web>

<httpModules>

<add name="RefFilter " type="RefFilter .RefFilter, RefFilter" />

</httpModules>

I.e. class name and namespace are the same.

When the assembly is in \bin folder of the application everything works
fine.

For some reasons I need to put this assembly to GAC. I made sure the
assembly has a strong name, then installed it into GAC, removing \bin folder
from the application directory. Now the assembly cannot be loaded (although
I double-check it is properly deployed in GAC), HTTP module doesn't work.
What I am missing here? Exact error message posted below

Regards,

Dmitry

P.S. All the development done on another machine. Only single .dll file has
been copied from there

Configuration 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: ?

Source Error:
Line 4: <system.web>
Line 5: <httpModules>
Line 6: <add name="RefFilter " type="RefFilter .RefFilter, RefFilter"
/>
Line 7: </httpModules>
Line 8:
Source File: D:\xxxx\www\dow nload\web.confi g Line: 6

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'RefFilter' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = RefFilter
(Partial)
LOG: Appbase = file:///D:/xxxx/www/download
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: RefFilter
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/download/6885b9d8/222e8bd4/RefFilter.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/download/6885b9d8/222e8bd4/RefFilter/RefFilter.DLL.
LOG: Attempting download of new URL
file:///D:/xxxx/www/download/bin/RefFilter.DLL.
LOG: Attempting download of new URL
file:///D:/xxxx/www/download/bin/RefFilter/RefFilter.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/download/6885b9d8/222e8bd4/RefFilter.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/download/6885b9d8/222e8bd4/RefFilter/RefFilter.EXE.
LOG: Attempting download of new URL
file:///D:/xxxx/www/download/bin/RefFilter.EXE.
LOG: Attempting download of new URL
file:///D:/xxxx/www/download/bin/RefFilter/RefFilter.EXE.


----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET
Version:1.1.432 2.573


Nov 19 '05 #1
2 2513
Hi Dimitry:

You'll have to specify the strong name to have the assembly loaded
from the GAC. i.e:

RefFilter, Version=1.1.100 .0, Culture=neutral ,
PublicKeyToken= BEEFF00DBEEFF00 D

HTH,

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 25 Feb 2005 18:31:17 -0500, "Dmitry Duginov"
<di**@nospam.no spam> wrote:
I wrote HTTP module and configured it to fire with every request to my
application.

In IIS6 aspnet_isapi.dl l mapped as Application Extension, web.config
contains the following:
<system.web>

<httpModules >

<add name="RefFilter " type="RefFilter .RefFilter, RefFilter" />

</httpModules>

I.e. class name and namespace are the same.

When the assembly is in \bin folder of the application everything works
fine.

For some reasons I need to put this assembly to GAC. I made sure the
assembly has a strong name, then installed it into GAC, removing \bin folder
from the application directory. Now the assembly cannot be loaded (although
I double-check it is properly deployed in GAC), HTTP module doesn't work.
What I am missing here? Exact error message posted below

Regards,

Dmitry

P.S. All the development done on another machine. Only single .dll file has
been copied from there

Configuratio n 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: ?

Source Error:
Line 4: <system.web>
Line 5: <httpModules>
Line 6: <add name="RefFilter " type="RefFilter .RefFilter, RefFilter"
/>
Line 7: </httpModules>
Line 8:
Source File: D:\xxxx\www\dow nload\web.confi g Line: 6

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'RefFilter' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = RefFilter
(Partial)
LOG: Appbase = file:///D:/xxxx/www/download
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: RefFilter
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/download/6885b9d8/222e8bd4/RefFilter.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/download/6885b9d8/222e8bd4/RefFilter/RefFilter.DLL.
LOG: Attempting download of new URL
file:///D:/xxxx/www/download/bin/RefFilter.DLL.
LOG: Attempting download of new URL
file:///D:/xxxx/www/download/bin/RefFilter/RefFilter.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/download/6885b9d8/222e8bd4/RefFilter.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/download/6885b9d8/222e8bd4/RefFilter/RefFilter.EXE.
LOG: Attempting download of new URL
file:///D:/xxxx/www/download/bin/RefFilter.EXE.
LOG: Attempting download of new URL
file:///D:/xxxx/www/download/bin/RefFilter/RefFilter.EXE.


----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET
Version:1.1.43 22.573



Nov 19 '05 #2

"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:kb******** *************** *********@4ax.c om...
Hi Dimitry:

You'll have to specify the strong name to have the assembly loaded
from the GAC. i.e:

RefFilter, Version=1.1.100 .0, Culture=neutral ,
PublicKeyToken= BEEFF00DBEEFF00 D
Thanks, it worked!

http://www.OdeToCode.com/blogs/scott/

On Fri, 25 Feb 2005 18:31:17 -0500, "Dmitry Duginov"
<di**@nospam.no spam> wrote:
I wrote HTTP module and configured it to fire with every request to my
application.

In IIS6 aspnet_isapi.dl l mapped as Application Extension, web.config
contains the following:
<system.web>

<httpModules >

<add name="RefFilter " type="RefFilter .RefFilter, RefFilter" />

</httpModules>

I.e. class name and namespace are the same.

When the assembly is in \bin folder of the application everything works
fine.

For some reasons I need to put this assembly to GAC. I made sure the
assembly has a strong name, then installed it into GAC, removing \bin folderfrom the application directory. Now the assembly cannot be loaded (althoughI double-check it is properly deployed in GAC), HTTP module doesn't work.
What I am missing here? Exact error message posted below

Regards,

Dmitry

P.S. All the development done on another machine. Only single .dll file hasbeen copied from there

Configuratio n Error
Description: An error occurred during the processing of a configuration filerequired to service this request. Please review the specific error detailsbelow and modify your configuration file appropriately.

Parser Error Message: ?

Source Error:
Line 4: <system.web>
Line 5: <httpModules>
Line 6: <add name="RefFilter " type="RefFilter .RefFilter, RefFilter"/>
Line 7: </httpModules>
Line 8:
Source File: D:\xxxx\www\dow nload\web.confi g Line: 6

Assembly Load Trace: The following information can be helpful to determinewhy the assembly 'RefFilter' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = RefFilter
(Partial)
LOG: Appbase = file:///D:/xxxx/www/download
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: RefFilter
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/download/6885b9d8/222e8bd4/RefFilter.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/download/6885b9d8/222e8bd4/RefFilter/RefFilter.DLL.
LOG: Attempting download of new URL
file:///D:/xxxx/www/download/bin/RefFilter.DLL.
LOG: Attempting download of new URL
file:///D:/xxxx/www/download/bin/RefFilter/RefFilter.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/download/6885b9d8/222e8bd4/RefFilter.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/download/6885b9d8/222e8bd4/RefFilter/RefFilter.EXE.
LOG: Attempting download of new URL
file:///D:/xxxx/www/download/bin/RefFilter.EXE.
LOG: Attempting download of new URL
file:///D:/xxxx/www/download/bin/RefFilter/RefFilter.EXE.


---------------------------------------------------------------------------

-
----
Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NETVersion:1.1.43 22.573


Nov 19 '05 #3

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

Similar topics

1
1250
by: balaji | last post by:
How can i design an ISAPI Filter that works with IIS-6.0 on win 2003 platform. I already have an ISAPI Filter that i designed for working with IIS 5.x and that works fine . I am finding a problem with the ISAPI Filter designed for IIS 6 since the SF_NOTIFY_READ_RAW_DATA is not supported. Can anyone suggest an alternative for the above notification? thks for any help.
5
2005
by: Chris Hughes | last post by:
I have an environment with many thousands of client machines uploading data files several times each day to a web server via HTTP PUT. To avoid disk I/O (for performance), I am implementing a HTTP handler to intercept and process incoming data without touching the disk. I cannot detect PUT requests with my handler (don't know if this is even supported), so I'm redirecting all requests to the handler as POST using an ISAPI filter. I...
0
1756
by: Cybermedia Marketing | last post by:
I'm trying to convert an ISAPI filter to an httpmodule. The ISAPI filter added custom headers to the response which could later be accessed by the asp page. ISAPI Filter: pvPrep->SetHeader(pfc, "Instance-Id:", info->instance_id); pvPrep->SetHeader(pfc, "Company-Id:", info->company_id); pvPrep->SetHeader(pfc, "Primary:", info->hostname); pvPrep->SetHeader(pfc, "Profile:", buffer);
1
3173
by: Kenneth Myhra | last post by:
Hi all, while trying to convert a C++ ISAPI-filter, used to authorize file requests, to .NET we have gotten into a problem with the 'PUT' verb. First I will explain how we do this. We are implementing the IHttpModule, and mapping up the file-types in IIS to aspnet_isapi.dll by using Application mappings, so that our IHttpModule will be triggered when the specific file-type(s) is requested. You can get to these settings by displaying the...
2
2044
by: Norton | last post by:
I had a person tell me the other day that a person would not be able to beat the efficiency of an ISAPI dll, especially by using handlers/modules. Of course, they could only say the reason was that it is written in C++, which should have nothing to do with it. But, in general, can you write a handler that will handle just as many connections as an ISAPI dll? Isn't a handler a managed code answer to the ISAPI dll solution? Thanks.
9
1567
by: Tim Payne | last post by:
If I were writing an HTTP module where I wanted to access the response text that was being sent back to the user, what would be the optimum method for doing this within the module? I'm investigating the viability of using this for logging some info, and I'm wondering if there are any established or best practice methods for doing this that will minimise the performance hit on the server? Regards, Tim.
10
4249
by: Guoqi Zheng | last post by:
I know I can use http module in my asp.net project to rewrite url. However that is only true for .aspx page, there are many other static page in my application such as .htm. .asp, etc. My question is: 1. Is it possible to map all those request (.gif, .jpg, .swf, .asp, .htm, whatever) to my http module first? 2. Or in this situation, I have to use a ISAPI filter?
0
1653
by: Chris Curvey | last post by:
Hi all, I'm trying to write an ISAPI filter in Python, using the examples that come in the "isapi" directory of the win32com package. The installation program itself runs fine, but when I examine the properties of my web server, my filter has a big red down arrow next to it. But I can't seem to figure out where I should be looking to find the trouble. If anyone can point me to the right place (or see an obvious error in the code...
9
5038
by: Andy Fish | last post by:
Hi, I am wondering if there is any way to log the HTTP traffic on an IIS server (including headers but preferably the body as well), either at the IIS or asp.net level I know I could write my own isapi dll or .net filter, but I was rather hoping someone else has already done it. I'm sure it's quite a common requirement
0
8888
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9174
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9111
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8096
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6011
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2634
muto222
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.