Hi there,
I am gettin this exception:
Parser Error Message: The container specified in the connection string does not exist
And here`s my case:
I have an WebApp with 2 pages Default.aspx & Login.aspx. The later contains a login control. The application is configured to work with and AD LDS instance as a membership store.
Here are some sections of interest in the web.config
<authentication mode="Forms">
<forms name=".AuthCookie" loginUrl="Login.aspx" timeout="10" />
</authentication>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
<membership defaultProvider="MyDSProvider">
<providers>
<add name="MyDSProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
applicationName="ADSecWebApp"
connectionStringName="MyDSConn"
connectionUsername="CN=Admin,CN=Users,CN=MyOrg,DC=MyDomain,C=CA"
connectionPassword="Welcome1"
connectionProtection="None"
/>
</providers>
</membership>
Then I installed an instance of AD LDS on my machine.
The AD LDS is configured as to have one application partition "CN=MyOrg,DC=MyDomain,C=CA".
Under this partition I created a container "CN=Users,CN=MyOrg,DC=MyDomain,C=CA"
Under this container I created two users: Admin & JohnS. Both were enabled and set up with passwords ("Welcome1" in case of "Admin")
Moreover the Admin was configured as a member of "CN=Administrators,CN=Roles,CN=MyOrg,DC=MyDomain,C=CA" (I found some articles on the net suggesting that when using connectionProtection="None" in ADMembershipProvider config section then and Windows account cannot be used, instead an AD account should be employed that has adminstration privileges on the AD instance used to connect to.)
Furthermore I have Windows 7, IIS7, VS 2008 SP1, .NET 3.5
Can someone give me some hints on what is wrong? I did research a lot, solved errors one by one, but it seems I got stuck with this one.
I would also appreciate some explanation about why is that in case I am given a solution cause I am a newbie.
Thanks in advance
Iulian