我刚刚在两台独立的 Windows 8 机器上将 Web Platform Installer 升级到了 4.5 版。(一台是物理机,另一台是VM)。我无法运行 WPI 4.5,两者都显示以下相同的错误:
解析 EntityName 时出错。第 42134 行,第 81 位。
更新: 确认这是 Microsoft 的产品列表错误。找到这个日志文件条目:
DownloadManager Information: 0 : Loading product xml from: https://go.microsoft.com/?linkid=9817844
DownloadManager Information: 0 : https://go.microsoft.com/?linkid=9817844 responded with 302
DownloadManager Information: 0 : Response headers:
HTTP/1.1 302 Found
Cache-Control: private
Content-Length: 175
Content-Type: text/html; charset=utf-8
Expires: Tue, 19 Feb 2013 18:23:59 GMT
Location: https://www.microsoft.com/web/webpi/4.5/webproductlist.xml
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Tue, 19 Feb 2013 18:24:59 GMT
DownloadManager Error: 0 : Error loading downloaded product file: 'System.Xml.XmlException: An error occurred while parsing EntityName. Line 42134, position 81.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseEntityName()
at System.Xml.XmlTextReaderImpl.ParseEntityReference()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Web.PlatformInstaller.LineInfoDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(TextReader txtReader)
at Microsoft.Web.PlatformInstaller.ProductManager.LoadDocument(String xmlPath)
at Microsoft.Web.PlatformInstaller.ProductManager.LoadFromXml(String xmlFile, Boolean loadEnclosures)
at Microsoft.Web.PlatformInstaller.ProductManager.Load(Uri productFileUrl, Boolean filterByArchitectureAndOS, Boolean loadEnclosures, Boolean useCachedVersion, String cacheDirectory, Architecture architecture, Int32 majorOS, Int32 minorOS, Int32 majorSP, Int32 minorSP, Int32 osType)'