App_code folder, class not recognized.

Last post 05-12-2009 3:36 PM by Cynthia Jordan. 4 replies.

Sort Posts:

  • App_code folder, class not recognized.

    02-08-2006, 5:34 AM
    • Member
      72 point Member
    • nmlaban
    • Member since 03-09-2005, 6:20 AM
    • Posts 16

    I've created a small order-application within vwd.

    With this app there's created this folder app_code. I've put here a class in with constants.

    When I upload the app to my website, the class (called LB2) is not recognized.

    What should I do to let the app run well on my website, and understand there's this app_code folder? It should understand it's there automatic? At compile time when I call a page?

     

    I don't understand!

    tanx.

  • Re: App_code folder, class not recognized.

    02-08-2006, 12:31 PM
    • All-Star
      30,697 point All-Star
    • StrongTypes
    • Member since 12-13-2005, 4:21 PM
    • California
    • Posts 6,007
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs
    What is the full runtime error you are getting? Also, is .NET 2.0 installed on the web server? If not, run Windows Update. If it is, then check the ASP.NET tab of the properties of the site in IIS and make sure that it is marked as a .NET 2.0 application.
    Ryan Olshan
    ASPInsider | Microsoft MVP, ASP.NET
    http://ryanolshan.com

    How to ask a question
  • Re: App_code folder, class not recognized.

    02-08-2006, 2:09 PM
    • Member
      72 point Member
    • nmlaban
    • Member since 03-09-2005, 6:20 AM
    • Posts 16

    Problem solved.

     

    the folder app_code should be in the root. The application I build was put in a sub from the root. So also the app_code folder.

     

    After moving it to the root, the app was recognizing the class!

  • Re: App_code folder, class not recognized.

    02-08-2006, 2:11 PM
    • All-Star
      30,697 point All-Star
    • StrongTypes
    • Member since 12-13-2005, 4:21 PM
    • California
    • Posts 6,007
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs
    Ah, yes. That would do it too.
    Ryan Olshan
    ASPInsider | Microsoft MVP, ASP.NET
    http://ryanolshan.com

    How to ask a question
  • Re: App_code folder, class not recognized.

    05-12-2009, 3:36 PM

    I had an objectdatasource error for 2 or 3 weeks. Out of all the hundreds of web sites I searched, you were the only one to give me the right instructions. Thank you! Thank you! Thank you! This help me to deploy my web application.

Page 1 of 1 (5 items)