Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have normal website project. In the past I had the structure of App_Code like this:

  • App_Code
    • ClassA.cs
    • ClassB.cs

All was fine. Till once (because of so many classes in App_Code) I have created the subfolders structure like:

  • App_Code
    • SubFolderA
      • ClassA1.cs
      • ClassA2.cs
    • SubFolderB
      • ClassB1.cs
      • ClassB2.cs

When I did this, my aspx pages stopped to "see" the classes. Exactly in code-behind where the ClassA1 was used, VS sais that the class does not exist.

Sure, I tried to move the classes back directly to the App_Code, but working no more.

My Classes are in no namespace (humble website project), they are Public. I have found the tip for web.config where I tried to set:

    <codeSubDirectories>
     <add directoryName="SubFolderA" />
     <add directoryName="SubFolderB" />
    </codeSubDirectories>

Also not working.

Any tips for help?

share|improve this question
See the link and your walkthroughs. – PiLHA Apr 25 at 20:33

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.