468,514 Members | 970 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,514 developers. It's quick & easy.

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.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
2 2391
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

"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.

Similar topics

1 post views Thread by balaji | last post: by
reply views Thread by Cybermedia Marketing | last post: by
1 post views Thread by Kenneth Myhra | last post: by
2 posts views Thread by Norton | last post: by
9 posts views Thread by Tim Payne | last post: by
10 posts views Thread by Guoqi Zheng | last post: by
reply views Thread by Chris Curvey | last post: by
9 posts views Thread by Andy Fish | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.