Quantcast
Channel: Workflow Manager 1.0 forum
Viewing all articles
Browse latest Browse all 897

Getting exception when connecting to http://:12290/ using the example: UsingWorkflowTools.

$
0
0

Hi Community,

I have a WorkflowManager installed on a WindowsServer 2012. Running at port 12290, 12291.

From a different pc, using network tools, I'm sure i can connect to <server> 12290:12291.

Connecting to the localhost TestServiceHost also works fine.

However, running the exmaple UsingWorkflowTools to connect to server 2012, an exception will be raised exception at this line: (Ran as Admin)

managementClient.CurrentScope.PublishChildScope(scopeName, new ScopeDescription()
                {
                    UserComments = string.Format("For {0} sample only", scopeName)
                });

Exception:

Unhandled Exception: 
Microsoft.Workflow.Client.WorkflowCommunicationException: The underlying connection was closed: An unexpected error occurred 
on a receive. Client ActivityId : 72018350-f7c0-42f7-9811-2c006a7ac760. ---> System.Net.WebException: The underlying 
connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the 
transport connection: An existing connection was forcibly closed by the remote host. ---> 
System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
   at System.Net.PooledStream.EndRead(IAsyncResult asyncResult)
   at System.Net.Connection.ReadCallback(IAsyncResult asyncResult)
   --- End of inner exception stack trace ---
   at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)
   at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
   --- End of inner exception stack trace ---
   at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
   at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)
   at Microsoft.Workflow.Client.ScopeManager.PublishScopeInternal(ScopeDescription description, String[] pathSegments)
   at Microsoft.Workflow.Client.ScopeManager.PublishChildScope(String childScopeName, ScopeDescription description)
   at UsingWorkflowTools.Helper.CreateManagementClient(Uri baseUri, String scopeName) in e:\projects\Using Workflow Tools 
1.0 for Visual Studio 2012\C#\UsingWorkflowTools\Helper.cs:line 96
   at UsingWorkflowTools.Helper.PublishWorkflow(Uri baseUri, String scopeName, String activityFile, String activityName, 
String workflowName, Boolean startWorkflow, Dictionary`2 filters) in e:\projects\Using Workflow Tools 1.0 for Visual Studio 
2012\C#\UsingWorkflowTools\Helper.cs:line 27
   at UsingWorkflowTools.Program.Main(String[] args) in e:\projects\Using Workflow Tools 1.0 for Visual Studio 
2012\C#\UsingWorkflowTools\Program.cs:line 48







Viewing all articles
Browse latest Browse all 897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>