AnsweredAssumed Answered

The remote server returned an error: (417) Expectation Failed.

Question asked by jmoore@parc.com on Apr 6, 2017

We are doing a migration from 2010 to 2016 using the database attach method. Most everything is working and all the GUIDs for the UDAs are correct, but I have an issue with Web Requests.

 

I have a site workflow that checks some conditions and uses a web request to start another workflow, but it does not work in the new environment. When I go into the workflow action and do a test run, the first time I try I get this error:

The underlying connection was closed: An unexpected error occurred on a receive.

 

Then if I run it again, I get

The remote server returned an error: (417) Expectation Failed.

 

Since it works in our 2010 environment, I am thinking it is a server config issue, but here are the details from the web request - 

URL: /_vti_bin/NintexWorkflow/Workflow.asmx

Username and password Test Connection: OK.

Web Method: StartWorkflowOnListItem

Request Message:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://nintex.com">
<soap:Header>
</soap:Header>
<soap:Body>
<m:StartWorkflowOnListItem>
<m:itemId>1</m:itemId>
<m:listName>Requirements</m:listName>
<m:workflowName>G017.3806 Requirements Reminders</m:workflowName>
<m:associationData>
</m:associationData>
</m:StartWorkflowOnListItem>
</soap:Body>
</soap:Envelope>

 

 

Did something change about the method? I don't think so. Some googling of the error, 417 Expectation failed suggests that the new IIS server is returning an http status code of 100 ExpectContinue, yet is not doing that.

HTTP Status 417: Expectation Failed 

 

I tried to put 

<configuration>

<system.net>

<settings>

            <servicePointManager expect100Continue="false" />

</settings>

</system.net>

</configuration>

 

In the web.config of each VirtualDirectory. That did nothing when I put it in the 80 VD, and threw a 500-100 error when I put it in them all.

 

Anyone know how to make Web Requests work?

Outcomes