Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Unable to connect provider in Website Administration Tool to create admin login

$
0
0

I'm using the default webform template in VS 2012 Express, and have ran aspnet_regsql to successfully set up a SQL Server DB.

But I can't connect to/configure the provider in the Web Administration Tool and the only one available is AspNetSqlProvider.

I tried to change the connection string in web.config but there has been no change.  Here is my code in web.config:

<configuration><configSections><section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/></configSections><connectionStrings><remove name="DefaultConnection" /><add name="DefaultConnection" connectionString="Data Source=Z1658776\KMORRIS;Initial Catalog=aspnetdb;Persist Security Info=True;User ID=sa;Password=***" providerName="System.Data.SqlClient"/><add name="MikimotoConnectionString1" connectionString="Data Source=Z1658776\KMORRIS;Initial Catalog=Mikimoto;Persist Security Info=True;User ID=sa;Password=***" providerName="System.Data.SqlClient"/></connectionStrings><system.web><customErrors mode="Off"/><compilation debug="true" strict="false" explicit="true" targetFramework="4.5"><assemblies><add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation><httpRuntime targetFramework="4.5"/><pages><namespaces><add namespace="System.Web.Optimization"/></namespaces><controls><add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt"/></controls></pages><authentication mode="Forms"><forms loginUrl="~/Account/Login" timeout="2880" defaultUrl="~/"/></authentication><profile defaultProvider="DefaultProfileProvider"><providers><add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/"/></providers></profile><membership><providers><add connectionStringName="DefaultConnection" enablePasswordRetrieval="false"
          enablePasswordReset="true" requiresQuestionAndAnswer="false"
          requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6"
          minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
          applicationName="/" name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /></providers></membership><roleManager><providers><add connectionStringName="DefaultConnection" applicationName="/"
          name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /></providers></roleManager><sessionState mode="Custom" customProvider="DefaultSessionProvider"><providers><add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection"/></providers></sessionState></system.web><runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="DotNetOpenAuth.Core" publicKeyToken="2780ccd10d57b246"/><bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.1.0.0"/></dependentAssembly><dependentAssembly><assemblyIdentity name="DotNetOpenAuth.AspNet" publicKeyToken="2780ccd10d57b246"/><bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.1.0.0"/></dependentAssembly></assemblyBinding></runtime><entityFramework><defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"><parameters><parameter value="v11.0"/></parameters></defaultConnectionFactory></entityFramework></configuration>

Any help would be greatly appreciated.  I'm trying to create one account to log in to the site to view admin only pages.


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>