Kentico 10 - Configuring mixed-mode authentication - The Workstation service has not been started

Sebastian Hahn asked on June 15, 2018 11:53

Hi,

I want to use Mixed mode authentication in my application. I want Windows AD Authentication for intranet users and Forms authentication for internet users.

I have a VPN connection to the server where the AD is located. This works as far as on the server where Kentico (10) is installed. However, I get the following error message when logging in with an AD user:

Message: The Workstation service has not been started.

Exception type: System.Configuration.ConfigurationErrorsException
Stack trace: 
at System.Web.Security.Membership.Initialize()
at CMS.Helpers.RequestHelper.IsMixedAuthentication()

**Message: The Workstation service has not been started.**


Exception type: System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException
Stack trace: 
at System.DirectoryServices.ActiveDirectory.DirectoryContext.IsContextValid(DirectoryContext context, DirectoryContextType contextType)
at System.DirectoryServices.ActiveDirectory.DirectoryContext.isServer()
at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)
at System.Web.Security.DirectoryInformation.InitializeDomainAndForestName()
at System.Web.Security.ActiveDirectoryMembershipProvider.Initialize(String name, NameValueCollection config)
at CMS.MembershipProvider.CMSADMembershipProvider.Initialize(String name, NameValueCollection config)
at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)

**Message: The Workstation service has not been started.**


Exception type: System.Runtime.InteropServices.COMException
Stack trace: 
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.ActiveDirectory.DirectoryContext.IsContextValid(DirectoryContext context, DirectoryContextType contextType)

Can someone tell me why this could be?

Recent Answers


Rui Wang answered on June 15, 2018 14:48

Have you tried to use AD authentication only first? Does that work?

0 votesVote for this answer Mark as a Correct answer

Sebastian Hahn answered on June 15, 2018 17:19

I have tried this, but it doesn´t work.

0 votesVote for this answer Mark as a Correct answer

Rui Wang answered on June 15, 2018 17:22

Okay, so it's not a mix-mode only issue, but AD authentication does work. That's what you need to troubleshoot first. Is the server on the same domain? I googled that error and a lot of results mentioned SharePoint, is SharePoint involved somehow?

0 votesVote for this answer Mark as a Correct answer

Sebastian Hahn answered on June 15, 2018 17:38

No, we have two server an they are not on the same domain. We have running a VPN Connection to a Company with the AD. Sharepoint isn´t involved.

I have tested the LDAP Connection with a tool. With this tool i have a connection to the server and i can browse in the LDAP-Browser. With the same credentials in the webconfig i get this error.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on June 19, 2018 10:36

The server must be included into the domain controller to make AD authentication work - which is the part of the mixed mode authentication. So, you need to ensure this first and then the mixed mode authentication will work too.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.