Are you getting this error: (Microsoft.SharePoint.SPEndpointAddressNotFoundException: There are no addresses available for this application.) when publishing SharePoint 2013 workflows?

Microsoft.SharePoint.SPEndpointAddressNotFoundException: There are no addresses available for this application.    at Microsoft.SharePoint.SPRoundRobinServiceLoadBalancer.BeginOperation()    at Microsoft.SharePoint.Administration.SPServiceApplicationProxyBase`1.ExecuteOnChannel(Boolean requireDelegation, Action`1 codeBlock)    at Microsoft.SharePoint.AppManagement.AppManagementServiceApplicationProxy.GetScaleOutDatabaseMap()    at Microsoft.SharePoint.SPScaleOutDatabaseMap.GetMapCacheEntries

try these steps to fix it:

  1. If you use HTTP: Register-SPWorkflowService –SPSite “http://mysitecollection” –WorkflowHostUri “http://server.domain.com:12291” –AllowOAuthHttp -force
  2. If you use HTTPS: Register-SPWorkflowService -SPSite “https://myserver/mysitecollection” -WorkflowHostUri “https://server.domain.com:12290”
  3. Check that the SharePoint Service “App management Service” is started
  4. IISRESET after starting the “App management Service”