Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VIsual WebDeveloper Keeps Using keeps using ASPNETDB.MDF Not SQL

Posted on 2009-05-06
2
Medium Priority
?
320 Views
Last Modified: 2013-11-27
Hi

My problem is that VWD 2008 keeps creating an app_data folder with ASPNETDB.MDF contained within it every time I start the ASP NET Configuration tool and it stores all the membership information in the  ASPNETDB.MDF database and not SQL server as I intend it too.

I have used aspnet_regsql.exe to make sure it uses SQL server for the membership and it does then create the membership tables and views in SQL but every time I use the Configuration tool in VWD 2008 it creates a new app_data folder with ASPNETDB.MDF contained within it even if i delete it.

How do I get the configuratiuon tool to use SQL and not  ASPNETDB.MDF?
0
Comment
Question by:Ed
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
GuitarRich earned 2000 total points
ID: 24313401
Check your web.config file for your web application. They might look a bit like the code snippet below. Check that the connection string they are using is pointing to your SQL Server and is not the default one which will create the aspnetdb in the app_data folder.
    <roleManager enabled="true">
 
        <providers>
 
            <clear/>
 
            <add name="AspNetSqlRoleProvider" connectionStringName="MyAspNetDB" 
 
                applicationName="/SampleRolesApp" 
 
                type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
 
        </providers>
 
    </roleManager>
 
    <membership>
 
        <providers>
 
            <clear/>
 
            <add name="AspNetSqlMembershipProvider" 
 
                connectionStringName="MyAspNetDB" 
 
                enablePasswordRetrieval="false" 
 
                enablePasswordReset="true" 
 
                requiresQuestionAndAnswer="true" 
 
                applicationName="/SamplesRolesApp" 
 
                requiresUniqueEmail="false" 
 
                passwordFormat="Hashed" 
 
                maxInvalidPasswordAttempts="5" 
 
                minRequiredPasswordLength="7" 
 
                minRequiredNonalphanumericCharacters="1" 
 
                passwordAttemptWindow="10" 
 
                passwordStrengthRegularExpression=""                      
 
                type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
 
        </providers>
 
    </membership>

Open in new window

0
 

Author Closing Comment

by:Ed
ID: 31578400
it was exacly as you suggested, thanks.

problem solved
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question