Hi,
In asp.net if we upload any code under App_code, the codes are automatically included in the project. We have uploaded Utility.cs file under dotnet/App_Code/BusinessLogic directory. After that when we create an object of that class, we got an error (http://www.find-villa.com/dotnet/index.aspx). We cannot understand why we get this error. We have used VS2008 for development. The code is running well in my local computer but when we upload all aspx cs, web.config files in server, we got this problem. Is there any problem in server configuration?
Best Regards,
Santanu
Asp.net code not running in server
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

CrishRank #1,487 · 1.1K reputationPosted Jan 3, 2011, 5:03 AM EST
open your link...Utility file coming from "d:\home\Default\find-villa.com\htdocs\dotnet\index.aspx.cs"
so path may be wrong. set path accordingly your project it will work fine.
santanu bhattacharya5 reputationPosted Jan 3, 2011, 9:50 PM EST
Thanks for reply. I did not understand your reply. How can I set the path?
Regards,
Santanu
CrishRank #1,487 · 1.1K reputationPosted Jan 3, 2011, 10:40 PM EST
I have checked your code..can u please put your utility file in directly under the "App_Code". Also, Put DB.cs directly in APP_Code . don't use folder in APP_Code for accessing files.
santanu bhattacharya5 reputationPosted Jan 4, 2011, 12:05 AM EST
I tried this also but got same error. I cannot find the problem.
Regards,
Santanu