You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched issues/discussions and did not find other issues/discussions reporting this bug.
Product version
1.5.1
Describe expected behavior
SOAP message should reach endpoint
Describe actual behavior
Internal error in CoreWCF while processing SOAP request
Which binding
CustomBinding
security
None
Which .NET version
.NET 6
Which os platform
Windows
Code snippet used to reproduce the issue
CustomBindingcustomBindingSoap11=new CustomBinding(new BasicHttpBinding());varencoding= customBindingSoap11.Elements.Find<TextMessageEncodingBindingElement>();
encoding.MessageVersion = MessageVersion.Soap11WSAddressingAugust2004;
...// Add the Service
builder.AddService<SomeService>(serviceOptions =>{})// Add a BasicHttpBinding endpoint.AddServiceEndpoint<SomeService,ISomeService>(customBindingSoap11,"/someendpoint.asmx",endpoint =>{})
Stacktrace if any
fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HMVB55JE925V", Request id "0HMVB55JE925V:00000002": An unhandled exception was thrown by the application.
System.ObjectDisposedException: Message is closed.
at CoreWCF.Channels.BufferedMessage.get_Properties()
at CoreWCF.Channels.AspNetCoreReplyChannel.HandleRequest(HttpContext context)
at CoreWCF.Channels.RequestDelegateHandler.HandleRequest(HttpContext context)
at CoreWCF.Channels.ServiceModelHttpMiddleware.InvokeAsync(HttpContext context)
at CoreWCF.Channels.MetadataMiddleware.InvokeAsync(HttpContext context)
at Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserRefreshMiddleware.InvokeAsync(HttpContext context)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
The text was updated successfully, but these errors were encountered:
The message gets closed when the Message has been consumed. This can happen if you have something like a message inspector which reads the message body. If you have an extensibility code doing this, you should create a BufferedCopy first, then from the BufferedCopy, make two messages, one to replace the original, and one to work on yourself. If you don't have any extensibility doing something like this, let me know.
I have commentet out everything I can think of including serilog and any endpoint behaviours and I still get the error:
fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HMVV2MQF205B", Request id "0HMVV2MQF205B:00000002": An unhandled exception was thrown by the application.
System.ObjectDisposedException: Message is closed.
at CoreWCF.Channels.BufferedMessage.get_Properties()
at CoreWCF.Channels.AspNetCoreReplyChannel.HandleRequest(HttpContext context)
at CoreWCF.Channels.RequestDelegateHandler.HandleRequest(HttpContext context)
at CoreWCF.Channels.ServiceModelHttpMiddleware.InvokeAsync(HttpContext context)
at Microsoft.WebTools.BrowserLink.Net.BrowserLinkMiddleware.InvokeAsync(HttpContext context)
at Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserRefreshMiddleware.InvokeAsync(HttpContext context)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
Duplicate ?
Product version
1.5.1
Describe expected behavior
SOAP message should reach endpoint
Describe actual behavior
Internal error in CoreWCF while processing SOAP request
Which binding
CustomBinding
security
None
Which .NET version
.NET 6
Which os platform
Windows
Code snippet used to reproduce the issue
Stacktrace if any
The text was updated successfully, but these errors were encountered: