Error: System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\SWCM\App_Data\vs_2ec9fcdd-8f0f-43b1-8eab-a67df89aa405_UserLogin' is denied.

Document ID : KB000053423
Last Modified Date : 14/02/2018
Show Technical Document Details


The following error is received when trying to access localhost\swcm or <servername>\swcm Error:System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\SWCM\App_Data\vs_2ec9fcdd-8f0f-43b1- 8eab-a67df89aa405_UserLogin' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamWriter.CreateFile(String path, Boolean append) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) at System.IO.StreamWriter..ctor(String path) at CA.Common.Caching.FilePageStatePersister.Save_AT_RR_WRAPPED() at CA.Common.Caching.FilePageStatePersister.Save() at System.Web.UI.Page.SavePageStateToPersistenceMedium(Object state) at System.Web.UI.Page.SaveAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint))


This error is caused by IIS running in IIS 5 Isolation Mode.
To correct this behavior, change the web sites to run in Worker Process Isolation mode On the web server.

  1. Open Internet Information Services
  2. Expand the local computer node
  3. Right Click on Web Sites
  4. Select Properties
  5. On the Properties page, select the Service tab
  6. Uncheck "Run WWW service in IIS 5.0 isolation mode".
  7. Click OK