Showing results for 
Search instead for 
Do you mean 

Access to the path '..\AdminPortal\App_Data\Cache\AdminConsole\AdminPortal' is denied.

by Technical Evangelist on ‎11-12-2019 08:57 AM (76 Views)

Sometimes user could not configure Apollo portal instance @ admin console, and also folder Cache is completely missing in C:\Program Files\Common Files\Hexagon\Services\AdminInstances\AdminPortal\App_Data

 

Below are the errors from admin console log
==================================
2019-11-08 11:22:47,587 [11] ERROR ErrorHandler [(null)] - The service encountered an unhandled exception
System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Exception of type 'System.Web.HttpUnhandledException' was thrown. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ----> System.UnauthorizedAccessException: Access to the path 'C:\Program Files\Common Files\Hexagon\Services\AdminInstances\AdminPortal\App_Data\Cache\AdminConsole\AdminPortal' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at Intergraph.WebSolutions.Core.WebClient.Platform.Web.CssCompositor.SaveCss()
at Intergraph.WebSolutions.Core.WebClient.Platform.Web.CssCompositor.SetUpCss()
at Intergraph.WebSolutions.Core.WebClient.Platform.MapPage.OnPreRenderComplete(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean ...).
==================================

 

The solution is to add "AdminPortalAppPool" user roles with full control to the following folders
C:\Program Files\Common Files\Hexagon\Services\AdminInstances\AdminPortal\App_Data
C:\Program Files\Common Files\Hexagon\Services\AdminInstances\AdminPortal\App_LocalResources

Contributors