当我尝试运行 PowerShell 命令以在我的 SharePoint 2013 服务器上注册我的工作流服务时,我的 ULS 和 PowerShell 窗口中出现以下错误。
Register-SPWorkflowService -SPSite "http://sharepoint.domain" -WorkflowHostUri "https://workflow.domain:12290" -ScopeName "DevSP" -AllowOAuthHttp -Force
Register-SPWorkflowService : Object reference not set to an instance of an
object.
At line:1 char:1
+ Register-SPWorkflowService -SPSite "http://slcdevsp144" -WorkflowHost ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Share...WorkflowService:
RegisterSPWorkflowService) [Register-SPWorkflowService], NullReferenceExce
ption
+ FullyQualifiedErrorId : Microsoft.SharePoint.WorkflowServices.PowerShell
.RegisterSPWorkflowService
06/11/2019 10:24:50.80 PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium Updating SPPersistedObject WorkflowDeploymentGroupTypePersistedObject Name=WorkflowDeploymentGroupTypePersistedObject. Version: 9146151 Ensure: False, HashCode: 64984250, Id: f0f5a80e-9feb-4aaf-9e86-abcf973d7881, Stack: at Microsoft.SharePoint.WorkflowServices.WorkflowServiceApplicationProxy.RegisterWorkflowLifecycleManagementEnvironment() at Microsoft.SharePoint.WorkflowServices.PowerShell.RegisterSPWorkflowService.InternalProcessRecord() at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord() at System.Management.Automation.CommandProcessor.ProcessRecord() at System.Management.Automation.CommandProcessorBase.DoExecute() at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) at System.Management.Automation.Pipeli... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.80* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ...neOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action`1 clause, Object dollarUnderb... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.80* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ...ar, Object inputToProcess) at System.Management.Automation.DlrScriptCommandProcessor.Complete() at System.Management.Automation.CommandProcessorBase.DoComplete() at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper() at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc() at System.Management.Automation.Runspaces.PipelineThread.WorkerProc() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) ... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.80* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ...at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.80 PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium Updating SPPersistedObject WorkflowAppPartTypePersistedObject Name=WorkflowAppPartTypePersistedObject. Version: 9146153 Ensure: False, HashCode: 38610103, Id: 4527f25c-501e-41e6-9ddf-67ff26bb9100, Stack: at Microsoft.SharePoint.WorkflowServices.WorkflowServiceApplicationProxy.RegisterWorkflowLifecycleManagementEnvironment() at Microsoft.SharePoint.WorkflowServices.PowerShell.RegisterSPWorkflowService.InternalProcessRecord() at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord() at System.Management.Automation.CommandProcessor.ProcessRecord() at System.Management.Automation.CommandProcessorBase.DoExecute() at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) at System.Management.Automation.PipelineOps.InvokePipe... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.80* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ...line(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action`1 clause, Object dollarUnderbar, Object input... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.80* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ...ToProcess) at System.Management.Automation.DlrScriptCommandProcessor.Complete() at System.Management.Automation.CommandProcessorBase.DoComplete() at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper() at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc() at System.Management.Automation.Runspaces.PipelineThread.WorkerProc() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Thread... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.80* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ...ing.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.85 PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium Updating SPPersistedObject WorkflowServiceApplicationProxy Name=Workflow Service Application Proxy. Version: 9146293 Ensure: False, HashCode: 49841781, Id: 5bf2865b-f8bd-4266-a372-0aa6da484e54, Stack: at Microsoft.SharePoint.WorkflowServices.WorkflowServiceApplicationProxy.Update() at Microsoft.SharePoint.WorkflowServices.WorkflowServiceApplicationProxy.Microsoft.SharePoint.WorkflowServices.IWorkflowService.SetProperty[T](SPSite site, WorkflowServiceProperty property, T value) at Microsoft.SharePoint.WorkflowServices.WorkflowServerPairingContext.RegisterFarm() at Microsoft.SharePoint.WorkflowServices.PowerShell.RegisterSPWorkflowService.InternalProcessRecord() at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord() at System.Management.Automation.CommandProcessor... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.85* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ....ProcessRecord() at System.Management.Automation.CommandProcessorBase.DoExecute() at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpret... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.85* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ...er.Interpreter.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess) at System.Management.Automation.DlrScriptCommandProcessor.Complete() at System.Management.Automation.CommandProcessorBase.DoComplete() at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper() at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc(... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.85* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ...) at System.Management.Automation.Runspaces.PipelineThread.WorkerProc() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.85 PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium Updating SPPersistedObject WorkflowServiceApplicationProxy Name=Workflow Service Application Proxy. Version: 9146301 Ensure: False, HashCode: 49841781, Id: 5bf2865b-f8bd-4266-a372-0aa6da484e54, Stack: at Microsoft.SharePoint.WorkflowServices.WorkflowServiceApplicationProxy.Update() at Microsoft.SharePoint.WorkflowServices.WorkflowServiceApplicationProxy.Microsoft.SharePoint.WorkflowServices.IWorkflowService.SetProperty[T](SPSite site, WorkflowServiceProperty property, T value) at Microsoft.SharePoint.WorkflowServices.WorkflowServiceApplicationProxy.SetWorkflowServiceAddress(SPSite site, String uri) at Microsoft.SharePoint.WorkflowServices.WorkflowServerPairingContext.RegisterFarm() at Microsoft.SharePoint.WorkflowServices.PowerShell.RegisterSPWorkflowService.InternalProc... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.85* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ...essRecord() at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord() at System.Management.Automation.CommandProcessor.ProcessRecord() at System.Management.Automation.CommandProcessorBase.DoExecute() at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.85* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ...Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess) at System.Management.Automation.DlrScriptCommandProcessor.Complete() at System.Management.Automation.CommandProcessorBase.DoComplete() at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) at System.Management... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.85* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ....Automation.Runspaces.LocalPipeline.InvokeHelper() at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc() at System.Management.Automation.Runspaces.PipelineThread.WorkerProc() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.86 PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium Updating SPPersistedObject WorkflowServiceApplicationProxy Name=Workflow Service Application Proxy. Version: 9146303 Ensure: False, HashCode: 49841781, Id: 5bf2865b-f8bd-4266-a372-0aa6da484e54, Stack: at Microsoft.SharePoint.WorkflowServices.WorkflowServiceApplicationProxy.Update() at Microsoft.SharePoint.WorkflowServices.WorkflowServiceApplicationProxy.Microsoft.SharePoint.WorkflowServices.IWorkflowService.SetProperty[T](SPSite site, WorkflowServiceProperty property, T value) at Microsoft.SharePoint.WorkflowServices.WorkflowServerPairingContext.RegisterFarm() at Microsoft.SharePoint.WorkflowServices.PowerShell.RegisterSPWorkflowService.InternalProcessRecord() at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord() at System.Management.Automation.CommandProcessor... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.86* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ....ProcessRecord() at System.Management.Automation.CommandProcessorBase.DoExecute() at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpret... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.86* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ...er.Interpreter.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess) at System.Management.Automation.DlrScriptCommandProcessor.Complete() at System.Management.Automation.CommandProcessorBase.DoComplete() at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper() at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc(... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.86* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ...) at System.Management.Automation.Runspaces.PipelineThread.WorkerProc() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.88 PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium Updating SPPersistedObject WorkflowServiceApplicationProxy Name=Workflow Service Application Proxy. Version: 9146305 Ensure: False, HashCode: 49841781, Id: 5bf2865b-f8bd-4266-a372-0aa6da484e54, Stack: at Microsoft.SharePoint.WorkflowServices.WorkflowServiceApplicationProxy.Update() at Microsoft.SharePoint.WorkflowServices.WorkflowServiceApplicationProxy.Microsoft.SharePoint.WorkflowServices.IWorkflowService.SetProperty[T](SPSite site, WorkflowServiceProperty property, T value) at Microsoft.SharePoint.WorkflowServices.WorkflowServerPairingContext.RegisterFarm() at Microsoft.SharePoint.WorkflowServices.PowerShell.RegisterSPWorkflowService.InternalProcessRecord() at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord() at System.Management.Automation.CommandProcessor... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.88* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ....ProcessRecord() at System.Management.Automation.CommandProcessorBase.DoExecute() at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpret... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.88* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ...er.Interpreter.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess) at System.Management.Automation.DlrScriptCommandProcessor.Complete() at System.Management.Automation.CommandProcessorBase.DoComplete() at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper() at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc(... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.88* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ...) at System.Management.Automation.Runspaces.PipelineThread.WorkerProc() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.88 PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium Updating SPPersistedObject WorkflowServiceApplicationProxy Name=Workflow Service Application Proxy. Version: 9146307 Ensure: False, HashCode: 49841781, Id: 5bf2865b-f8bd-4266-a372-0aa6da484e54, Stack: at Microsoft.SharePoint.WorkflowServices.WorkflowServiceApplicationProxy.Update() at Microsoft.SharePoint.WorkflowServices.WorkflowServerPairingContext.RegisterFarm() at Microsoft.SharePoint.WorkflowServices.PowerShell.RegisterSPWorkflowService.InternalProcessRecord() at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord() at System.Management.Automation.CommandProcessor.ProcessRecord() at System.Management.Automation.CommandProcessorBase.DoExecute() at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) at Syste... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.88* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ...m.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.88* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ...`1 clause, Object dollarUnderbar, Object inputToProcess) at System.Management.Automation.DlrScriptCommandProcessor.Complete() at System.Management.Automation.CommandProcessorBase.DoComplete() at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper() at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc() at System.Management.Automation.Runspaces.PipelineThread.WorkerProc() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state,... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.88* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Topology 8xqz Medium ... Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.89 PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Application Authentication afron High Attempting to download security token service json metadata from 'https://workflow.domain:12290/$System/$Metadata/json/1'. c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.91 PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation Application Authentication afroq High Security token service json metadata successfully downloaded from 'https://workflow.domain:12290/$System/$Metadata/json/1'. c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.91 PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation PowerShell 6tf2 High System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.Administration.Claims.SPTrustedProviderBase.UpdateFromMetadataFeed(Boolean isFirstTime) at Microsoft.SharePoint.Administration.Claims.SPTrustedProviderBase..ctor(SPPersistedObject parent, String name, String description, X509Certificate2 certificate, Uri metadataEndPoint, SPSecurityTokenServiceJsonMetadataDocument metadataDocument) at Microsoft.SharePoint.Administration.Claims.SPTrustedProviderBase..ctor(SPPersistedObject parent, String name, String description, Uri metadataEndPoint) at Microsoft.SharePoint.WorkflowServices.WorkflowServiceHelper.EnsureTrustedSecurityTokenService(Uri metadataEndpoint, Boolean allowHttp) at Microsoft.SharePoint.WorkflowServices.Wor... c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.91* PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation PowerShell 6tf2 High ...kflowServerPairingContext.ConfigureOAuth(Boolean allowOAuthHttp) at Microsoft.SharePoint.WorkflowServices.PowerShell.RegisterSPWorkflowService.InternalProcessRecord() at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord() c2ab5670-d75f-4010-81c4-3c27301574b8
06/11/2019 10:24:50.91 PowerShell.exe (0x2A04) 0x2C98 SharePoint Foundation PowerShell 91ux High Error Category: InvalidData Target Object Microsoft.SharePoint.WorkflowServices.PowerShell.RegisterSPWorkflowService Details NULL RecommendedAction NULL c2ab5670-d75f-4010-81c4-3c27301574b8
经过大量研究,我明白了这一点。问题是工作流管理器创建的自签名证书已过期。我必须首先在我的工作流服务器上运行以下 Powershell 脚本
然后我必须从 Internet Explorer 将证书导出为 Base 64 Encoded X.509 (.cer)
然后在我的 SharePoint 场中,我必须使用以下 Powershell 安装刚刚导出到信任库的证书
最后,在 SharePoint 2013 管理中心内完成所有这些后,转到 Monitoring Then Review Job Definitions,然后找到
Refresh Trusted Security Token Services Metadata feed.
单击它,然后单击立即运行等待 5 分钟,然后运行
Register-SPWorkflowService -SPSite "http://sharepoint.domain" -WorkflowHostUri "https://workflow.domain:12290" -ScopeName "DevSP" -AllowOAuthHttp -Force