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