AnsweredAssumed Answered

IdentityManager.getCredential crahes IISExpress when debugging in Visual Studio 2015

Question asked by jbailey.spatialbridge on Jan 21, 2017

I've created a simple web site that asks a user to log in to ArcGIS Online, using the following code:

 

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="https://js.arcgis.com/3.19/esri/css/esri.css" />
    <script src="https://js.arcgis.com/3.19/"></script>
    <script>
        require([
            "esri/arcgis/OAuthInfo",
            "esri/IdentityManager"
        ], function (OAuthInfo, esriId) {
            var info = new OAuthInfo({
                appId: "ycS0y2RsQMqf22mG",
                popup: false
            });
            esriId.registerOAuthInfos([info]);

            esriId.checkSignInStatus(info.portalUrl + "/sharing").then(
                function () {
                }
            ).otherwise(
                function () {
                     esriId.getCredential(info.portalUrl + "/sharing");
                });
         });
    </script>

</head>
<body>
</body>
</html>

 

After IdentityManager.getCredential() is called on line 24, the Visual Studio debugger exits with errors:
The program '[2224] iexplore.exe' has exited with code 0 (0x0).
The program '[10128] iisexpress.exe' has exited with code 0 (0x0).

The application is still running in Internet Explorer, however. 

 

Has anyone else experienced this, and is there a way to work around it?

Outcomes