I have an admin site configured as a virtual application inside another website.
I would like visitors in a subdirectory (virtual application) to be advertised for credentials using the same forms-based authentication that was installed on the main parent site
We tried all kinds of things, but could not get it to work, including
Removing all <authentication mode="Forms"> , <authorization> , <membership> and <roles> sections from the web.config virtual application
Copying the same sections <authentication mode="Forms"> , <authorization> , <membership> and <roles> from the parent to the web.config virtual application
Using a virtual directory instead of a virtual application
But I never tried credentials
Does anyone know how to get this setting?
thanks
UPDATE:
Now it has received permission inheritance from the parent by deleting the application name in IIS (to make it a virtual directory, not a virtual application)
However this twists all the way in the admin site
eg. I get the following error:
The file '/Site.master' does not exist.
So should I use a virtual directory (which seems to inherit authentication from the parent)?
Or a virtual application (which does not currently inherit auth from the parent, but has the correct relative paths)?
Here is the parent config
<membership defaultProvider="SqlServerMembershipProvider"> <providers> <add connectionStringName="xxxxxxxx" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" name="SqlServerMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </providers> </membership> <roleManager enabled="true" defaultProvider="SqlServerRoleProvider"> <providers> <add connectionStringName="xxxxxxx" applicationName="/" name="SqlServerRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </providers> </roleManager> <authentication mode="Forms"> <forms name=".EPiServerLogin" loginUrl="login.aspx" timeout="120"/> </authentication> <authorization> <deny users="?"/> </authorization>