The type or namespace name 'X' could not be found VS 2008
Posted: Mon May 05, 2008 9:08 am
BB
Regular
Joined: Jun 23, 2004
Posts: 340
You are building an ASP.NET web application in Visual Studio 2008 and you create classes in your App_Code directory. You try to add calls to the class but you get this error during the compile.
Quote:
The type or namespace name '{yourclass}' could not be found (are you missing a using directive or assembly reference?)
The classes you created do not show up in intellisense or the object browser. Why not?
Right click on the class under the App_Code directory, select Properties and change Build Action to "Compile" instead of "Content".
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest (c) 2006 by Group29 Productions.
You can syndicate Group29 Productions news with an RSS Feeder using the file backend.php