[6.0.441.2] BUG: New site fails to start if AppPool does not have read write access.

Vote:
 

 


[UnauthorizedAccessException: Access to the path 'D:\Websites\xxx\wwwroot-uat\f2sd6agl.newcfg' is denied.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7716623
   System.IO.File.SetAttributes(String path, FileAttributes fileAttributes) +161
   System.Configuration.Internal.WriteFileContext.DuplicateFileAttributes(String source, String destination) +39
   System.Configuration.Internal.WriteFileContext.Complete(String filename, Boolean success) +61
   System.Configuration.Internal.InternalConfigHost.StaticWriteCompleted(String streamName, Boolean success, Object writeContext, Boolean assertPermissions) +229
   System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.WriteCompleted(String streamName, Boolean success, Object writeContext, Boolean assertPermissions) +21
   System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.WriteCompleted(String streamName, Boolean success, Object writeContext) +18
   System.Configuration.Internal.DelegatingConfigHost.WriteCompleted(String streamName, Boolean success, Object writeContext) +22
   System.Configuration.UpdateConfigHost.WriteCompleted(String streamName, Boolean success, Object writeContext) +76
   System.Configuration.MgmtConfigurationRecord.SaveConfigSource(DefinitionUpdate update) +779
   System.Configuration.MgmtConfigurationRecord.SaveAs(String filename, ConfigurationSaveMode saveMode, Boolean forceUpdateAll) +1940
   System.Configuration.Configuration.SaveAsImpl(String filename, ConfigurationSaveMode saveMode, Boolean forceSaveAll) +92
   System.Configuration.Configuration.Save(ConfigurationSaveMode saveMode) +9
   EPiServer.Framework.Configuration.GlobalConfigurationManager.Save(Configuration configuration, RestartMode restartMode) +17
   EPiServer.Framework.Initialization.SiteMappingConfiguration.SaveSiteIdInConfig(String siteId) +173
   EPiServer.Framework.Initialization.SiteMappingConfiguration.Initialize(InitializationEngine context) +156
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +330
   EPiServer.Framework.Initialization.InitializationEngine.Initialize(HostType hostType) +82
   EPiServer.Framework.Initialization.InitializationModule.StaticInitialization(HostType hostType) +154
   EPiServer.Framework.Initialization.InitializationModule.Application_BeginRequest(Object sender, EventArgs e) +372
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

 

#37184
Feb 23, 2010 13:52
Vote:
 

I am guessing you get this error message the first time you start up a site that either has been moved or upgraded and has limited write access to the root directory (config files). To support early initialization (instead of waiting for the first request as in CMS 5) we write which site this IIS instance is mapping to upon the first request and then restarts the site.

We have improved the error message in the release but the restriction is still there.

 

 

#37213
Feb 24, 2010 14:04
Vote:
 

So what should I do in order to make the sample Alloy Site go live? 

I got the below error message : 

Server Error in '/' Application.


Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: An error occurred loading a configuration file: Access to the path 'h:\root\home\xguo22-001\www\epi.andmine.com\myepiserversite\iqxqcoch.tmp' is denied.

Source Error: 

[No relevant source lines]


Source File: h:\root\home\xguo22-001\www\epi.andmine.com\myepiserversite\EPiServerFramework.config    Line: 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18033

#70310
Apr 17, 2013 7:43
Vote:
 

Configure write access for the IIS account to the root of the site (h:\root\home\xguo22-001\www\epi.andmine.com\myepiserversite).

#70313
Apr 17, 2013 8:25
Vote:
 

Hi Bjurstrom,

 

Good to see your reply. 

Yes that is what it shows here. Can you give me some more hints? 

Can you have a look at my post : http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=70275

Thanks,

Ben

#70315
Apr 17, 2013 9:25
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.