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="authentic ationService"
type="System.We b.Configuration .ScriptingAuthe nticationServic eSection,
System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5" requirePermissi on="false"
allowDefinition ="MachineToAppl ication"/>
<section name="roleServi ce"
type="System.We b.Configuration .ScriptingRoleS erviceSection,
System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5" requirePermissi on="false"
allowDefinition ="MachineToAppl ication"/>
</configSections>
<appSettings/>
<connectionStri ngs>
<add name="MySqlConn ection" connectionStrin g="Data Source=(local); Initial
Catalog=Drops;I ntegrated Security=True;"
providerName="S ystem.Data.SqlC lient"/>
</connectionStrin gs>
<system.web>
<roleManager enabled="true" cacheRolesInCoo kie="true"
defaultProvider ="SqlProvide r">
<providers>
<clear/>
<add name="SqlProvid er" type="System.We b.Security.SqlR oleProvider"
connectionStrin gName="MySqlCon nection" applicationName ="Domain Catcher"/>
</providers>
</roleManager>
<authenticati on mode="Forms">
<forms name=".ASPXFORM SAUTH" loginUrl="Login .aspx" />
</authentication>
<membership defaultProvider ="SqlProvide r" userIsOnlineTim eWindow="15">
<providers>
<clear/>
<add name="SqlProvid er" type="System.We b.Security.SqlM embershipProvid er"
connectionStrin gName="MySqlCon nection" applicationName ="Domain Catcher"
enablePasswordR etrieval="false " enablePasswordR eset="true"
requiresQuestio nAndAnswer="tru e" requiresUniqueE mail="true"
passwordFormat= "Hashed"/>
</providers>
</membership>
Any ideas?
Thanks,
Tino
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="authentic ationService"
type="System.We b.Configuration .ScriptingAuthe nticationServic eSection,
System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5" requirePermissi on="false"
allowDefinition ="MachineToAppl ication"/>
<section name="roleServi ce"
type="System.We b.Configuration .ScriptingRoleS erviceSection,
System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5" requirePermissi on="false"
allowDefinition ="MachineToAppl ication"/>
</configSections>
<appSettings/>
<connectionStri ngs>
<add name="MySqlConn ection" connectionStrin g="Data Source=(local); Initial
Catalog=Drops;I ntegrated Security=True;"
providerName="S ystem.Data.SqlC lient"/>
</connectionStrin gs>
<system.web>
<roleManager enabled="true" cacheRolesInCoo kie="true"
defaultProvider ="SqlProvide r">
<providers>
<clear/>
<add name="SqlProvid er" type="System.We b.Security.SqlR oleProvider"
connectionStrin gName="MySqlCon nection" applicationName ="Domain Catcher"/>
</providers>
</roleManager>
<authenticati on mode="Forms">
<forms name=".ASPXFORM SAUTH" loginUrl="Login .aspx" />
</authentication>
<membership defaultProvider ="SqlProvide r" userIsOnlineTim eWindow="15">
<providers>
<clear/>
<add name="SqlProvid er" type="System.We b.Security.SqlM embershipProvid er"
connectionStrin gName="MySqlCon nection" applicationName ="Domain Catcher"
enablePasswordR etrieval="false " enablePasswordR eset="true"
requiresQuestio nAndAnswer="tru e" requiresUniqueE mail="true"
passwordFormat= "Hashed"/>
</providers>
</membership>
Any ideas?
Thanks,
Tino
Comment