none
SCCM 2012 App Catalog Web Page Error

    Question

  • I am receiving the error below when trying to access the App Catalog web page from the SCCM server. I get page cannot be displayed when trying to reach it from a client.

    Initially I received an error saying "Cannot Connect to the Application Server." After removing and adding back the roles App Catalog Service and Site roles along with running aspnet_regiis.exe /iru command and resetting IIS I started receiving the error below. 

    Server Error in '/CMApplicationCatalog' Application.

    Compilation Error

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\cmapplicationcatalog\9b2c0a2b\f64f257e\App_global.asax.v_b27rj1.dll' -- 'Access is denied. '

    Source Error:
    [No relevant source lines]

    Source File: Line: 0
    Show Detailed Compiler Output:
    c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\cmapplicationcatalog\9b2c0a2b\f64f257e\assembly\dl3\cc4e6b0b\00a88a06_aeefcc01\Microsoft.ConfigurationManager.SoftwareCatalog.Website.WebControls.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\cmapplicationcatalog\9b2c0a2b\f64f257e\assembly\dl3\e7d7f515\00a88a06_aeefcc01\Microsoft.ConfigurationManager.SoftwareCatalog.Website.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\cmapplicationcatalog\9b2c0a2b\f64f257e\assembly\dl3\ef4ae8f0\00a88a06_aeefcc01\Microsoft.ConfigurationManager.SoftwareCatalog.Common.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\cmapplicationcatalog\9b2c0a2b\f64f257e\assembly\dl3\d32eb5b7\00a88a06_aeefcc01\AdminUI.SmsTraceListener.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\cmapplicationcatalog\9b2c0a2b\f64f257e\assembly\dl3\c6159461\00a88a06_aeefcc01\Microsoft.ConfigurationManager.SoftwareCatalog.Website.PortalClasses.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\cmapplicationcatalog\9b2c0a2b\f64f257e\assembly\dl3\8825a52f\00a88a06_aeefcc01\DeviceManagementPortal.DeviceClasses.dll" /out:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\cmapplicationcatalog\9b2c0a2b\f64f257e\App_global.asax.v_b27rj1.dll" /debug- /optimize+ /w:4 /nowarn:1659;1699;1701 /warnaserror-  "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\cmapplicationcatalog\9b2c0a2b\f64f257e\App_global.asax.v_b27rj1.0.cs" "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\cmapplicationcatalog\9b2c0a2b\f64f257e\App_global.asax.v_b27rj1.1.cs"
    
    
    Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
    Copyright (C) Microsoft Corporation. All rights reserved.
    
    error CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\cmapplicationcatalog\9b2c0a2b\f64f257e\App_global.asax.v_b27rj1.dll' -- 'Access is denied. '
    



    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 
    <!-- [HttpCompileException]: (0): error CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\cmapplicationcatalog\9b2c0a2b\f64f257e\App_global.asax.v_b27rj1.dll' -- 'Access is denied. ' at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) at System.Web.Compilation.BuildManager.CompileGlobalAsax() at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) [HttpException]: (0): error CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\cmapplicationcatalog\9b2c0a2b\f64f257e\App_global.asax.v_b27rj1.dll' -- 'Access is denied. ' at System.Web.HttpRuntime.FirstRequestInit(HttpContext context) at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) -->

    Friday, June 29, 2012 6:13 PM

Answers

  • I believe you may see this error message from the ASP.NET if the SYSTEM account does not have enough permissions to write to the C:\Windows\Temp folder or subfolders (the path indicated in this ASP.NET error may be different from the actual folder with denied access).
    Could you check the read/write permissions on C:\Windows\Temp ?
    You can also try explicitly adding Local Service account permissions in addition to the SYSTEM account.


    Friday, June 29, 2012 6:36 PM

All replies

  • I believe you may see this error message from the ASP.NET if the SYSTEM account does not have enough permissions to write to the C:\Windows\Temp folder or subfolders (the path indicated in this ASP.NET error may be different from the actual folder with denied access).
    Could you check the read/write permissions on C:\Windows\Temp ?
    You can also try explicitly adding Local Service account permissions in addition to the SYSTEM account.


    Friday, June 29, 2012 6:36 PM
  • Explicitly adding local service on that folder did it. System was already there.

    Thanks!

    Friday, June 29, 2012 6:41 PM