I have the following problem programming in asp .net with visual studio 2008.
If I insert a new class file, right clicking on "add new element -> class
-> ecc..." directly inside the App_Code directory (or in its any
subdirectory) the compiler and the smartTab do not see any custom namespace
previously created in other classes, nor from other classes I can find the
namespace and the class name defined within the new class file just inserted.
The only way I found to correctly insert a new class file is create it right
clicking on "add new element... ecc..." not in the App_Code (or sub) directory
but rather in the root node with the name of the entire project, and then I can
move it in the destination App_Code subdirectory, and it keeps working.
As a matter of facts it seems that is not important where the file IS but rather where I CREATED it: if I created a class from inside the App_Code it does not see anything and it is not seen by any other class, otherwise if I create it right clicking on the root node of the project it works and keeps workng even moving inside any subdir within the project.
I also tried to manually add the App_Code subdirs to the <Compilation> and <codeSubDirectories> tags of the Web.config file, but anything changed with this behaviour.
Does anybody know why?
View Complete Post