C# UnauthorizedAccessException:在IIS中使用管道托管.net core mvc时,对路径的访问被拒绝

C# UnauthorizedAccessException:在IIS中使用管道托管.net core mvc时,对路径的访问被拒绝,c#,asp.net-mvc,iis,pipe,C#,Asp.net Mvc,Iis,Pipe,MVC通过管道连接到控制台应用程序,它将数据发送到控制台应用程序。但是当它试图从控制台应用程序接收数据时,我得到了这个错误 UnauthorizedAccessException:对路径的访问被拒绝 我已经将web根文件夹的ISS用户的安全设置更改为完全控制,但不起作用。我们需要一个安全设置。 System.IO.Pipes.NamedPipeClientStream.TryConnect(int timeout, CancellationToken cancellationToken) Sys

MVC
通过管道连接到控制台应用程序,它将数据发送到控制台应用程序。但是当它试图从控制台应用程序接收数据时,我得到了这个错误

UnauthorizedAccessException:对路径的访问被拒绝

我已经将web根文件夹的ISS用户的安全设置更改为完全控制,但不起作用。

我们需要一个安全设置。
System.IO.Pipes.NamedPipeClientStream.TryConnect(int timeout, CancellationToken cancellationToken)
System.IO.Pipes.NamedPipeClientStream.ConnectInternal(int timeout, CancellationToken cancellationToken, int startTime)
System.IO.Pipes.NamedPipeClientStream.Connect(int timeout)
ChessFrontEnd.PipeServer.reciveData() in PipeServer.cs
ChessFrontEnd.Controllers.ChessController.HandleClick(string chess) in ChessController.cs
lambda_method18(Closure , object , object[] )
Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)