Application Trying To Connect To ASPNETDB - but not using it

Last post 09-20-2009 5:20 AM by Ganesh@Nilgris. 2 replies.

Sort Posts:

  • Application Trying To Connect To ASPNETDB - but not using it

    09-14-2009, 11:15 AM
    • Member
      point Member
    • dkilby17
    • Member since 03-26-2006, 6:34 PM
    • Posts 1

    I am using the club website, and change all database connections, including the memebership, profile, and roles to a local SQL Express 2005 db, but when i run the application some pages still try and access the ASPNETDB, i can not find any references the database, i am running the application on localhost - i tried deleting the database, but then when i try and run the application, i get errors as it tries to run a script to create the database. how can i fix this, i dont want to use ASPNETDB

  • Re: Application Trying To Connect To ASPNETDB - but not using it

    09-15-2009, 5:19 AM
    • Contributor
      4,946 point Contributor
    • sukumarraju
    • Member since 06-14-2006, 10:01 PM
    • Scotland, UK
    • Posts 1,110

    Hello

    Your query is not clear enough.

    You are using SQL Express 2005 and do not want to use aspnetdb, am i right? In order to do this 'you need to remove your Membership, Profile and Role provider sections from  your web.config. These three sections maintain reference to providers database.

    Remove below outlined sections from your web.config. You could manually remove these sections or alternative is to use Web site Administration Tool to do the same job.

    <membership defaultProvider="AspNetMembershipProvider">
    			<providers>
    				<add connectionStringName="Your Connection String Name" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Clear" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" name="AspNetMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    			</providers>
    		</membership>
    		<!-- RG: Role provider-->
    		<roleManager enabled="true" defaultProvider="AspNetRoleProvider">
    			<providers>
    				<add connectionStringName="AspNetServices" applicationName="/" name="AspNetRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    			</providers>
    		</roleManager>
    	

    Let me know further Queries with your web.config source code.

    Thanks,

    -- "Mark As Answer" if my reply helped you --
    Recommended Book
    Application Architecture Guide 2.0
    My Blog
  • Re: Application Trying To Connect To ASPNETDB - but not using it

    09-20-2009, 5:20 AM

    dkilby17:

    I am using the club website, and change all database connections, including the memebership, profile, and roles to a local SQL Express 2005 db, but when i run the application some pages still try and access the ASPNETDB, i can not find any references the database, i am running the application on localhost - i tried deleting the database, but then when i try and run the application, i get errors as it tries to run a script to create the database. how can i fix this, i dont want to use ASPNETDB

     

    is this issue resolved..

     

    Jai Ganesh. J , GSD ,India

    Please Mark As Answer If my reply helped you.
Page 1 of 1 (3 items)