Egen SQL server i stedet for ASPNETDB.MDF
Hej E,Jeg prøver at få min applikation til at benytte min SQL server i stedet for ASPNETDB.MDF som ellers benyttes til Membership funktionaliteten.
Jeg har tilføjet følgende del til Web.Config
<authentication mode="Forms"/>
<membership defaultProvider="AspNetSqlMembershipProvider"
userIsOnlineTimeWindow="15">
<providers>
<remove name="AspNetSqlMembershipProvider"/>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMenbershipProvider"
connectionStringName="Asp.net2.0MembershipConnectionString1"
enablePasswordRetrival="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
requiresUniqueEmail="false"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""
/>
</providers>
</membership>
<roleManager enabled="true" cacheRolesInCookie="true" cookieName=".dotdk"
defaultProvider="AspNetRoleManagerSqlProvider">
<providers>
<add connectionStringName="Asp.net2.0MembershipConnectionString1"
applicationName="/dotdk.dk " name="AspNetRoleManagerSqlProvider"
type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</roleManager>
Jeg har testet ”Asp.net2.0MembershipConnectionString1” på er datagrid, og den virker uden problemer.
Men når jeg prøvet at åbne Security fanabladet i ” Web Site Administration Tool” så kommer følgende fejl.
There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.
The following message may help in diagnosing the problem: Could not load type 'System.Web.Security.SqlMenbershipProvider'. (J:\Projects\test2\web.config line 115)
Er her en ved hvad jeg skal gøre?
Mvh
Jakob