https://bugs.winehq.org/show_bug.cgi?id=47542
Bug ID: 47542 Summary: .NET Framework NetNamedPipe with transport security throws System.ComponentModel.Win32Exception: Unknown error (0x80090304) Product: Wine Version: 4.12.1 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: failedshack@gmail.com Distribution: ---
Hello,
I use WCF on a .NET application of mine and found it crashed under Wine due to a "System.Security.Authentication.AuthenticationException", itself caused by "System.ComponentModel.Win32Exception: Unknown error (0x80090304)". WCF is commonly used to call remote procedures from different processes in the same machine or over the network.
After some investigation I found that this is caused by using a named pipe with transport security enabled (which is the default behavior for WCF). You can disable the transport security, which will make it work but such is not always possible, for example I use FiddlerCore, an HTTP proxy and it suffers from the same problem when SSL decryption is turned on. Meaning you can only intercept HTTP traffic.
I'll attach a minimal example program that can be used to reproduce this issue, along with the stacktrace produced and a screenshot.
Transport security can be disabled by replacing the default binding for this:
var binding = new NetNamedPipeBinding { Security = new NetNamedPipeSecurity { Mode = NetNamedPipeSecurityMode.None, Transport = new NamedPipeTransportSecurity() { ProtectionLevel = ProtectionLevel.None } } };
This bug looks similar to this one but the error code is different, so I'm not entirely sure: https://bugs.winehq.org/show_bug.cgi?id=46671
I hope this helps.
Regards