D
Dmitry Duginov
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.
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.