|
-
October 14th, 2008, 08:59 PM
#1
Error: type or namespace name could not be found
Hello all. I am getting this error when I attempt a build of my Visual Studio 2008 project. The build works fine on another computer, but not on this one. It appears there is some sort of reference missing, but I have no idea where to even look. All the references look the same on the two machines, but I don't know what to look for regarding data context references.
Here is the complete error message:
The type or namespace name 'MyDataContext' could not be found (are you missing a using directive or an assembly reference?)
Here is the beginning of my Class that throws the error:
public partial class alerts : System.Web.UI.Page
{
MyDataContext mydata = new MyIntouchDataContext();
Also, intellisense recognizes the MyDataContext so not sure why it is erroring on this. I actually have the same build error on all of my data context references throughout the project. I am just showing this one because they are all the same (just different name).
What should I be looking for? Has anyone experienced this issue?
Thanks for your assistance!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|