View Issue Details

IDProjectCategoryView StatusLast Update
00312732.x IDE BugsBuild UWPPublic2019-08-21 10:00
ReporterDanAssigned ToFritz 
PriorityLowSeverityB - MajorReproducibility100%
Status AssignedResolutionOpen 
PlatformUWPOSWindows 10OS Version1903
Product Version2.2.3 
Target VersionFixed in Version 
Summary0031273: Build UWP: Connections to localhost in Device Portal fail if using WIndows 10 v1903 and authentication is enabled
DescriptionWith Windows 10 v1903, the method we use for connecting to the localhost in order to use the PC as a UWP target no longer connects if authentication is enabled. We need to determine the HTTPS changes introduced to the Device Portal by 1903 and modify the IDE and runtime accordingly.

The only info you get is a compiler error telling you to follow one of our Helpdesk FAQs and this in your output log:

Error : Could not connect to device localhost:50443. Please follow the setup guide (http://help.yoyogames.com/hc/en-us/articles/115001100548) and try again.
Igor complete.
-----------------------------------------------------------------------------
System.Exception: Error connecting to device localhost:50443.
   at ..(String[] )
-----------------------------------------------------------------------------
EXCEPTION FILE - C:\Users\........


The DPDeploy tool is actually trying to show you a more informative dialog, but this is not able to be shown:

    <div class="wdp-error">
        <h1>Confirm security settings</h1>
        

        You've enabled a password for Windows Device Portal but have not set up a secure (HTTPS) connection. Be aware that an Http-only connection to Windows Device Portal sends your username and password over the network unencrypted.
        

        

        https://aka.ms/WDPSecureConnection
        

        

        <button class="commonButton" id="continueButton" onclick="setSslState('http');">Continue with an unsecured connection</button>
        

        <input type="checkbox" id="rememberSslState" /><label for="rememberSslState">Don't show again</label>
    </div>
Steps To Reproduce1. Have your UWP device list include the local PC.
2. Update your Windows version to 1903 or above.
3. Open Windows 10's Settings app and re-enable the Device Portal in "For developers" settings
4. Ensure Authentication is enabled also and you have added a un/pass. Apply this change and OK the confirmation dialog also.
5. Open GMS2 and try to run any project to your UWP PC device.
6. Observe it failed to connect, as described above.
7. (Optional) Try to clean your project now and observe you get the same result.
Repro: 100%
TagsNo tags attached.
2.x IDE Found In2.2.3.436
2.x Runtime Found In2.2.3.344
2.x IDE Verified In
2.x Runtime Verified In

Activities

Dan

2019-08-19 14:19

Adminstrator   ~0064581

Last edited: 2019-08-19 14:20

View 2 revisions

Confirmed this is only an issue when Authentication is enabled, updated the info above. If authentication is off, all is well.

Please note as far as GMS2 is concerned, Authentication is totally optional and we would only say it's required if you genuinely do want to allow other people to use your PC as a build target.

Dan

2019-08-19 14:28

Adminstrator  

NotWorkingUWP.txt (6,422 bytes)
"cmd"  /c subst Z: "C:\Users\daniel.cleaton\AppData\Roaming\GameMakerStudio2-Dev\Cache\GMS2CACHE"

elapsed time 00:00:00.2149312s for command "cmd" /c subst Z: "C:\Users\daniel.cleaton\AppData\Roaming\GameMakerStudio2-Dev\Cache\GMS2CACHE" started at 08/19/2019 14:12:30
"cmd"  /c subst Y: "C:\Users\daniel.cleaton\AppData\Local\GameMakerStudio2-Dev\GMS2TEMP"

elapsed time 00:00:00.2109322s for command "cmd" /c subst Y: "C:\Users\daniel.cleaton\AppData\Local\GameMakerStudio2-Dev\GMS2TEMP" started at 08/19/2019 14:12:30
"cmd"  /c subst X: "C:\ProgramData\GameMakerStudio2-Dev\Cache\runtimes\runtime-9.9.1.1532"

elapsed time 00:00:00.2119320s for command "cmd" /c subst X: "C:\ProgramData\GameMakerStudio2-Dev\Cache\runtimes\runtime-9.9.1.1532" started at 08/19/2019 14:12:30
"C:\ProgramData/GameMakerStudio2-Dev/Cache/runtimes\runtime-9.9.1.1532/bin/Igor.exe"  -j=8 -options="C:\Users\daniel.cleaton\AppData\Local\GameMakerStudio2-Dev\GMS2TEMP\build.bff" -v -- winuwp Clean

Loaded Macros from C:\Users\daniel.cleaton\AppData\Roaming\GameMakerStudio2-Dev\Cache\GMS2CACHE\VineQuest_595D5A58\macros.json
Options: X:/bin\platform_setting_defaults.json
Options: C:\Users\daniel.cleaton\AppData\Roaming/GameMakerStudio2-Dev\qa_48\local_settings.json
Options: C:\Users\daniel.cleaton\AppData\Roaming\GameMakerStudio2-Dev\Cache\GMS2CACHE\VineQuest_595D5A58\targetoptions.json
X://bin/GMAssetCompiler.exe  /c /zpex /iv=0 /rv=0 /bv=0 /j=8  /gn="VineQuest" /td="Y:/" /cd="Z:/VineQuest_595D5A58" /zpuf="C:\Users\daniel.cleaton\AppData\Roaming/GameMakerStudio2-Dev\qa_48" /m=winUAP /tgt=35184372088832 /nodnd /cfg="default" /o="Y:/VineQuest_8BC819D_VM" /sh=True /optionsini="Y:/VineQuest_8BC819D_VM\options.ini"  /cvm /baseproject="X:/BaseProject\BaseProject.yyp" "E:\sourceQA\VineQuest\VineQuest.yyp" /preprocess="Z:/VineQuest_595D5A58"
Reading project file....E:\sourceQA\VineQuest
Reading project file....X:\BaseProject
Reading config delta 'E:\sourceQA\VineQuest\options\main\inherited\options_main.inherited.yy'
finished.


X://bin/GMAssetCompiler.exe DONE (0)
Release build
Options: Z:/VineQuest_595D5A58\PlatformOptions.json
Options: Z:/VineQuest_595D5A58\MainOptions.json
Unable to decode the returned string from dpdeploy:?<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>Windows Device Portal</title>
    <link rel="Stylesheet" href="css/common.css" />
    <link rel="shortcut icon" href="favicon.ico" />
    <script src="js/jquery.js"></script>
    <script type="text/javascript">
        function setSslState(sslState) {
            var params = { sslState: sslState, remember: document.getElementById("rememberSslState").checked };
            var sslStateUri = "/api/authorize/setSslState?" + $.param(params);
            document.location.href = sslStateUri;
        }
    </script>
</head>
<body id="root">
    <div class="wdp-error">
        <h1>Confirm security settings</h1>
        <br />
        You've enabled a password for Windows Device Portal but have not set up a secure (HTTPS) connection.  Be aware that an Http-only connection to Windows Device Portal sends your username and password over the network unencrypted.
        <br />
        <br />
        <a href="https://aka.ms/WDPSecureConnection">Configure a secure connection</a>
        <br />
        <br />
        <button class="commonButton" id="continueButton" onclick="setSslState('http');">Continue with an unsecured connection</button>
        <br />
        <input type="checkbox" id="rememberSslState" /><label for="rememberSslState">Don't show again</label>
    </div>
</body>
</html>




Unable to decode the returned string from dpdeploy:?<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>Windows Device Portal</title>
    <link rel="Stylesheet" href="css/common.css" />
    <link rel="shortcut icon" href="favicon.ico" />
    <script src="js/jquery.js"></script>
    <script type="text/javascript">
        function setSslState(sslState) {
            var params = { sslState: sslState, remember: document.getElementById("rememberSslState").checked };
            var sslStateUri = "/api/authorize/setSslState?" + $.param(params);
            document.location.href = sslStateUri;
        }
    </script>
</head>
<body id="root">
    <div class="wdp-error">
        <h1>Confirm security settings</h1>
        <br />
        You've enabled a password for Windows Device Portal but have not set up a secure (HTTPS) connection.  Be aware that an Http-only connection to Windows Device Portal sends your username and password over the network unencrypted.
        <br />
        <br />
        <a href="https://aka.ms/WDPSecureConnection">Configure a secure connection</a>
        <br />
        <br />
        <button class="commonButton" id="continueButton" onclick="setSslState('http');">Continue with an unsecured connection</button>
        <br />
        <input type="checkbox" id="rememberSslState" /><label for="rememberSslState">Don't show again</label>
    </div>
</body>
</html>




Error : Could not connect to device localhost:50080.  Please follow the setup guide (http://help.yoyogames.com/hc/en-us/articles/115001100548) and try again.
Igor complete.
-----------------------------------------------------------------------------
System.Exception: Error connecting to device localhost:50080.
   at ..(String[] )
-----------------------------------------------------------------------------
EXCEPTION FILE - C:\Users\daniel.cleaton\AppData\Local\Temp\d2002ceb5f9743db92dc88c34daa936d.yyg.saencryptedreport
-----------------------------------------------------------------------------
elapsed time 00:00:01.4750276s for command "C:\ProgramData/GameMakerStudio2-Dev/Cache/runtimes\runtime-9.9.1.1532/bin/Igor.exe" -j=8 -options="C:\Users\daniel.cleaton\AppData\Local\GameMakerStudio2-Dev\GMS2TEMP\build.bff" -v -- winuwp Clean started at 08/19/2019 14:12:31
"cmd"  /c subst Z: /d

elapsed time 00:00:00.2099331s for command "cmd" /c subst Z: /d started at 08/19/2019 14:12:32
"cmd"  /c subst Y: /d

elapsed time 00:00:00.2104355s for command "cmd" /c subst Y: /d started at 08/19/2019 14:12:32
"cmd"  /c subst X: /d

elapsed time 00:00:00.2109325s for command "cmd" /c subst X: /d started at 08/19/2019 14:12:32
FAILED : Clean Program Complete
NotWorkingUWP.txt (6,422 bytes)