EPiServer Mail 5 R2 Installation problem

Posted on June 2, 2011 by Frederik Vig in EPiServer

When trying to install EPiServer Mail 5 R2 on an existing site I came across this bug: #65398.

At C:\Program Files (x86)\EPiServer\Mail\5.1.343.270\Install\System Scripts\Install Site (No Database).ps1:297 char:20
+         Update-EPiXmlFile <<<<  -TargetFilePath $webConfigFilePath -ModificationFilePath (Join-Path $appWebConfigSourcePath 'web.config.modification.clearhandlers.xml')    
System.IO.FileNotFoundException: Could not find file 'C:\Program Files (x86)\EPiServer\Mail\5.1.343.270\Install\Configuration\web.config.modification.clearhandlers.xml'.
File name: 'C:\Program Files (x86)\EPiServer\Mail\5.1.343.270\Install\Configuration\web.config.modification.clearhandlers.xml'
   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)
   at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
   at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
   at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
   at System.Threading.CompressedStack.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
   at System.Xml.XmlTextReaderImpl.OpenUrl()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.Load(String filename)
   at EPiServer.Install.Xml.Installers.UpdateXmlInstaller.SetUpSubInstallers()
   at EPiServer.Install.Xml.Installers.UpdateXmlInstaller..ctor(InstallationManager installationManager, String targetFilePath, String modificationsFilePath, Dictionary`2 namespaces, Dictionary`2 replaces, Boolean autoAddNamespaces)
   at EPiServer.Install.Xml.XmlInstallationManager.UpdateXml(String targetFilePath, String modificationFilePath, Dictionary`2 namespaces, Dictionary`2 replaces, Boolean autoAddNamespaces)
   at EPiServer.Install.Xml.Cmdlets.UpdateConfigCmdlet.ProcessRecord()
   at System.Management.Automation.Cmdlet.DoProcessRecord()
   at System.Management.Automation.CommandProcessor.ProcessRecord()

The fix turned out to be quite simple. Comment out the <clear /> element under the <handlers> section of the sites web.config before the installation (uncomment after). This solved it for me and the installation completed without any troubles.

Big thanks to EPiServer Support for helping me with this problem.

Related Posts: