Discussion in 'ASP .Net' started by GaryDean, Apr 17, 2007.

  1. GaryDean

    GaryDean Guest

    I noticed that my project contains a 10 meg ASPNETDB.MDF database
    in the App_data folder. I never intentionally put it there, have never ran
    regsql.exe. Reading back on my logs it got there on March 7th the day I was
    adding some web references.

    How might this have gotten added to the project?
    GaryDean, Apr 17, 2007
    1. Advertisements

  2. Did you ever run the web site administrative tool? If so, it creates one.
    Cowboy \(Gregory A. Beamer\), Apr 17, 2007
    1. Advertisements

  3. Hi Gary,

    Have you used any of the ASP.NET 2.0's services (such as Membership,
    RoleManager, Profile ....) in your ASP.NET application? For all these
    services, ASP.NET 2.0 by default use a connectionstring pointed to a local
    "ASPNETDB.mdf" (under App_Data folder). here is the default
    connectionstring in the machine.config file:

    <add name="LocalSqlServer" connectionString="data
    Instance=true" providerName="System.Data.SqlClient" />

    Also, whenever your ASP.NET application has called any code that use those
    services, if the runtime found that the "aspnetdb.mdf" is not existed, it
    will try creating it. That's is possibly the cause why you find the
    "ASPNETDB.mdf" file be created without your interactive operation.


    Steven Cheng

    Microsoft MSDN Online Support Lead


    Get notification to my posts through email? Please refer to

    Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
    where an initial response from the community or a Microsoft Support
    Engineer within 1 business day is acceptable. Please note that each follow
    up response may take approximately 2 business days as the support
    professional working with you may need further investigation to reach the
    most efficient resolution. The offering is not appropriate for situations
    that require urgent, real-time or phone-based interactions or complex
    project analysis and dump analysis issues. Issues of this nature are best
    handled working with a dedicated Microsoft Support Engineer by contacting
    Microsoft Customer Support Services (CSS) at


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Steven Cheng[MSFT], Apr 18, 2007
  4. Hi Gary,

    Does the information help you some? If you have any further question on
    this, please feel free to post here.


    Steven Cheng

    Microsoft MSDN Online Support Lead

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Steven Cheng[MSFT], Apr 23, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.