Groups > Asp .Net > HttpHandlers and HttpModules > Re: HTTP module




HTTP module

HTTP module
Tue, 11 Mar 2008 10:31:33 +000
I created a http module in cs class and put it into app_code directory.
I also put the reference into web.config file:
<addname="cpoModule"type="HttpExtensions.cpoModule,
__code"/>

It works. But when I publish the application into other server, I get the
following error:

Could not load file or assembly '__code' or one of its dependencies. The system
cannot find the file specified.

What is wrong here? Maybe because the published site doesn't has the app_code
folder? Do I have to do on some other way?

Thanks,Simon
Post Reply
Re: HTTP module
Thu, 13 Mar 2008 06:07:11 +000
Hi Simon,

App_Code is a special folder for ASP.NET 2.0 or later version.  Please make sure
the production server is running ASP.NET 2.0 or higher. Also the App_Code
subfolder needs to locate in the web application's root folder.
Post Reply
about | contact