Sharepoint
SharePoint 2013 註冊工作流錯誤
當我嘗試執行 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 腳本
Set-WFCertificate -SslCertificateThumbprint <thumbprint> -EncryptionCertificateThumbprint <thumbprint> Set-WFNextOutboundCertificateReference -ServiceURI https://server.domain:12290/ -Thumbprint <thumbprint> Stop-WFHost Update-WFHost Start-WFHost Set-WFNextOutboundCertificateAsCurrent -ServiceURI https://server.domain:12290/
然後我必須從 Internet Explorer 將證書導出為 Base 64 Encoded X.509 (.cer)
然後在我的 SharePoint 場中,我必須使用以下 Powershell 安裝剛剛導出到信任庫的證書
$cert = Get-PfxCertificate "FULLY QUALIFIED PATH TO Cert" New-SPTrustedRootAuthority -Name "Dev Workflow Farm Cert" -Certificate $cert
最後,在 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