Two hours of searching Google and Stackoverflow and I've gotten nowhere. This is not related to code-behind, which is why I've had no luck so far.
Here's my problem: I have a legacy website running IIS6 and I need to install an HTTPModule on it to add some processing to any request for a specific file type. I've written the module, copied it over to the application's /bin directory, and added the following to my Web.config:
<system.web>
<httpModules>
<add name="YourModule" type="SecurityModule.SecurityModule" />
</httpModules>
</system.web>
Then I fire up the website and... "Server Error in /MyApplication".
Here is the entirety of what it gives me:
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: Could not load type 'SecurityModule.SecurityModule'. (D:\Websites\Reports\web.config line 4)
Source Error:
Line 2: <system.web>
Line 3: <httpModules>
-->Line 4: <add name="YourModule" type="SecurityModule.SecurityModule" />
Line 5: </httpModules>
Line 6: </system.web>
Source File: D:\Websites\Reports\web.config Line: 4
Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3618
Line 4, where I added an arrow, is red. And that's it! No explanation, no hints on where to go. Just "Could not load type". I have tried all sorts of things to get around this:
Can anyone tell me what's going on here? Or, failing that, can someone point me in a direction? At this point, any direction will do. :) I'm at a complete dead end.
Thanks!
You should use an assembly qualified name.
NamespaceQualifiedTypeName, AssemblyName
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With