C# IIS Express:System.ComponentModel.Win32异常:访问被拒绝

C# IIS Express:System.ComponentModel.Win32异常:访问被拒绝,c#,asp.net-mvc,visual-studio,iis-express,C#,Asp.net Mvc,Visual Studio,Iis Express,我刚刚从VS 2015升级到VS 2019。我创建了一个标准MVC项目,执行后,这个错误出现在标准500错误页面中的“System.ComponentModel.Win32Exception:访问被拒绝” 我没有更改标准项目的默认microsoft代码中的任何内容。 试图以管理员身份执行VS,但没有任何更改 我知道有很多人都有这个问题,但他们都在谈论生产中的问题,当我在Visual Studio的调试中启动应用程序时,这种情况就会发生 VS和IIS Express的进程由具有管理员权限的用户拥有

我刚刚从VS 2015升级到VS 2019。我创建了一个标准MVC项目,执行后,这个错误出现在标准500错误页面中的“System.ComponentModel.Win32Exception:访问被拒绝”

我没有更改标准项目的默认microsoft代码中的任何内容。 试图以管理员身份执行VS,但没有任何更改

我知道有很多人都有这个问题,但他们都在谈论生产中的问题,当我在Visual Studio的调试中启动应用程序时,这种情况就会发生

VS和IIS Express的进程由具有管理员权限的用户拥有

提前谢谢你的帮助

完全错误:(“Accesso negato”是意大利语,表示“拒绝访问”)


您必须显示完整的错误消息。我添加了完整的错误消息
Server Error in '/' Application.
Accesso negato
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ComponentModel.Win32Exception: Accesso negato

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[Win32Exception (0x80004005): Accesso negato]

[ExternalException (0x80004005): Cannot execute a program. The command being executed was "D:\Documenti\LavoriProgetti\MABE23\Grafoplast\Siglature\Siglature\bin\roslyn\csc.exe" /shared /keepalive:"900" /noconfig  /fullpaths @"C:\Users\Discount Elettronica\AppData\Local\Temp\Temporary ASP.NET Files\vs\48e6051c\3d3b0e0b\xcsytsyz.cmdline".]
   System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +7083507
   System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +118
   System.CodeDom.Compiler.Executor.ExecWaitWithCapture(IntPtr userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName) +85
   Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.Compile(CompilerParameters options, String compilerFullPath, String arguments, String& outputFile, Int32& nativeReturnValue) +274
   Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.FromFileBatch(CompilerParameters options, String[] fileNames) +682
   Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) +186
   System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames) +25
   System.Web.Compilation.AssemblyBuilder.Compile() +985
   System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +10223794
   System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +10113866
   System.Web.Compilation.BuildManager.CompileGlobalAsax() +47
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +274

[HttpException (0x80004005): Cannot execute a program. The command being executed was "D:\Documenti\LavoriProgetti\MABE23\Grafoplast\Siglature\Siglature\bin\roslyn\csc.exe" /shared /keepalive:"900" /noconfig  /fullpaths @"C:\Users\Discount Elettronica\AppData\Local\Temp\Temporary ASP.NET Files\vs\48e6051c\3d3b0e0b\xcsytsyz.cmdline".]
   System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +65
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +458
   System.Web.Compilation.BuildManager.CallAppInitializeMethod() +35
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +605

[HttpException (0x80004005): Cannot execute a program. The command being executed was "D:\Documenti\LavoriProgetti\MABE23\Grafoplast\Siglature\Siglature\bin\roslyn\csc.exe" /shared /keepalive:"900" /noconfig  /fullpaths @"C:\Users\Discount Elettronica\AppData\Local\Temp\Temporary ASP.NET Files\vs\48e6051c\3d3b0e0b\xcsytsyz.cmdline".]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10080656
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +99
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +263