Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 14, 2011 06:38 PM by fuhkit
Dec 11, 2011 04:22 PM|LINK
I setup a basic login system using the login control, tied to AD. From inside my companies network the site works perfect. Authenticates through AD fine without any issues or errors. However, when I attempt to work on the site locally over a VPN, I cant
test what Im working on without publishing the site to one of our internal servers. Im assuming its due to the fact that running it locally, even over the VPN, AD sees my machine as an outsider.
It fails here:
Parser Error Message: Unable to establish secure connection with the
Line 29: type="System.Web.Security.ActiveDirectoryMembershipProvider,
Line 30: System.Web, Version=220.127.116.11, Culture=neutral,
Line 31: PublicKeyToken=b03f5f7f11d50a3a"
Any work around for this? Id rather not have to publish my site every time I make a small change. Ive read to try using the AD IP instead of domain name, which didnt help.
Dec 11, 2011 08:09 PM|LINK
You probably need to pass a username and password to authenticate with the ldap with your directoryentry.
Dim De As DirectoryEntry = New DirectoryEntry(LDAP://, username, password)
Dec 11, 2011 08:28 PM|LINK
How would I go about that if I set my connection in the webconfig? Im just using a login control via the following, so theres no code for DirectoryEntry.
System.Web, Version=18.104.22.168, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Dec 12, 2011 10:38 PM|LINK
Looksl like you need to add a username and password to your provider
<add name="1" type="..." connectionStringName="" connectionUsername="<domainName>\administrator" connectionPassword="password"/>
Dec 14, 2011 01:17 PM|LINK
Was really hoping this would work. After applying the username and password, I tested behind the network and it worked fine. From outside the network Im still getting the same error:
Parser Error Message: Unable to establish secure connection with the server
Line 66: <providers>
Line 67: <add name="1"
Line 68: type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Line 69: connectionStringName="ADConnectionString1"
I even tried adding connectionProtection="Secure" which did nothing. Any other ideas?
Dec 14, 2011 03:41 PM|LINK
Maybe the VPN connection is too slow to allow the connection to work. Or maybe the VPN has that type of connection blocked. Not sure.
Also, did you enter the username as Domain\username?
Dec 14, 2011 06:38 PM|LINK
I dont think the speed is an issue. And yes I used the domain before username.
Since I cant figure this out, a work around can be done as follows:
Dump the uncompiled site onto the internal network somewhere. And just access it remotely to edit, setup the location in IIS. Run the site through IIS for testing.