Altiris Console does not load, Exception message: (0): error CS0016
Temporary ASP.NET Files 'The directory name is invalid' message is displayed in the console.
One of the errors in the Windows Event log:
Event code: 3007
Event message: A compilation error has occurred.
Application information:
Application domain: /LM/W3SVC/1/ROOT/Altiris/Console-15-130887345184697705
Trust level: Full
Application Virtual Path: /Altiris/Console
Application Path: D:\Applications\Altiris\CustomConsole\Web\
Machine name: SMPSERVER
Process information:
Process ID: 7440
Process name: w3wp.exe
Account name: IIS APPPOOL\SMP Server AppPool
Exception information:
Exception type: HttpCompileException
Exception message: (0): error CS0016: Could not write to output file 'c:\windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\altiris_console\164c5ce7\9b525a83\App_global.asax.6qas1utd.dll' -- 'The directory name is invalid. '
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)
csc.exe does not have permissions to the C:\temp folder or other mapped folder in the TEMP system variable.
Give the IIS_IUSRS local computer group on the SMP permissions to the C:\Temp directory.
You need to edit the special permission on the C:\Temp folder for that.
See attached screenshot as example.
You can also add the delete subfolders and files special permission to the IIS_IUSRS group to make sure no junk is left behind.