App_Code folder classes not found

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hockeydave007
    New Member
    • Sep 2007
    • 3

    #1

    App_Code folder classes not found

    Hi,

    I have a similar problem to this thread (http://www.thescripts. com/forum/thread507360.ht ml).

    I have a class App_Code/SiteContent.cs that works just fine in Visual Studio, but does not work on the production site.

    Compiler Error Message: CS0103: The name 'SiteContent' does not exist in the current context
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.507 27.832; ASP.NET Version:2.0.507 27.832

    The class seems to be found just fine from .aspx files in my web root directory, but I've created a subdirectory called /admin to hold aspx files for administration functions. The .aspx files in the /admin directory cannot find the App_Code/SiteContent.cs file from the production server, but can find it just fine from VisualStudio.

    Thanks,
    Dave
  • hockeydave007
    New Member
    • Sep 2007
    • 3

    #2
    Okay, this seems to be some sort of IIS bug. I just turned off IIS application run permissions on the main directory and then turned it back on again and it all worked.

    Comment

    Working...