Ok I've googled my little butt off here and I haven't been able to find a hit on this. Hopefully I can get a faster answer here.
I've setup my site to use LDAP authentication and it's working like a champ on VS on my laptop. When I copy the entire site over to my test server I get the following error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unable to establish secure connection with the server
Source Error:
Line 20: <clear />
Line 21: <add name="AspNetActiveDirectoryMembershipProvider"
Line 22: type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Line 23: connectionStringName="ADService" />
Line 24: </providers>
I have a feeling this is probably something not set correctly in IIS since both my laptop and test server are ASP 4.0 and it's working fine on my laptop.
Loganix77
Participant
1351 Points
412 Posts
Error when authenticating
May 07, 2012 07:45 PM|LINK
Ok I've googled my little butt off here and I haven't been able to find a hit on this. Hopefully I can get a faster answer here.
I've setup my site to use LDAP authentication and it's working like a champ on VS on my laptop. When I copy the entire site over to my test server I get the following error:
I have a feeling this is probably something not set correctly in IIS since both my laptop and test server are ASP 4.0 and it's working fine on my laptop.
Here's my web.config
<?xml version="1.0"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <connectionStrings> <add name="ADService" connectionString="LDAP://mydomain.local"/> </connectionStrings> <system.web> <compilation debug="true" strict="false" explicit="true" targetFramework="4.0"/> <authentication mode="Forms"> <forms name=".ADAuthCookie" loginUrl="~/Account/Login.aspx" timeout="2880"/> </authentication> <membership defaultProvider="AspNetActiveDirectoryMembershipProvider"> <providers> <clear /> <add name="AspNetActiveDirectoryMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADService" /> </providers> </membership> <profile> <providers> <clear/> <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/> </providers> </profile> <roleManager enabled="false"> <providers> <clear/> <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/> <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/> </providers> </roleManager> <customErrors mode="Off"></customErrors> </system.web> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> </configuration>Loganix77
Participant
1351 Points
412 Posts
Re: Error when authenticating
May 07, 2012 08:59 PM|LINK
I added:
To my web.config and it's working