G
Guest
Hi can someone please tell me why I can't put the following LDAP path into
my web.config fill as an <appSetting> and how do I get it to work!
<appSettings>
<add key="strLDAP" value="'LDAP://doamin.domain.com', 'Administrator',
'Password'" />
</appSettings>
The connection string doesn't work when I call it in the code as shown
below...
DirectoryEntry(ConfigurationSettings.AppSettings("strLDAP"))
But this works fine if I put it straight into the code!
DirectoryEntry("LDAP://" & strADPath, "Administrator", "Password")
I don't get it... It is the same thing????
Could someone please give me some advice!
Thanks
my web.config fill as an <appSetting> and how do I get it to work!
<appSettings>
<add key="strLDAP" value="'LDAP://doamin.domain.com', 'Administrator',
'Password'" />
</appSettings>
The connection string doesn't work when I call it in the code as shown
below...
DirectoryEntry(ConfigurationSettings.AppSettings("strLDAP"))
But this works fine if I put it straight into the code!
DirectoryEntry("LDAP://" & strADPath, "Administrator", "Password")
I don't get it... It is the same thing????
Could someone please give me some advice!
Thanks