PowerShell Script: Register-SPWorkflowService –SPSite "http://yourSharePointSiteCollection" –WorkflowHostUri "
https:
//yourWorkFlowServer:12290" –AllowOAuthHttp -force
Troubleshooting: Register-SPWorkflowService : The underlying connection was closed: An unexpected error occurred on a receive.
+ CategoryInfo : InvalidData: (Microsoft.Share…WorkflowService:
RegisterSPWorkflowService) [Register-SPWorkflowService], InvalidOperationE
xception
+ FullyQualifiedErrorId : Microsoft.SharePoint.WorkflowServices.PowerShell
.RegisterSPWorkflowServicePS C:\Users\Asish.Punnose> Register-SPWorkflowService -SPSite “http://SharePointSite” -WorkflowHostUri “http://WorkFlowServer:12290” -AllowOAuthHttp -force
Register-SPWorkflowService : Cannot find an SPSite object that contains the
following Id or Url: http://SharePointSite.
At line:1 char:1
+ Register-SPWorkflowService -SPSite “http://SharePointSite” -WorkflowHostUri
“http …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
RegisterSPWorkflowService) [Register-SPWorkflowService], InvalidOperationE
xception
+ FullyQualifiedErrorId : Microsoft.SharePoint.WorkflowServices.PowerShell
.RegisterSPWorkflowServicePS C:\Users\Asish.Punnose> Register-SPWorkflowService -SPSite “http://SharePointSite” -WorkflowHostUri “http://WorkFlowServer:12290” -AllowOAuthHttp -force
Register-SPWorkflowService : Cannot find an SPSite object that contains the
following Id or Url: http://SharePointSite.
At line:1 char:1
+ Register-SPWorkflowService -SPSite “http://SharePointSite” -WorkflowHostUri
“http …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
Solution: Make sure to use https instead of http for your WorkFlow Host
Register-SPWorkflowService –SPSite "http://yourSharePointSiteCollection" –WorkflowHostUri "
https:
//yourWorkFlowServer:12290" –AllowOAuthHttp -force