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
server
<add name="MyADMembershipProvider" Line 29: type="System.Web.Security.ActiveDirectoryMembershipProvider,
Line 30: System.Web, Version=2.0.0.0, 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.
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.
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=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Line 69: connectionStringName="ADConnectionString1"
I even tried adding connectionProtection="Secure" which did nothing. Any other ideas?
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.
fuhkit
Member
16 Points
4 Posts
Parser Error Message: Unable to establish secure connection with the server
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
server
<add name="MyADMembershipProvider"
Line 29: type="System.Web.Security.ActiveDirectoryMembershipProvider,
Line 30: System.Web, Version=2.0.0.0, 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.
gww
Contributor
2143 Points
458 Posts
Re: Parser Error Message: Unable to establish secure connection with the server
Dec 11, 2011 08:09 PM|LINK
You probably need to pass a username and password to authenticate with the ldap with your directoryentry.
fuhkit
Member
16 Points
4 Posts
Re: Parser Error Message: Unable to establish secure connection with the server
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.
<connectionStrings>
<add name="ADConnectionString1" connectionString="LDAP://domain.com"/>
</connectionStrings>
<membership defaultProvider="1">
<providers>
<add name="1" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnectionString1" attributeMapUsername="sAMAccountName"/>
</providers>
</membership>
gww
Contributor
2143 Points
458 Posts
Re: Parser Error Message: Unable to establish secure connection with the server
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"/>
fuhkit
Member
16 Points
4 Posts
Re: Parser Error Message: Unable to establish secure connection with the server
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=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"Line 69: connectionStringName="ADConnectionString1"
I even tried adding connectionProtection="Secure" which did nothing. Any other ideas?
gww
Contributor
2143 Points
458 Posts
Re: Parser Error Message: Unable to establish secure connection with the server
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?
fuhkit
Member
16 Points
4 Posts
Re: Parser Error Message: Unable to establish secure connection with the server
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.