• GoDaddy Community
  • Websites + Marketing | Website Builders
  • Websites + Marketing | Website Builders

    cancel
    Showing results for 
    Show  only  | Search instead for 
    Did you mean: 
    Go to solution
    New

    Windows Asp upload problem

    My website designer designed my site using aps format. I have windows hosting. Now Im getting this error after going to my site:

     

     

    Server Error in '/' Application.


    This program is blocked by group policy. For more information, contact your system administrator

    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: This program is blocked by group policy. For more information, contact your system administrator

    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): This program is blocked by group policy. For more information, contact your system administrator]
    
    [ExternalException (0x80004005): Cannot execute a program. The command being executed was "G:\PleskVhosts\hujjahseminary.com\httpdocs\bin\roslyn\csc.exe" /shared /keepalive:"10" /noconfig  /fullpaths @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\e5089753\3d122e33\k4bneihq.cmdline".]
       System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +7050614
       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() +950
       System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +10202521
       System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +10107476
       System.Web.Compilation.BuildManager.CompileGlobalAsax() +44
       System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +260
    
    [HttpException (0x80004005): Cannot execute a program. The command being executed was "G:\PleskVhosts\hujjahseminary.com\httpdocs\bin\roslyn\csc.exe" /shared /keepalive:"10" /noconfig  /fullpaths @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\e5089753\3d122e33\k4bneihq.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) +563
    
    [HttpException (0x80004005): Cannot execute a program. The command being executed was "G:\PleskVhosts\hujjahseminary.com\httpdocs\bin\roslyn\csc.exe" /shared /keepalive:"10" /noconfig  /fullpaths @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\e5089753\3d122e33\k4bneihq.cmdline".]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10075596
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

     

     

    Can anyone help? my website designer tried everything but still not able to fix error.

     

     

    1 REPLY 1
    Employee
    Employee
    Solution

    Re: Windows Asp upload problem

    @ma8, When publishing with web deploy, you need to precompile the site so it doesn't need to execute csc.exe.

    If you're using Web Deploy, in Visual Studio's settings you have to check the box for precompile during publishing, then click configure and uncheck allow precompiled site to be updatable. If you publish again this should fix that error.