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

register-spworkflowservice the underlying connection was closed error while configuring workflow manager in SharePoint 2016
InfoPath alternatives for form designing SharePoint

In this post we will discuss how to resolve “register-spworkflowservice the underlying connection was closed” which comes while configuring workflow manager in SharePoint 2013.

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

You may like to read:
– SharePoint Server 2016 Installation Step by Step

– SharePoint 2016 new features

– Dictionary actions example in SharePoint Designer 2013

The error comes like below:

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

Solution:
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 Workflow Management Site from the site and you will be able to see your protocols in Browse Website section like below:

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

Hope this will be helpful.

Similar SharePoint 2013 Tutorials

About 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

View all posts by Bijay Kumar →

Leave a Reply