-
Notifications
You must be signed in to change notification settings - Fork 292
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
[Bug]: In a simple setup with co-hosted controllers: System.ObjectDisposedException: Message is closed. #1356
Comments
This is something related to the SOAP message processing/validation.
as soon as I change the message to
it gets processed successfully. |
I'm running into this as well with Onvif messages:
CoreWCF fails with:
I'm using the sample app from this repo with WsHttpBinding (needed for Soap 1.2) and Onvif generated from WSDL using svcutil.exe -sc. |
So in my case, it turned out I was using incorrect binding:
I fixed it by using the following which also works on the client side:
|
Duplicate ?
Product version
1.5.2
Describe expected behavior
CoreWCF services function properly.
Describe actual behavior
Receiving an exception
System.ObjectDisposedException: Message is closed.
with the following stack trace
Absolutely no special middleware/interceptor that can read the message has been registered.
My setup:
Which binding
WsHttp
security
None
Which .NET version
.NET 7
Which os platform
Windows
Code snippet used to reproduce the issue
No response
Stacktrace if any
The text was updated successfully, but these errors were encountered: