I have a simple logon control and I use form/AD authentication using a service account. I still get the above error on testing. I am testing in: vs2005/ XP/localhost, asp.net 2.0
There was a permission issue, I fixed this and when I set the service account to my credentials, and log on using my AD account, I can log on, testing with other accounts give me failure. Here is the event log:
Process information:
Process ID: 2744
Process name: aspnet_wp.exe
Account name: MYWORKSTATION\ASPNET
Exception information:
Exception type: ConfigurationErrorsException
Exception message: Unable to establish secure connection with the server (C:\Web_sites\myweb\web.config line 25)
Thread information:
Thread ID: 1
Thread account name: MYWORKSTATION\ASPNET
Is impersonating: False
Stack trace: at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
at System.Web.Configuration.ProvidersHelper.InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType)
at System.Web.Security.Membership.Initialize()
at System.Web.UI.WebControls.LoginUtil.GetProvider(String providerName)
at System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e)
at System.Web.UI.WebControls.Login.AttemptLogin()
at System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.login_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\myweb\a133376d\a8f8690b\App_Web_jtd7ezbp.2.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
testing with other accounts give me failure. Here is the event log:
Event code: 3008
Event message: A configuration error has occurred.
Hi
In this case, base on my understanding, a configuration error occurs when you try to login with another AD account, Are you using the impersonate for the end-user?
I have seen some threads that have connection problem, similar to what you described, solved by this article. Hope it helps
Best Regards
XiaoYong Dai
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
raghu1
Contributor
2004 Points
558 Posts
Unable to establish secure connection with the server
Sep 20, 2007 08:53 PM|LINK
I have a simple logon control and I use form/AD authentication using a service account. I still get the above error on testing. I am testing in: vs2005/ XP/localhost, asp.net 2.0
The web.config is:
<?xml version="1.0"?>
<configuration>
<appSettings/>
<connectionStrings>
<add name="ADConnectionString" connectionString="LDAP://myDomain/DC=..." />
</connectionStrings>
<system.web>
<compilation debug="false"/>
<authentication mode="Forms">
<forms
name=".ADAuthCookie"
timeout="10" />
</authentication>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
<membership defaultProvider="MyADMembershipProvider">
<providers>
<add
name="MyADMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADConnectionString"
connectionUsername="Domain\ServiceAcct"
connectionPassword="password"/>
</providers>
</membership>
</system.web>
</configuration>
I am new to .NET 2.0 and login controls. What am I missing. For giggles, I change the service account to my domain account, I get the failureText:
Your login attempt was not successful ...
My userid/password are all correct.
What am I missing
thanksn
raghu1
Contributor
2004 Points
558 Posts
Re: Unable to establish secure connection with the server
Sep 21, 2007 07:04 PM|LINK
There was a permission issue, I fixed this and when I set the service account to my credentials, and log on using my AD account, I can log on, testing with other accounts give me failure. Here is the event log:
Event code: 3008
Event message: A configuration error has occurred.
Event time: 9/21/2007 2:47:28 PM
Event time (UTC): 9/21/2007 6:47:28 PM
Event ID: 4cfdd63f9d7f473d8382a48c875a9bb9
Event sequence: 24
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/w3svc/1/ROOT/nl-1-128348740341952023
Trust level: Full
Application Virtual Path: /myweb
Application Path: C:\Web_sites\myweb\
Machine name: MYWORKSTATION
Process information:
Process ID: 2744
Process name: aspnet_wp.exe
Account name: MYWORKSTATION\ASPNET
Exception information:
Exception type: ConfigurationErrorsException
Exception message: Unable to establish secure connection with the server (C:\Web_sites\myweb\web.config line 25)
Request information:
Request URL: http://localhost/myweb/login.aspx?ReturnUrl=/myweb/Default.aspx
Request path: /myweb/login.aspx
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: MYWORKSTATION\ASPNET
Thread information:
Thread ID: 1
Thread account name: MYWORKSTATION\ASPNET
Is impersonating: False
Stack trace: at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
at System.Web.Configuration.ProvidersHelper.InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType)
at System.Web.Security.Membership.Initialize()
at System.Web.UI.WebControls.LoginUtil.GetProvider(String providerName)
at System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e)
at System.Web.UI.WebControls.Login.AttemptLogin()
at System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.login_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\myweb\a133376d\a8f8690b\App_Web_jtd7ezbp.2.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
XiaoYong Dai...
All-Star
38310 Points
4229 Posts
Re: Unable to establish secure connection with the server
Sep 24, 2007 08:28 AM|LINK
Hi
In this case, base on my understanding, a configuration error occurs when you try to login with another AD account, Are you using the impersonate for the end-user?
I have seen some threads that have connection problem, similar to what you described, solved by this article. Hope it helps
http://blogs.msdn.com/dansellers/archive/2005/10/11/479941.aspx
XiaoYong Dai
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
raghu1
Contributor
2004 Points
558 Posts
Re: Unable to establish secure connection with the server
Sep 24, 2007 12:55 PM|LINK
Figured this out:
1. Cannot test logon with service accounts. Looks like these service accounts need "logon" permissions.
2. Used my domain account as service account in the web.config: conenctionUsername and password: works fine.
Now I need to have logon at directory level and not web-site level ?? more confusion..