Error 417 (The request failed with HTTP status 417: Expectation failed)

Asked by Edson Rodrigues

Hello!

Use Xibo since the first version 1.0, I always have problem to register a client when the client is on a network with a radio signal!

When I try to register I get the error: The request failed with HTTP status 417: Expectation failed.

Remembering that I do not use proxy server.

Today Clinet use 1.3.2.

Persebi researched and that this error occurs when you try to make a request in WebRequest, Web-Service, or other request between computers.

And to solve the problem use the call before carrying out the process:

System.Net.ServicePointManager.Expect100Continue = false;

How do I resolve this issue?

Thanks in advance!

Edson R

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Harrington
Solved:
Last query:
Last reply:
Revision history for this message
Best Alex Harrington (alexharrington) said :
#1

You need to add the following in to your XiboClient.exe.config file:

  <system.net>
   <settings>
    <servicePointManager expect100Continue="false" />
   </settings>
  </system.net>

Somewhere your client is going through a transparent proxy which doesn't support EXPECT in HTTP requests, which is why you get the error.

That statement needs to go right at the bottom before the </configuration> tag - so the end of the file reads like this:

<setting name="xmdsResetTimeout" serializeAs="String">
                <value>900</value>
            </setting>
        </XiboClient.Properties.Settings>
    </applicationSettings>
<startup><supportedRuntime version="v2.0.50727"/></startup>
  <system.net>
   <settings>
    <servicePointManager expect100Continue="false" />
   </settings>
  </system.net>
  </configuration>

Alex

Revision history for this message
Edson Rodrigues (edsonrodsilva) said :
#2

Thanks for the prompt response!

I'm doing the test and present the results.

Edson R.

Revision history for this message
Edson Rodrigues (edsonrodsilva) said :
#3

Success!

I did the tests in three customers who were not working!

Now the client normally connects to the server!

Perhaps it is interesting to add this code in future versions Xibo!

Thanks again!

Revision history for this message
Edson Rodrigues (edsonrodsilva) said :
#4

Thanks Alex Harrington, that solved my question.