Asp.net 核心 2.0 错误 -13 EACCES 权限被拒绝
Asp.net core 2.0 Error -13 EACCES permission denied
我有 asp.net 核心 2.0 应用程序 运行 它在 vs for mac 下,
当我 运行 它从 CLI 运行时没有任何问题,
但是当我从 VS 运行 它时,我收到这个错误:
"Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.UvException Error -13 EACCES permission denied
但是在 运行 CLI 中的这个命令之后
dotnet add package Microsoft.AspNetCore.Server.Kestrel
the Error became System.Net.Sockets.SocketException "Permission denied"
public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();//Error occur here
}
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseKestrel()
.UseIISIntegration()
.UseStartup<Startup>()
.Build();
}
我该如何解决这个问题?
thank you
the problem solved
the problem was I should run VS for mac as admin by this command on
terminal
sudo /Applications/Visual\ Studio.app
我有 asp.net 核心 2.0 应用程序 运行 它在 vs for mac 下, 当我 运行 它从 CLI 运行时没有任何问题, 但是当我从 VS 运行 它时,我收到这个错误:
"Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.UvException Error -13 EACCES permission denied
但是在 运行 CLI 中的这个命令之后
dotnet add package Microsoft.AspNetCore.Server.Kestrel
the Error became System.Net.Sockets.SocketException "Permission denied"
public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();//Error occur here
}
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseKestrel()
.UseIISIntegration()
.UseStartup<Startup>()
.Build();
}
我该如何解决这个问题?
thank you
the problem solved
the problem was I should run VS for mac as admin by this command on terminal
sudo /Applications/Visual\ Studio.app