所以每次我尝试安装Xamarin时,都会收到此错误消息。真的不知道发生了什么,任何帮助都会很棒。我在Windows 7 Enterprise上安装它,我使用的是Visual Studio 2012 Professional。
从日志文件中得到这个:
Error downloading from Xamarin server. Xamarin.
The remote name could not be resolved: 'visualstudiogallery.msdn.microsoft.com'
Exception type: System.Net.WebException
Full stack trace:
at System.Net.HttpWebRequest.GetResponse()
at Xamarin.Components.Ide.Web.RequestHelper.GetResponse(Func`1 createRequest, Action`1 prepareRequest)
at Xamarin.Web.Installer.Utilities.DownloadUrl(String url, Action`4 doDownload, Func`3 webExceptionHandler, Boolean noCache, Object state, Int32 timeout, Stream outputStream, String targetFileName)
at Xamarin.Web.Installer.DownloadService.DownloadItem(DownloadServiceWorkItem item, Boolean firstDownload)
Error downloading from Xamarin server. Microsoft® MSBuild Tools 2015.
The remote name could not be resolved: 'download.microsoft.com'
Exception type: System.Net.WebException
Full stack trace:
at System.Net.HttpWebRequest.GetResponse()
at Xamarin.Components.Ide.Web.RequestHelper.GetResponse(Func`1 createRequest, Action`1 prepareRequest)
at Xamarin.Web.Installer.Utilities.DownloadUrl(String url, Action`4 doDownload, Func`3 webExceptionHandler, Boolean noCache, Object state, Int32 timeout, Stream outputStream, String targetFileName)
at Xamarin.Web.Installer.DownloadService.DownloadItem(DownloadServiceWorkItem item, Boolean firstDownload)
Error downloading from Xamarin server. Xamarin.
The remote name could not be resolved: 'visualstudiogallery.msdn.microsoft.com'
Exception type: System.Net.WebException
Full stack trace:
at System.Net.HttpWebRequest.GetResponse()
at Xamarin.Components.Ide.Web.RequestHelper.GetResponse(Func`1 createRequest, Action`1 prepareRequest)
at Xamarin.Web.Installer.Utilities.DownloadUrl(String url, Action`4 doDownload, Func`3 webExceptionHandler, Boolean noCache, Object state, Int32 timeout, Stream outputStream, String targetFileName)
at Xamarin.Web.Installer.DownloadService.DownloadItem(DownloadServiceWorkItem item, Boolean firstDownload)
Error downloading from Xamarin server. Xamarin.
The remote name could not be resolved: 'visualstudiogallery.msdn.microsoft.com'
Exception type: System.Net.WebException
Full stack trace:
at System.Net.HttpWebRequest.GetResponse()
at Xamarin.Components.Ide.Web.RequestHelper.GetResponse(Func`1 createRequest, Action`1 prepareRequest)
at Xamarin.Web.Installer.Utilities.DownloadUrl(String url, Action`4 doDownload, Func`3 webExceptionHandler, Boolean noCache, Object state, Int32 timeout, Stream outputStream, String targetFileName)
at Xamarin.Web.Installer.DownloadService.DownloadItem(DownloadServiceWorkItem item, Boolean firstDownload)
Installation of 'Xamarin' failed with more than one exception (attempt 3)
Errors while installing items.
Exception type: System.AggregateException
Download failed.
Exception type: Xamarin.Web.Installer.InstallException
Full stack trace:
at Xamarin.Web.Installer.Installer.BaseSoftwareItem.ValidateDownloadItem()
at Xamarin.Web.Installer.Installer.BaseSoftwareItem.Install(UInt32 tryNumber)
at Xamarin.Web.Installer.Installer.XamarinVSSoftwareItem.Install(UInt32 tryNumber)
at WindowsInstaller.ProgressPage.InstallationWorker()
Download failed.
Exception type: Xamarin.Web.Installer.InstallException
Full stack trace:
at Xamarin.Web.Installer.Installer.BaseSoftwareItem.ValidateDownloadItem()
at Xamarin.Web.Installer.Installer.BaseSoftwareItem.Install(UInt32 tryNumber)
at Xamarin.Web.Installer.Installer.XamarinVSSoftwareItem.Install(UInt32 tryNumber)
at WindowsInstaller.ProgressPage.InstallationWorker()
Download failed.
Exception type: Xamarin.Web.Installer.InstallException
Full stack trace:
at Xamarin.Web.Installer.Installer.BaseSoftwareItem.ValidateDownloadItem()
at Xamarin.Web.Installer.Installer.BaseSoftwareItem.Install(UInt32 tryNumber)
at Xamarin.Web.Installer.Installer.XamarinVSSoftwareItem.Install(UInt32 tryNumber)
at WindowsInstaller.ProgressPage.InstallationWorker()
答案 0 :(得分:0)
这样的安装问题最好由我们直接处理(Xamarin支持),而不是在此处发布 - StackOverflow主要用于编程/代码问题。
我们通常建议尝试手动安装(单独安装每个包)。
请务必注意,Visual Studio 2012支持需要旧版Xamarin Business / Enterprise许可证或新的Visual Studio / MSDN许可证之一。
Xamarin的社区版可以与任何非Express版本的Visual Studio 2013或任何版本的Visual Studio 2015一起使用。
请联系contact@xamarin.com获取相关帮助(请在电子邮件中添加此问题的链接),我们可以向您发送手动安装下载链接。