I'm trying to receive and send messages with another process using NamedPipeServerStream. The platform I am developing on is UWP (Microsoft.NETCore.UniversalWindowsPlatform version 6.2.11).
My first attempt is the following:
using (NamedPipeServerStream pipe = new NamedPipeServerStream(
"DynamicCabPipe",
PipeDirection.InOut,
10,
PipeTransmissionMode.Byte,
PipeOptions.Asynchronous,
32,
32)) {...}
Which results in
System.UnauthorizedAccessException: 'Access to the path is denied'
After some research I found this solution: How to set PipeSecurity of NamedPipeServerStream in .NET Core
var pipeSecurity = new PipeSecurity();
pipeSecurity.AddAccessRule(new PipeAccessRule("Users", PipeAccessRights.ReadWrite, AccessControlType.Allow));
using (NamedPipeServerStream pipe = NamedPipeServerStreamConstructors.New(
"DynamicCabPipe",
PipeDirection.InOut,
10,
PipeTransmissionMode.Byte,
PipeOptions.Asynchronous,
32,
32, pipeSecurity)) { ... }
Which results in
System.Resources.MissingManifestResourceException: 'Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "System.Core.resources" was correctly embedded or linked into assembly "NamedPipeServerStream.NetFrameworkVersion" at compile time, or that all the satellite assemblies required are loadable and fully signed.'
Now I'm stuck. Suggestions?