Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

GP 2016 R2 - Session Control Service won't startup for Web Client

Posted on by

Hi,

I would appreciate any help with this since I've been banging my head of it for too long.

I'm getting an error with trying to startup Session Control Service for GP 2016 R2 on my dev machine.

GP version: 2016 R2

OS: Windows server 2012 R2 (and tried 2012)

I only want to run Web Client on my dev machine and maybe hit it via internal IP.

I created a local windows user 'gpservice' (admin) to run the service during the Web Client install.

when I try to startup up session control service is stops abruptly and I see the following in the event viewer:

#1

Creating Service

 

Current User Name:

 

 

Input parameters:

 

Exception type:

System.Reflection.TargetInvocationException

 

Exception message:

Exception has been thrown by the target of an invocation.

 

Stack Trace:

   at Microsoft.Dynamics.GP.GPServiceHostContainer.CreateServiceHost(Type serviceType, Uri[] baseAddresses)

   at Microsoft.Dynamics.GP.GPServiceHostContainer.CreateServiceHost(Type serviceType)

   at Microsoft.Dynamics.GP.GPServiceHostAppDomain.CreateServiceHostInAppDomain()

   at Microsoft.Dynamics.GP.GPServiceHostAppDomain..ctor(Type serviceTypes, String appDomainNames, String configFileUri, PermissionSet permissions, Uri[] baseAddresse)

   at Microsoft.Dynamics.GP.NTServiceHost.CreateNewServiceHost(ServiceElement service, Type type)

   at Microsoft.Dynamics.GP.NTServiceHost.OnStart(String[] args)

 

#2

Exception type:

System.InvalidCastException

 

Exception message:

Unable to cast object of type 'System.Boolean' to type 'System.DirectoryServices.DirectoryEntry'.

 

Stack Trace:

   at System.DirectoryServices.AccountManagement.SAMStoreCtx.GetAsPrincipal(Object storeObject, Object discriminant)

   at System.DirectoryServices.AccountManagement.SAMStoreCtx.FindPrincipalByIdentRef(Type principalType, String urnScheme, String urnValue, DateTime referenceDate)

   at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable`1 identityType, String identityValue, DateTime refDate)

   at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithType(PrincipalContext context, Type principalType, IdentityType identityType, String identityValue)

   at Microsoft.Dynamics.GP.Web.Foundation.DirectoryServices.PrincipalManager.GetPrincipal(String userName)

   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

   at Microsoft.Dynamics.GP.Web.Foundation.DirectoryServices.PrincipalManager.AddIdentityValues(String principalCollectionKey, IEnumerable`1 identityValues)

   at Microsoft.Dynamics.GP.Web.Services.Session.Service.SessionCentralService.InitializePrincipalManager()

   at Microsoft.Dynamics.GP.Web.Services.Session.Service.SessionCentralService..ctor()

 

  

 Action:

Service Host Construction

 

Current User Name:

 

 

Input parameters:

Unable to serialize the input parameters.

 

Exception type:

System.Reflection.TargetInvocationException

 

Exception message:

Exception has been thrown by the target of an invocation.

 

Stack Trace:

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.ServiceModel.Description.ServiceDescription.CreateImplementation(Type serviceType)

   at System.ServiceModel.Description.ServiceDescription.SetupSingleton(ServiceDescription serviceDescription, Object implementation, Boolean isWellKnown)

   at System.ServiceModel.Description.ServiceDescription.GetService(Type serviceType)

   at System.ServiceModel.ServiceHost.CreateDescription(IDictionary`2& implementedContracts)

   at System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses)

   at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)

   at Microsoft.Dynamics.GP.GPServiceHostContainer.CreateServiceHost(Type serviceType, Uri[] baseAddresses)

 

#3

Exception type:

System.InvalidCastException

 

Exception message:

Unable to cast object of type 'System.Boolean' to type 'System.DirectoryServices.DirectoryEntry'.

 

Stack Trace:

   at System.DirectoryServices.AccountManagement.SAMStoreCtx.GetAsPrincipal(Object storeObject, Object discriminant)

   at System.DirectoryServices.AccountManagement.SAMStoreCtx.FindPrincipalByIdentRef(Type principalType, String urnScheme, String urnValue, DateTime referenceDate)

   at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable`1 identityType, String identityValue, DateTime refDate)

   at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithType(PrincipalContext context, Type principalType, IdentityType identityType, String identityValue)

   at Microsoft.Dynamics.GP.Web.Foundation.DirectoryServices.PrincipalManager.GetPrincipal(String userName)

   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

   at Microsoft.Dynamics.GP.Web.Foundation.DirectoryServices.PrincipalManager.AddIdentityValues(String principalCollectionKey, IEnumerable`1 identityValues)

   at Microsoft.Dynamics.GP.Web.Services.Session.Service.SessionCentralService.InitializePrincipalManager()

   at Microsoft.Dynamics.GP.Web.Services.Session.Service.SessionCentralService..ctor()

 

  

 

An error occurred during session central service initialization: 'System.InvalidCastException: Unable to cast object of type 'System.Boolean' to type 'System.DirectoryServices.DirectoryEntry'.

   at System.DirectoryServices.AccountManagement.SAMStoreCtx.GetAsPrincipal(Object storeObject, Object discriminant)

   at System.DirectoryServices.AccountManagement.SAMStoreCtx.FindPrincipalByIdentRef(Type principalType, String urnScheme, String urnValue, DateTime referenceDate)

   at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable`1 identityType, String identityValue, DateTime refDate)

   at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithType(PrincipalContext context, Type principalType, IdentityType identityType, String identityValue)

   at Microsoft.Dynamics.GP.Web.Foundation.DirectoryServices.PrincipalManager.GetPrincipal(String userName)

   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

   at Microsoft.Dynamics.GP.Web.Foundation.DirectoryServices.PrincipalManager.AddIdentityValues(String principalCollectionKey, IEnumerable`1 identityValues)

   at Microsoft.Dynamics.GP.Web.Services.Session.Service.SessionCentralService.InitializePrincipalManager()

   at Microsoft.Dynamics.GP.Web.Services.Session.Service.SessionCentralService..ctor()'.  

*This post is locked for comments

  • Suggested answer
    Simon77 Profile Picture
    Simon77 on at
    RE: GP 2016 R2 - Session Control Service won't startup for Web Client

    Thank you Vaidy! looks like #3 it is.  I'll give that a go.

  • Verified answer
    Vaidy Mohan Profile Picture
    Vaidy Mohan 351 on at
    RE: GP 2016 R2 - Session Control Service won't startup for Web Client

    Simon, check the following:

    1. Is this server part of a domain? If so, #2. If not, #3.

    2. Create a domain user account (instead of local account) and assign that account to run session central service. Repair web client install to change the account.

    3. Sorry, you cannot install web client on a machine that's not part of a domain. Add the server to a domain and then reinstall web client.

    Hope that helps.

  • Simon77 Profile Picture
    Simon77 on at
    RE: GP 2016 R2 - Session Control Service won't startup for Web Client

    Sorry, typo - I meant GP Session Central Service

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans