Access is Denied

Discussion in 'General troubleshooting' started by GMan, Mar 31, 2016.

  1. I just uploaded a out of the box ASP.Net 4.6.1 MVC 5 Project and it throws an access denied error before displaying anything.
    I uploaded it within Visual Studio using the deploy settings everything looks good not sure what is causing an access denied error. I have only changed the web.config with proper database info and set the trust level to full before uploading.

    Here is the error.

    Server Error in '/' Application.
    Access is denied
    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: Access is denied

    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): Access is denied]

    [ExternalException (0x80004005): Cannot execute a program. The command being executed was "E:\web\greggood\bin\roslyn\csc.exe" /shared /keepalive:"10" /noconfig /fullpaths @"F:\tempdir\v4.0.30319\root\0b334023\fd24e763\s33tgwty.cmdline".]
    System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +6838575
    System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +115
    System.CodeDom.Compiler.Executor.ExecWaitWithCapture(IntPtr userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName) +81
    Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.Compile(CompilerParameters options, String compilerFullPath, String arguments, String& outputFile, Int32& nativeReturnValue) +193
    Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.FromFileBatch(CompilerParameters options, String[] fileNames) +680
    Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) +186
    System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames) +24
    System.Web.Compilation.AssemblyBuilder.Compile() +948
    System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +10082369
    System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +9977420
    System.Web.Compilation.BuildManager.CompileGlobalAsax() +44
    System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +260

    [HttpException (0x80004005): Cannot execute a program. The command being executed was "E:\web\greggood\bin\roslyn\csc.exe" /shared /keepalive:"10" /noconfig /fullpaths @"F:\tempdir\v4.0.30319\root\0b334023\fd24e763\s33tgwty.cmdline".]
    System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +62
    System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +435
    System.Web.Compilation.BuildManager.CallAppInitializeMethod() +33
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +545

    [HttpException (0x80004005): Cannot execute a program. The command being executed was "E:\web\greggood\bin\roslyn\csc.exe" /shared /keepalive:"10" /noconfig /fullpaths @"F:\tempdir\v4.0.30319\root\0b334023\fd24e763\s33tgwty.cmdline".]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9946024
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261
     
  2. Michael and Elshadriel like this.
  3. Thanks for posting a follow up.
     
  4. ComputerMan

    ComputerMan Winhost Staff

Share This Page