Hello All,
I am developing modules for version DNN434 in C#. I also use Visual Studio 2005 Pro Edition as the IDE running version 2.0.50727 of the .NET framework.
I have multiple directories under App_Code some of which are there because of the module wizard but others are ones I created as additional business logic to be used across the board.
So the issue is that I can't access all of the directories when I need to. It looks like it has something to do with the order in which they were defined in the web.config. I actually created a grid on my own and definitely saw a pattern. Let me illustrate:
<codeSubDirectories>
<add directoryName="Folder 1"/>
<add directoryName="Folder 2"/>
<add directoryName="Folder 3"/>
<add directoryName="Folder 4"/>
</codeSubDirectories>
Ok from the example above if I am in a source file within Folder 4 then I can utilize the "using" statement and access any of the other folders. But if I am in Folder 1 I can only access Folder 1 namespace. In Folder 2 I can access Folder 2 and Folder 1. And you can see the other permutations.
The bottom line is that you can access your own folder's namespace and those folders defined above you.
So is this a known bug in .NET? Is there a compilation attribute I can set? Or am I just misusing the App_Code folder? I really don't want to create separate projects or dlls for these individual files. I shold also be clear in that ALL the folders can be accessed in my /DesktopModules/ folder.
Any help would be greatly appreciated.
Thanks,
Allan