When adding DAL, VS 2005 does not prompt to add to App_Code folder

Last post 06-05-2009 3:53 AM by Thomas Sun – MSFT. 1 replies.

Sort Posts:

  • When adding DAL, VS 2005 does not prompt to add to App_Code folder

    06-02-2009, 11:50 AM
    • Member
      41 point Member
    • lyners
    • Member since 07-25-2005, 6:34 PM
    • Port Washington, WI USA
    • Posts 137

    Hello All,

    I am updating my website from having data access code within the presentation to using a Data Access Layer. I am following the tutorial located at http://www.asp.net/learn/data-access/tutorial-01-vb.aspx and when I get to the part to "Creating a Typed DataSet and Table Adapter" when I add a new Dataset I am not prompted to move the DAL to the App_Code folder. I have tried this several times and my DAL keeps ending up in an error stating that an object of an object cannot be referenced. Is it possible that I do not have the latest VS 2005, or has other developers come across this.

    In short, I am concerned that there is a bug and this does not work, or this is a 2008 feature.

    Thank you. 

     

  • Re: When adding DAL, VS 2005 does not prompt to add to App_Code folder

    06-05-2009, 3:53 AM
    Answer

    Hi,

    Please make sure your ASP.NET project is ASP.NET website instead of ASP.NET web application, because App_Code folder is only for ASP.NET website project.

    You can create a normal folder and then rename it App_Code and then add DataSet in it.

    If we create a simple ASP.NET website and add Typed DataSet, does it have the same issue? If yes, it seems that your Visual Studio is corruption in this aspect. You can try to repair your VS.

     

    I look forward to receiving your test results.

     

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
Page 1 of 1 (2 items)