asp.net - "Could not load type" error trying to install HTTPModule on IIS6 - Web.config error -
two hours of searching google , stackoverflow , i've gotten nowhere. not related code-behind, why i've had no luck far.
here's problem: have legacy website running iis6 , need install httpmodule on add processing request specific file type. i've written module, copied on application's /bin directory, , added following web.config:
<system.web> <httpmodules> <add name="yourmodule" type="securitymodule.securitymodule" /> </httpmodules> </system.web>
then fire website and... "server error in /myapplication".
here entirety of gives me:
configuration error
description: error occurred during processing of configuration file required service request. please review specific error details below , modify configuration file appropriately.
parser error message: 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, added arrow, red. , that's it! no explanation, no hints on go. "could not load type". have tried sorts of things around this:
- played name of module in case got wrong. , string in type.
- changed /bin /bin
- make sure module compiled against .net framework 2.0
- abandoned web.config , tried setting mapping in iis 6 (got 404s one).
- related previous, tried making files of extension go through asp.net isapi module wildcard mapping , configuring module. brought me full circle error.
can tell me what's going on here? or, failing that, can point me in direction? @ point, direction do. :) i'm @ complete dead end.
thanks!
you should use assembly qualified name.
namespacequalifiedtypename, assemblyname
Comments
Post a Comment