Last post Mar 12, 2008 11:07 PM by Zhao Ji Ma - MSFT
Mar 11, 2008 06:31 AM|simonSM|LINK
I created a http module in cs class and put it into app_code directory.
I also put the reference into web.config file:
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?
Mar 12, 2008 11:07 PM|Zhao Ji Ma - MSFT|LINK
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.