Asp.net code not running in server
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
santanu bhattacharyaPosted Jan 4, 2011, 5:05 AM
I tried this also but got same error. I cannot find the problem.
Regards,
Santanu
CrishPosted Jan 4, 2011, 3:40 AM
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 bhattacharyaPosted Jan 4, 2011, 2:50 AM
Thanks for reply. I did not understand your reply. How can I set the path?
Regards,
Santanu
CrishPosted Jan 3, 2011, 10:03 AM
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.