register-spworkflowservice the underlying connection was closed error while configuring workflow manager in SharePoint 2013/2016

This SharePoint workflow tutorial explains, how to resolve “register-spworkflowservice the underlying connection was closed” which comes while configuring the workflow manager in SharePoint 2013/2016.

The error comes when I run the Register-SPWorkflowService command in SharePoint 2013 management shell.

Register-SPWorkflowService -SPSite "http://win-pfcp2dgt8di/sites/EnjoySharePoint/" -WorkflowHostUri "http://WIN-PFCP2DGT8DI.enjoysharepoint.org:12290" -AllowOAuthHttp

The error comes like below:

register-spworkflowservice the underlying connection was closed
register-spworkflowservice the underlying connection was closed

register-spworkflowservice the underlying connection was closed

The problem was with the port number, I was giving here 12290. When I changed to 12291 it works for me.

For https, the port was set to 12290 and for http the port was set to 12291.

My site is configured to http. So I changed the command like below:

Register-SPWorkflowService -SPSite "http://win-pfcp2dgt8di/sites/EnjoySharePoint/" -WorkflowHostUri "http://WIN-PFCP2DGT8DI.enjoysharepoint.org:12291" -AllowOAuthHttp

If you want to check you open your IIS (Internet Information Services), Manager. Then select the Workflow Management Site from the site and you will be able to see your protocols in the Browse Website section like below:

You may like following SharePoint workflow tutorials:

Hope this will be helpful to resolve register-spworkflowservice the underlying connection was closed error which comes while configuring workflow manager in SharePoint 2013/2016.

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

>