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.
So what should I do in order to make the sample Alloy Site go live?
I got the below error message :
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: 0
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18033
Configure write access for the IIS account to the root of the site (h:\root\home\xguo22-001\www\epi.andmine.com\myepiserversite).
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
[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