Last post Apr 02, 2009 10:02 PM by ldechent
Apr 01, 2009 06:55 PM|ldechent|LINK
I think I am running in an issue similar to http://forums.asp.net/t/1095291.aspx.
I get an error that it can't find a namespace, with CS0246.
It worked fine on my laptop, which makes me think I have to change a(some) configuration(s).
My machine is using ASP.NET 3.5 and my server is configured to 2.0.
Do I have an option that would change my web site on my machine to make everything ASP.NET 2.0 compliant, and then when I move it back to the server it willl be OK?
Or should I do something on the server (it is Windows Server 2003)? Or should I do a little of both?
Thank you for your help with this.
Apr 01, 2009 07:38 PM|Bruce L|LINK
cannot find name space is usually caused by a missing DLL.
What exactly is the error?
Apr 01, 2009 07:50 PM|ldechent|LINK
The error message
CS0246: The type or namespace name 'Basic' could not be found (are you missing a using directive or an assembly reference?)
The problem line
Basic b = new Basic();
There is a folder, App_Code and in it there is a class,
Any other information I might provide that could help to diagnose this?
Apr 02, 2009 02:13 PM|Bruce L|LINK
Is the directory containing App_Code setup as an application?
Note that ASP.NET will only read the App_code directory in the app root.
Apr 02, 2009 04:40 PM|ldechent|LINK
Is the app root Inetpub/wwwroot by default or do I need to do something to make this so?
Thank you for helping me with this.
Apr 02, 2009 05:11 PM|Bruce L|LINK
it depends on how IIS is setup. In general, the website root (when you create a website on IIS) is an application BUT you can also have sub directory setup as application.
Apr 02, 2009 07:42 PM|ldechent|LINK
What would you google to search further on this?
Apr 02, 2009 09:02 PM|Bruce L|LINK
hmmm.. i wish i have an answer for you but I don't have more ideas.
Apr 02, 2009 10:02 PM|ldechent|LINK
I think it was a tough question. Thank you for giving me a direction to go Bruce.