Bug 46848 - Script error occurs when installing Xamarin App
Summary: Script error occurs when installing Xamarin App
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-11-12 02:45 UTC by Ravi K
Modified: 2017-03-17 04:51 UTC (History)
6 users (show)

Is this bug a regression?: ---
Last known good build:

Script Error Screenshots (285.24 KB, application/pdf)
2016-11-12 02:45 UTC, Ravi K

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Ravi K 2016-11-12 02:45:16 UTC
Created attachment 18438 [details]
Script Error Screenshots

OS Environment: Windows 8.1 Pro 
Hardware: HP PRO Tablet 608 or any PC with Windows 8.1 Pro

This issue is happening from November 7, 2016 on wards. 

When installing Xamarin Windows 8.1 application on Windows 8.1 Professional edition using the powershell script file, the script attempts to download developer license from Microsoft, it prompts for agree to the terms for license. After agreeing I get the following script error

An error has occurred in the script on this page
Line: 0
Char: 0
Error: Script error
Code: 0
URL: https://auth.gfx.ms/16.000.26709.00/DefaultLogin_PCore.js
Do you want to continue running scripts on this page? Yes/No

Clicking on Yes; blanks out the dialog and unable to get license and we are unable to install our app on the device.

We are in tight timeline, the app needs to be tested in QA environment. Anyone have workaround for this issue?

This can be simply reproduced with the following step if PC/device with developer license already installed.
-Open Powershell in Administrator mode,  Run the command “Unregister-WindowsDeveloperLicense”, this removes prior license. Now try install  Xamarin app using powershell script and you will be able to reproduce this error.
Comment 1 Jose Gallardo 2016-12-23 18:49:27 UTC
I think your issue is with a Xamarin.Forms Windows 8.1 app.
Changing the product to get the right eyes on it.
Comment 2 Paul DiPietro [MSFT] 2017-03-17 04:51:42 UTC
This does not appear to be a Forms issue and was presumably resolved, per this MSDN link: https://social.msdn.microsoft.com/Forums/en-US/8679af81-0ce6-4516-b4d9-d5b25e9b7e06/problem-with-renewing-the-developer-licence-in-visual-studio-2015?forum=visualstudiogeneral

The timeline fits in with this bug report's original filing.