Hotmail

“0x80004002 – JavaScript runtime error: No such interface supported” when calling WINJS authenticateUserAsync API

Unanswered 0 answers

Archived post from August 16, 2013. Product: Hotmail – no longer developed by its maker. Details may be out of date.

Question asked on Aug 16, 2013

I got error message with the code below:

 

Error:    

"0x80004002 - JavaScript runtime error: No such interface supported"

        

 

Code:

var authenticator = new Windows.Security.Authentication.OnlineId.OnlineIdAuthenticator();

var serviceTicketRequest = new Windows.Security.Authentication.OnlineId.OnlineIdServiceTicketRequest("wl.basic", "DELEGATION");

authenticator.authenticateUserAsync(serviceTicketRequest, Windows.Security.Authentication.OnlineId.CredentialPromptType.promptIfNeeded)

.done(function (){...});

 

The error is gone after remove the second param "Windows.Security.Authentication.OnlineId.CredentialPromptType.promptIfNeeded". But I can see the API support the 2nd param from IntelliSense in VS2012. Any idea?

 

 

No answers yet

Write an answer

Your email address will not be published. Please never post passwords.

This site uses Akismet to reduce spam. Learn how your comment data is processed.