By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,997 Members | 1,657 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,997 IT Pros & Developers. It's quick & easy.

GAC + Http module (ISAPI filter) problem

P: n/a
I wrote HTTP module and configured it to fire with every request to my
application.

In IIS6 aspnet_isapi.dll 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\download\web.config 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.4322.573; ASP.NET
Version:1.1.4322.573


Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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=BEEFF00DBEEFF00D

HTH,

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

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

In IIS6 aspnet_isapi.dll 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\download\web.config 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.4322.573; ASP.NET
Version:1.1.4322.573



Nov 19 '05 #2

P: n/a

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:kb********************************@4ax.com...
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=BEEFF00DBEEFF00D
Thanks, it worked!

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

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

In IIS6 aspnet_isapi.dll 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

Configuration 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\download\web.config 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.4322.573; ASP.NETVersion:1.1.4322.573


Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.