Unable to install Xamarin on Windows (403 error)

I have installed Xamarin dozens of times, but most recently I ran into this issue:

[2017-01-12 09:50:30.836] [Debug] Setting registry key 'SOFTWARE\Xamarin\AnalyticsAsked' to '1'
[2017-01-12 09:50:30.836] [Debug] Setting registry key 'SOFTWARE\Xamarin\AnalyticsConsent' to '0'
[2017-01-12 09:50:30.836] [Info] Installation ID: c6b184d3-4d45-4b7b-b68c-bbfc1624ae0d
[2017-01-12 09:50:30.836] [Info] Operating system: Windows 7 v6.1.7601 (Windows 10 Pro (Service Pack 1); Microsoft Windows 7 v6.1.7601 (Windows 10 Pro; Service Pack 1; 64-bit)), 64-bit
[2017-01-12 09:50:30.836] [Info] Installer product: Xamarin
[2017-01-12 09:50:30.836] [Info] Installer version: 3.5.1.0 cycle9-stable (f305b2c741063197bc1e9163280fd56986be02da on 16/11/2016 16:12:41)
[2017-01-12 09:50:30.837] [Info] Status: in progress
[2017-01-12 09:50:30.837] [Debug] My location: C:\ProgramData\Package Cache\5B43E9D76FEDB584857486965FA8B3A7E624200B\WindowsInstaller.exe
[2017-01-12 09:50:31.137] [Debug] Setting registry key 'SOFTWARE\Xamarin\AnalyticsAsked' to '1'
[2017-01-12 09:50:31.137] [Debug] Setting registry key 'SOFTWARE\Xamarin\AnalyticsConsent' to '0'
[2017-01-12 09:50:31.237] [Info] Retrieving installation manifest.
[2017-01-12 09:50:31.237] [Info] Downloading from 'https://www.xamarin.com/installer_assets/v3/f305b2c741063197bc1e9163280fd56986be02da/Windows/Universal/InstallationManifest.xml'.
[2017-01-12 09:50:31.237] [Debug] Setting download timeout for 'https://www.xamarin.com/installer_assets/v3/f305b2c741063197bc1e9163280fd56986be02da/Windows/Universal/InstallationManifest.xml' to 60s
[2017-01-12 09:50:33.337] [Info] Downloading from 'https://www.xamarin.com/installer_assets/v3/Windows/Universal/InstallationManifest.xml'.
[2017-01-12 09:50:33.337] [Debug] Setting download timeout for 'https://www.xamarin.com/installer_assets/v3/Windows/Universal/InstallationManifest.xml' to 60s
[2017-01-12 09:50:34.637] [Info] Retrieving installation size manifest.
[2017-01-12 09:50:34.637] [Info] Downloading from 'https://www.xamarin.com/installer_assets/v3/Windows/Universal/InstallationSizes.xml'.
[2017-01-12 09:50:34.637] [Debug] Setting download timeout for 'https://www.xamarin.com/installer_assets/v3/Windows/Universal/InstallationSizes.xml' to 60s
[2017-01-12 09:50:36.238] [Exception] Failed to retrieve response for URL 'https://www.xamarin.com/installer_assets/v3/Windows/Universal/InstallationSizes.xml'
[2017-01-12 09:50:36.238] [Exception] System.Net.WebException: 遠端伺服器傳回一個錯誤: (403) 禁止。
[2017-01-12 09:50:36.238] [Exception] 於 System.Net.HttpWebRequest.GetResponse()
[2017-01-12 09:50:36.238] [Exception] 於 Xamarin.Components.Ide.Web.RequestHelper.GetResponse(Func`1 createRequest, Action`1 prepareRequest)
[2017-01-12 09:50:36.238] [Exception] 於 Xamarin.Web.Installer.Utilities.DownloadUrl(String url, Action`4 doDownload, Func`3 webExceptionHandler, Boolean noCache, Object state, Int32 timeout, Stream outputStream, String targetFileName)
[2017-01-12 09:50:36.239] [Exception] Failed to download resource from 'https://www.xamarin.com/installer_assets/v3/Windows/Universal/InstallationSizes.xml'
[2017-01-12 09:50:36.239] [Exception] System.Net.WebException: 遠端伺服器傳回一個錯誤: (403) 禁止。
[2017-01-12 09:50:36.239] [Exception] 於 System.Net.HttpWebRequest.GetResponse()
[2017-01-12 09:50:36.239] [Exception] 於 Xamarin.Components.Ide.Web.RequestHelper.GetResponse(Func`1 createRequest, Action`1 prepareRequest)
[2017-01-12 09:50:36.239] [Exception] 於 Xamarin.Web.Installer.Utilities.DownloadUrl(String url, Action`4 doDownload, Func`3 webExceptionHandler, Boolean noCache, Object state, Int32 timeout, Stream outputStream, String targetFileName)
[2017-01-12 09:50:36.239] [Exception] 於 Xamarin.Web.Installer.Utilities.GetManifest(String description, String resourceName, String resourceRelativeUrl, Boolean throwOnMissing, Boolean fineIfMissing, Boolean fallbackToEmbedded)
[2017-01-12 09:50:36.339] [Info] Determining list of software items to install.
[2017-01-12 09:50:36.339] [Debug] Processing update nodes from the manifest.
[2017-01-12 09:50:36.339] [Debug] Creating and initializing software item 'Java JDK'
[2017-01-12 09:50:36.439] [Debug] Creating and initializing software item 'Android SDK'
[2017-01-12 09:50:36.539] [Debug] Creating and initializing software item 'Microsoft® MSBuild Tools 2015'
[2017-01-12 09:50:36.539] [Debug] Creating and initializing software item 'Xamarin'
[2017-01-12 09:50:36.539] [Debug] Creating and initializing software item 'Intel® HAXM'
[2017-01-12 09:50:36.540] [Debug] Creating and initializing software item 'Xamarin Profiler'
[2017-01-12 09:50:36.540] [Debug] Creating and initializing software item 'Xamarin Workbooks & Inspector'
[2017-01-12 09:50:36.540] [Debug] Creating and initializing software item 'Remoted iOS Simulator'
[2017-01-12 09:50:36.540] [Debug] Detecting software item 'Java JDK'
[2017-01-12 09:50:36.540] [Info] Checking whether JDK needs to be installed.
[2017-01-12 09:50:36.541] [Debug] Attempting to read registry subkey 'SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit', value 'CurrentVersion'
[2017-01-12 09:50:36.541] [Debug] Attempting to read registry subkey 'SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit\1.8', value 'JavaHome'
[2017-01-12 09:50:36.541] [Debug] Attempting to read registry subkey 'SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit\1.8', value 'JavaHome'
[2017-01-12 09:50:36.541] [Info] Required JDK already installed alongside incompatible version 1.8
[2017-01-12 09:50:36.541] [Info] Status: successful
[2017-01-12 09:50:36.542] [Info] Component 'Java JDK' v. 1.8.0 present
[2017-01-12 09:50:36.542] [Info] Software item 'Java JDK': up to date
[2017-01-12 09:50:36.542] [Debug] Detecting software item 'Android SDK'
[2017-01-12 09:50:36.542] [Info] Checking if Android SDK needs to be updated/installed
[2017-01-12 09:50:36.542] [Info] Using default samples:
[2017-01-12 09:50:36.543] [Info] Downloading from 'http://download.xamarin.com/Installer/xamarin-android-sdk.xml'.
[2017-01-12 09:50:36.543] [Debug] Setting download timeout for 'http://download.xamarin.com/Installer/xamarin-android-sdk.xml' to 60s
[2017-01-12 09:50:36.643] [Warning] Cannot map element 'lldb' to descriptor type.
[2017-01-12 09:50:36.643] [Warning] Cannot map element 'lldb' to descriptor type.
[2017-01-12 09:50:36.643] [Warning] Cannot map element 'lldb' to descriptor type.
[2017-01-12 09:50:36.643] [Warning] Cannot map element 'lldb' to descriptor type.
[2017-01-12 09:50:36.643] [Warning] Cannot map element 'licenses' to descriptor type.
[2017-01-12 09:50:36.743] [Debug] Detecting Android SDK in '<USER_HOME>\Xamarin\Universal\AndroidSDK'
[2017-01-12 09:50:36.743] [Debug] Download size for 'http://dl-ssl.google.com/android/repository/android-ndk-r13b-windows-x86_64.zip': 681320123
[2017-01-12 09:50:36.743] [Error] Failed to find archive for component 'system-image---default'. Tried any:any:64, any:any:0
[2017-01-12 09:50:36.744] [Error] Android component 'system-image-23-armeabi-v7a-default': archive for OS any and architecture any not found in the manifest
[2017-01-12 09:50:36.744] [Exception] Attempt to initialize component 'system-image-23-armeabi-v7a-default' failed
[2017-01-12 09:50:36.744] [Exception] System.InvalidOperationException: No suitable component archive found.
[2017-01-12 09:50:36.744] [Exception] 於 Xamarin.Installer.AndroidSDK.AndroidComponentBase.Init(AndroidComponentDescriptorBase descriptor, Uri repositoryUrl)
[2017-01-12 09:50:36.744] [Exception] 於 Xamarin.Installer.AndroidSDK.AndroidComponentSystemImage.Init(AndroidComponentDescriptorBase descriptor, Uri repositoryUrl)
[2017-01-12 09:50:36.744] [Exception] 於 Xamarin.Installer.AndroidSDK.AndroidComponentDescriptorBase.CreateComponent(String baseDownloadUrl, AndroidSDKInstaller installer)
[2017-01-12 09:50:36.744] [Info] Status: failed.
[2017-01-12 09:50:36.745] [Exception] Failed to detect component 'Android SDK'
[2017-01-12 09:50:36.745] [Exception] System.InvalidOperationException: No suitable component archive found.
[2017-01-12 09:50:36.745] [Exception] 於 Xamarin.Installer.AndroidSDK.AndroidComponentBase.Init(AndroidComponentDescriptorBase descriptor, Uri repositoryUrl)
[2017-01-12 09:50:36.745] [Exception] 於 Xamarin.Installer.AndroidSDK.AndroidComponentSystemImage.Init(AndroidComponentDescriptorBase descriptor, Uri repositoryUrl)
[2017-01-12 09:50:36.745] [Exception] 於 Xamarin.Installer.AndroidSDK.AndroidComponentDescriptorBase.CreateComponent(String baseDownloadUrl, AndroidSDKInstaller installer)
[2017-01-12 09:50:36.745] [Exception] 於 Xamarin.Installer.AndroidSDK.AndroidSDKInstaller.DetectSdkComponents(AndroidSdkInstance sdkInstance, Version mainSdkVersion)
[2017-01-12 09:50:36.745] [Exception] 於 Xamarin.Installer.AndroidSDK.AndroidSDKInstaller.Discover(String mainSDKVersionString, List`1 sdkLocations, String ndkTargetDirectory, Boolean fromScratch)
[2017-01-12 09:50:36.745] [Exception] 於 Xamarin.Web.Installer.Installer.AndroidSoftwareItem.InitInstaller()
[2017-01-12 09:50:36.745] [Exception] 於 Xamarin.Web.Installer.Installer.AndroidSoftwareItem.NeedsUpdate()
[2017-01-12 09:50:36.745] [Exception] 於 Xamarin.Web.Installer.TasksManager.ComponentDetector(ISoftwareItem si)
[2017-01-12 09:50:36.745] [Exception] Detection failed for task Android SDK.
[2017-01-12 09:50:36.745] [Exception] System.InvalidOperationException: No suitable component archive found.
[2017-01-12 09:50:36.745] [Exception] 於 Xamarin.Web.Installer.TasksManager.DetectComponents()
[2017-01-12 09:50:46.345] [Debug] Waiting for initial task to complete.
[2017-01-12 09:50:46.345] [Debug] Initial task already completed.
[2017-01-12 09:50:46.345] [Debug] Detection completed.
[2017-01-12 09:50:46.445] [Error] No selected SDK, cannot enqueue downloads
[2017-01-12 09:50:46.445] [Debug] Download service starting.
[2017-01-12 09:50:48.245] [Debug] No software item needs its license to be accepted. Skipping the licenses page.
[2017-01-12 09:50:48.245] [Info] Installation of software items starting.
[2017-01-12 09:50:48.245] [Debug] Checking software item 'Java JDK'
[2017-01-12 09:50:48.245] [Info] Software item 'Java JDK' does not need to be installed
[2017-01-12 09:50:48.245] [Debug] Checking software item 'Android SDK'
[2017-01-12 09:50:48.245] [Debug] Checking software item 'Microsoft® MSBuild Tools 2015'
[2017-01-12 09:50:48.245] [Info] Software item 'Microsoft® MSBuild Tools 2015' does not need to be installed
[2017-01-12 09:50:48.245] [Debug] Checking software item 'Xamarin'
[2017-01-12 09:50:48.245] [Info] Software item 'Xamarin' does not need to be installed
[2017-01-12 09:50:48.245] [Debug] Checking software item 'Intel® HAXM'
[2017-01-12 09:50:48.246] [Info] Software item 'Intel® HAXM' does not need to be installed
[2017-01-12 09:50:48.246] [Debug] Checking software item 'Xamarin Profiler'
[2017-01-12 09:50:48.246] [Info] Software item 'Xamarin Profiler' does not need to be installed
[2017-01-12 09:50:48.246] [Debug] Checking software item 'Xamarin Workbooks & Inspector'
[2017-01-12 09:50:48.246] [Info] Software item 'Xamarin Workbooks & Inspector' does not need to be installed
[2017-01-12 09:50:48.246] [Debug] Checking software item 'Remoted iOS Simulator'
[2017-01-12 09:50:48.246] [Info] Software item 'Remoted iOS Simulator' does not need to be installed
[2017-01-12 09:50:48.246] [Debug] Starting installation task.
[2017-01-12 09:50:48.246] [Info] Background installation worker called.
[2017-01-12 09:50:48.246] [Info] Processing software items
[2017-01-12 09:50:48.246] [Info] Skipping installation of software item 'Java JDK'
[2017-01-12 09:50:48.246] [Info] Installing software item 'Android SDK'
[2017-01-12 09:50:48.246] [Info] Status: failed.
[2017-01-12 09:50:48.247] [Exception] Installation of software item 'Android SDK' failed with exception.
[2017-01-12 09:50:48.247] [Exception] Xamarin.Web.Installer.InstallException: No selected Android SDK, cannot proceed with installation.
[2017-01-12 09:50:48.247] [Exception] 於 Xamarin.Web.Installer.Installer.AndroidSoftwareItem.Install(UInt32 tryNumber)
[2017-01-12 09:50:48.247] [Exception] 於 WindowsInstaller.ProgressPage.InstallationWorker()
[2017-01-12 09:50:48.247] [Info] Retrying installation (attempt #2, 1 to go)
[2017-01-12 09:50:48.247] [Info] Status: failed.
[2017-01-12 09:50:48.247] [Exception] Installation of software item 'Android SDK' failed with exception.
[2017-01-12 09:50:48.247] [Exception] Xamarin.Web.Installer.InstallException: No selected Android SDK, cannot proceed with installation.
[2017-01-12 09:50:48.247] [Exception] 於 Xamarin.Web.Installer.Installer.AndroidSoftwareItem.Install(UInt32 tryNumber)
[2017-01-12 09:50:48.247] [Exception] 於 WindowsInstaller.ProgressPage.InstallationWorker()
[2017-01-12 09:50:48.247] [Info] Retrying installation (attempt #3, 0 to go)
[2017-01-12 09:50:48.247] [Info] Status: failed.
[2017-01-12 09:50:48.247] [Exception] Installation of software item 'Android SDK' failed with exception.
[2017-01-12 09:50:48.247] [Exception] Xamarin.Web.Installer.InstallException: No selected Android SDK, cannot proceed with installation.
[2017-01-12 09:50:48.247] [Exception] 於 Xamarin.Web.Installer.Installer.AndroidSoftwareItem.Install(UInt32 tryNumber)
[2017-01-12 09:50:48.247] [Exception] 於 WindowsInstaller.ProgressPage.InstallationWorker()
[2017-01-12 09:50:48.247] [Info] Status: failed.
[2017-01-12 09:50:48.347] [Debug] Showing manual installation window because of error
[2017-01-12 09:50:48.547] [Debug] Starting installation complete task.
[2017-01-12 09:50:48.547] [Info] Background installation worker completed.
[2017-01-12 09:50:48.547] [Info] Installation completed with failure
[2017-01-12 09:50:48.547] [Info] Status: failed.
[2017-01-12 09:51:11.247] [Debug] Showing manual installation window because of error

I assume the issue is caused by the inability to fetch 'https://www.xamarin.com/installer_assets/v3/Windows/Universal/InstallationSizes.xml', which gives a forbidden error. Is there an issue with your servers?

I've tried manually installing the Android SDK, NDK, along with the offline Xamarin installer, but I ran into issues trying to get the Android emulator to work correctly.

Posts

  • I got the same issue.
    I've tried to install Xamarin on two different systems and it keeps failing for the same reason.

    Is there anything I am missing?

  • AlanClarkAlanClark USForum Administrator, Xamarin Team Xamurai

    @PaulRiehle Sorry to hear that. Are you all set up now other than the Android emulator issues? It'd be great if you could throw your version information up on pastebin.com for us so I can check you're up to date. Any further info about your emulator troubles would be appreciated. Which emulator are you using?

    @StalinTheCat I'll DM you with some manual installation instructions / links.

  • PaulRiehlePaulRiehle USMember ✭✭

    @AlanClark I tried reinstalling once more. Although it failed again with the same error, I reinstalled Xamarin manually and now the default simulators are somehow present. I believe I no longer have any significant issues.

    By the way, I looked at the log again and I don't believe the 403 error is significant. I think it's related to the following:

    [2017-01-12 09:50:48.247] [Exception] Installation of software item 'Android SDK' failed with exception.
    [2017-01-12 09:50:48.247] [Exception] Xamarin.Web.Installer.InstallException: No selected Android SDK, cannot proceed with installation.
    [2017-01-12 09:50:48.247] [Exception] 於 Xamarin.Web.Installer.Installer.AndroidSoftwareItem.Install(UInt32 tryNumber)
    [2017-01-12 09:50:48.247] [Exception] 於 WindowsInstaller.ProgressPage.InstallationWorker()

Sign In or Register to comment.