Membership permissions after publishing an ASP.NET Membership site.

  • Thread starter Thread starter Tino Donderwinkel
  • Start date Start date
T

Tino Donderwinkel

Hi all,

I have create a simple ASP.NET site that uses the ASP.NET Membership
components. It uses a SQL Server as a provider.
The application works fine when it's running on my own machine.

After I publish the site to a remote webserver and recreate the database
over on the remote site, the permissions on the folders are gone.

I can succesfully log on, log off, and do all the 'normal' membership stuff,
but the folders I had protected through the Web Site Administration Tool are
now accessible to unauthenticated users.

The application appears to be set up just fine on the remote machine,
because I can logon etc. It's just that the folders that should be
accessible only to authenticated users in a particular role, are now
accessible to any user.

The RELEVANT portion of my web.config;

<configSections>
<section name="authenticationService"
type="System.Web.Configuration.ScriptingAuthenticationServiceSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
<section name="roleService"
type="System.Web.Configuration.ScriptingRoleServiceSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
</configSections>
<appSettings/>
<connectionStrings>
<add name="MySqlConnection" connectionString="Data Source=(local);Initial
Catalog=Drops;Integrated Security=True;"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<roleManager enabled="true" cacheRolesInCookie="true"
defaultProvider="SqlProvider">
<providers>
<clear/>
<add name="SqlProvider" type="System.Web.Security.SqlRoleProvider"
connectionStringName="MySqlConnection" applicationName="Domain Catcher"/>
</providers>
</roleManager>
<authentication mode="Forms">
<forms name=".ASPXFORMSAUTH" loginUrl="Login.aspx" />
</authentication>
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15">
<providers>
<clear/>
<add name="SqlProvider" type="System.Web.Security.SqlMembershipProvider"
connectionStringName="MySqlConnection" applicationName="Domain Catcher"
enablePasswordRetrieval="false" enablePasswordReset="true"
requiresQuestionAndAnswer="true" requiresUniqueEmail="true"
passwordFormat="Hashed"/>
</providers>
</membership>


Any ideas?

Thanks,

Tino
 
Back
Top