Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/301.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# linux上的.NET内核在运行时获得的权限被拒绝_C#_Ubuntu_.net Core - Fatal编程技术网

C# linux上的.NET内核在运行时获得的权限被拒绝

C# linux上的.NET内核在运行时获得的权限被拒绝,c#,ubuntu,.net-core,C#,Ubuntu,.net Core,我在Ubuntu18.04上创建了一个新的dotnet控制台项目,它存储在与windows和linux分区共享的hdd中,创建时我没有收到任何错误,但当我尝试运行它时,我收到以下错误消息: System.ComponentModel.Win32Exception (13): Permission denied at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] e

我在Ubuntu18.04上创建了一个新的dotnet控制台项目,它存储在与windows和linux分区共享的hdd中,创建时我没有收到任何错误,但当我尝试运行它时,我收到以下错误消息:

System.ComponentModel.Win32Exception (13): Permission denied
   at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at Microsoft.DotNet.Cli.Utils.Command.Execute()
   at Microsoft.DotNet.Tools.Run.RunCommand.Execute()
   at Microsoft.DotNet.Tools.Run.RunCommand.Run(String[] args)
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)
   at Microsoft.DotNet.Cli.Program.Main(String[] args)
但是如果我在我的Ubuntu分区中也这样做,程序运行就不会有问题


***FAT/NTFS?我认为linux权限在Windows文件系统上不起作用。您能告诉我们生成异常的路径吗?@balint这是路径/media/oscar/Storage1TB/Courses/pluralsight/Getting started with NET core on mac和linux/HellodotNetwork,文件系统类型是您的共享分区?FAT/NTFS?我认为linux权限在Windows文件系统上不起作用。您能告诉我们生成异常的路径吗?@balint这是路径/media/oscar/Storage1TB/Courses/pluralsight/Getting started with NET core on mac和linux/HelloDotNet