How to register existing UWP app with Microsoft App Registration Portal


I had a UWP app working with OneDrive, allowing users to read and write to a file.

Then I accidentally deleted my app from the Application Registration Portal ( and now any OneDrive related code throws an authentication error.

I am able to add a new app but then unable to add 'Windows Store' as a platform.

Here is a screenshot of what I am trying to achieve

How can I re-register my app with the Registration Portal to get it working with OneDrive again?

Here is the code I'm using to authenticate:

var msaAuthenticationProvider = new OnlineIdAuthenticationProvider(new string[] { "onedrive.readwrite" });
        await msaAuthenticationProvider.AuthenticateUserAsync();
        client = new OneDriveClient("", msaAuthenticationProvider);

Here is the error I am currently getting when my I run the code above:

The application requesting authentication tokens is either disabled or incorrectly configured. (Exception from HRESULT: 0x80860003)

Thanks for any help anyone can offer!

asked on Stack Overflow Jun 16, 2017 by arsenalfandan

1 Answer


Please refer to thread :

After some diagnosis and discussion, as far as I known once we have deleted app in the live services which has associated with a Windows Store App, it is not possible to re-link it, what we can do is to create a new Windows Store App in the Dashboard.

answered on Stack Overflow Jun 19, 2017 by Nan Yu

User contributions licensed under CC BY-SA 3.0