AI OnAI Off
It could have to do with that Windows 8 is not tested with and therefore not supported for EPiServer Mail 5R2. Have you tried any of the supported operating systems http://world.episerver.com/Framework/Templates/Page.aspx?id=48791&epslanguage=en
I had the exact same error. As Fredrik pointed out to me earlier the "missing file" is not missing in version 5.0.343.136. Simply copying it from that location and then in to 'C:\Program Files (x86)\EPiServer\Mail\5.1.343.270\Install\Configuration' fixed the installation problems for me.
I am getting the following error when installing the EPiServer MAil 5.2 on Windows 8:
Adding/Updating assembly redirect for EPiServer.Mail.Core.Web
Adding/Updating assembly redirect for EPiServer.Mail.Sources.Internal
Adding/Updating assembly redirect for System.Web.Extensions
An unhandled error has occured:
Could not find file 'C:\Program Files (x86)\EPiServer\Mail\5.1.343.270\Install\
Configuration\web.config.modification.clearhandlers.xml'.
When executing
At C:\Program Files (x86)\EPiServer\Mail\5.1.343.270\Install\System Scripts\Ins
tall Site (No Database).ps1:297 char:20
+ Update-EPiXmlFile <<<< -TargetFilePath $webConfigFilePath -ModificationFil
ePath (Join-Path $appWebConfigSourcePath 'web.config.modification.clearhandlers
.xml')
An unhandled error has occured:
Could not find file 'C:\Program Files (x86)\EPiServer\Mail\5.1.343.270\Install\
Configuration\web.config.modification.clearhandlers.xml'.
When executing
At C:\Program Files (x86)\EPiServer\Mail\5.1.343.270\Install\System Scripts\Ins
tall Site (No Database).ps1:297 char:20
+ Update-EPiXmlFile <<<< -TargetFilePath $webConfigFilePath -ModificationFil
ePath (Join-Path $appWebConfigSourcePath 'web.config.modification.clearhandlers
.xml')
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()