-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception 'The server returned an invalid or unrecognized response.' when netcoreapp2.1 and System.ServiceModel.* > 4.4.4 #3008
Comments
I reopened this issue as it also seems to be related to these 4 dependencies:
Downgrading all of them back to 4.4.4 solves the issue. |
It seems to be similar issue to: #2960 |
@wiktor-golonka, do you know which server stack you are communication with? Without a valid client certificate, I'm unable to get any headers from the service to see what service stack is being used. The main change we made between 4.4.4 and 4.5.0 is adding the |
@mconnew: My post request:
and the response that I'm receiving:
Fiddler session state:
|
Did using Fiddler cause the request to work? The fiddler session state says the response was buffered before delivery to the client which means that Fiddler would handle any optional headers returned with the 100 continue response. In that situation, HttpClientHandler wouldn't be presented with the extra headers and the request would be successful. |
@mconnew: Thank you. |
Can confirm the issue. Our WCF service (client certificates authentication) stopped working after upgrade. Downgrading to 4.4 resolved the issue. Will the switch |
@maxiptah |
@wiktor-golonka and @maxiptah, if you update to the latest version of .NET Core, this problem should now be fixed. Can you please verify that you aren't seeing this problem any longer? |
Hi,
We started getting this exception since we changed target framework from netcoreapp2.0 netcoreapp2.1.
Swapping it back to netcoreapp2.0 solves this issue.
The exception is thrown immediately on the first submitted request.
It seems to be related to dependencies:
Changing these all back to version 4.4.4 also solves this issue.
So currently we know two ways of solving this:
a) downgrade these 4 dependencies to version 4.4.4
or
b) downgrade target framework from netcoreapp2.1 to netcoreapp2.0
WSDL file is available here:
https://service.bloomberg.com/assets/dl/dlws.wsdl
I'm not sure how helpful it will be as it may require authentication key/certificate which unfortunately I can't provide.
Our code looks like that:
Channel creating:
Exception is thrown here:
where
submitGetDataRequestAsync
isException:
Inner exception:
PackageReference:
The text was updated successfully, but these errors were encountered: