2015-11-24 17:23:16.4619 | 1 | I | Unable to exchange sso ticket for token.
System.Net.Http.HttpRequestException: Response status code does not indicate success: 417 (Expectation failed).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Garmin.Omt.Express.UI.Sso.ConnectTicketExchanger.<ExchangeTicketAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Garmin.Omt.Express.UI.Sso.SsoWidgetViewModel.<OnNavigatingAsync>d__0.MoveNext() at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Garmin.Omt.Express.UI.Sso.ConnectTicketExchanger.<ExchangeTicketAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Garmin.Omt.Express.UI.Sso.SsoWidgetViewModel.<OnNavigatingAsync>d__0.MoveNext()
I solved it by adding this section to the express app.config file.
<system.net>
<settings>
<servicePointManager expect100Continue="false" />
</settings>
</system.net>
Stack Overflow post with more detail: http://stackoverflow.com/questions/566437/http-post-returns-the-error-417-expectation-failed-c