InvalidOperationException when C2WTS service is created:

Topics: Support
Aug 23, 2014 at 5:20 PM
Edited Aug 23, 2014 at 5:20 PM
I am getting an error when the C2WTS service is created:
 - Done creating Managed Metadata Service Application.
--------------------------------------------------------------
--------------------------------------------------------------
 - Starting Claims to Windows Token Service...
 - Waiting for Claims to Windows Token Service...Online
 - Setting C2WTS to depend on Cryptographic Services...
[SC] ChangeServiceConfig SUCCESS
--------------------------------------------------------------
 - Script halted!


Exception             : System.InvalidOperationException: Cannot process request because the process (3556) has exited.
                           at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
                           at System.Diagnostics.Process.OpenProcessHandle(Int32 access)
                           at System.Diagnostics.Process.get_Handle()
                           at Microsoft.PowerShell.Commands.ProcessCollection.AssignProcessToJobObject(Process process)
                           at Microsoft.PowerShell.Commands.StartProcessCommand.BeginProcessing()
                           at System.Management.Automation.Cmdlet.DoBeginProcessing()
                           at System.Management.Automation.CommandProcessorBase.DoBegin()
TargetObject          :
CategoryInfo          : NotSpecified: (:) [Start-Process], InvalidOperationException
FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
ErrorDetails          :
InvocationInfo        : System.Management.Automation.InvocationInfo
ScriptStackTrace      : at ConfigureClaimsToWindowsTokenService,
                        C:\AutoSPInstaller\AutoSPInstaller\AutoSPInstallerFunctions.ps1: line 3934
                        at Setup-Services, C:\AutoSPInstaller\AutoSPInstaller\AutoSPInstallerMain.ps1: line 214
                        at <ScriptBlock>, C:\AutoSPInstaller\AutoSPInstaller\AutoSPInstallerMain.ps1: line 404
                        at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails      :



-----------------------------------
| Automated SP2013 install script |
| Started on: 23/08/2014 17:35:44 |
| Aborted:    23/08/2014 18:11:56 |
-----------------------------------
PS C:\Windows\system32>
Any idea what i am doing wrong please?
Aug 24, 2014 at 12:02 PM
What happens if you try to start C2WTS from central administration? does it fail?
Sep 24, 2015 at 12:09 PM
Hello,

I've the same Problem. How can I solve this Problem?

Thanks for your help.

Kind regards