T
Thomas
I'm running into a bizzare sitution with the SqlMembershipProvider. I am
using a SqlMembershipProvider and SqlRoleProvider. The are each set to a
different applicationName. like so:
<roleManager defaultProvider="MyRoleProvider"
enabled="true"
cacheRolesInCookie="true"
cookieName=".OURSPIFFYROLES"
cookieTimeout="30"
cookiePath="/"
cookieRequireSSL="false"
cookieSlidingExpiration="true"
cookieProtection="All"
createPersistentCookie="false"
maxCachedResults="10">
<providers>
<clear />
<add name="MyRoleProvider"
connectionStringName="Common"
applicationName="MyApplication"
type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</roleManager>
<membership defaultProvider="CustomerProvider">
<providers>
<clear />
<add name="CustomerProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="Common"
applicationName="/"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
requiresUniqueEmail="true"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10"
minRequiredPasswordLength="8"
minRequiredNonalphanumericCharacters="0"
passwordStrengthRegularExpression="" />
</providers>
</membership>
The problem is that Membership.Provider.ApplicationName returns
"MyApplication" and not "/".
using a SqlMembershipProvider and SqlRoleProvider. The are each set to a
different applicationName. like so:
<roleManager defaultProvider="MyRoleProvider"
enabled="true"
cacheRolesInCookie="true"
cookieName=".OURSPIFFYROLES"
cookieTimeout="30"
cookiePath="/"
cookieRequireSSL="false"
cookieSlidingExpiration="true"
cookieProtection="All"
createPersistentCookie="false"
maxCachedResults="10">
<providers>
<clear />
<add name="MyRoleProvider"
connectionStringName="Common"
applicationName="MyApplication"
type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</roleManager>
<membership defaultProvider="CustomerProvider">
<providers>
<clear />
<add name="CustomerProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="Common"
applicationName="/"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
requiresUniqueEmail="true"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10"
minRequiredPasswordLength="8"
minRequiredNonalphanumericCharacters="0"
passwordStrengthRegularExpression="" />
</providers>
</membership>
The problem is that Membership.Provider.ApplicationName returns
"MyApplication" and not "/".