I have a infopath web form with .net code behind that populates and executes an SAP web service. After submission I am executing the K2 generated Submit Workflow Service to start a K2 processinstance.
Try
Me.DataConnections("Submit Workflow Service").Execute()
sMsg += vbCrLf + vbCrLf + "PM Workflow Initiated."
Catch ex As Exception
sMsg += vbCrLf + vbCrLf + "PM Workflow Initiation failed. Contact your system administrator. " & vbCrLf & ex.Message
End Try
This works perfectly in DEV and QA, but now that I have moved it to the production environment I am getting an exception thrown. The message is:
InfoPath cannot submit the form.
An error occurred while the form was being submitted.
The SOAP response indicates that an error occurred on the server:
Server was unable to process request. ---> The process cannot be started due to the following reason: Send failed with error: An existing connection was forcibly closed by the remote host.
I've used NetStat on the K2 server to look at connections, and there is an active connection from the prod web server, so it doesn't look like it is closed.
It is rather urgent, and I may need to submit a support request soon. Both of my QA and PRD k2 servers have been in use by other processes for a couple of years, but this is the first time I've used code to initiate the workflow. Another process (aspx form) is being started with code via the K2 object model, but that isn't available within the infopath form.
Can anyone help me?