web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / While debugging I am g...
Finance forum

While debugging I am getting error: You are not authorized to login with your current credentials. You will be redirected to the login page in a few seconds

(1) ShareShare
ReportReport
Posted on by 9,315 User Group Leader

While debugging via VS2015 I am getting the error:

You are not authorized to login with your current credentials. You will be redirected to the login page in a few seconds.

You-are-not-authorized-to-login-with-your-current-credentials.png

Normally I am able to login to the Dynamics 365 for Finance and Operation, it's only while doing the debug. The old user ID is disabled and removed from the system, This is Microsoft Hosted VM(environments deployed in Microsoft’s subscription). Any help?

I have the same question (0)
  • Suggested answer
    Joris dG Profile Picture
    17,775 on at

    When you debug with F5, the dev tools automatically log you in with the offline authentication user (i.e. ignoring the regular login you've done in the browser).

    You can run the admin provisioning tool to change that (note that it also changes the admin user in D365 as well).

  • Suggested answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    You might have to check following tag in your dynamicsDevConfig located at following path

    K:\AosService\PackagesLocalDirectory\Bin

    <OfflineAuthenticationAdminEmail>XXXXX</OfflineAuthenticationAdminEmail>

  • Jie G Profile Picture
    on at

    Hi UMESH,

    As Sukrut suggested, the Authentication error might be caused by the "Offline Authentication Admin Email".

    1. Check for the "OfflineAuthenticationAdminEmail" key in file "DynamicsDevConfig" in AOSService -> PackagesLocalDirectory->Bin to be set to  the correct login email that you are using.

    2. By default, it is administrator@contosoax7.onmicrosoft.com. So please replace with the email you are using.

    3. Sign In to Visual Studio with your account.

    4. Close Visual studio.

    5. Restart IIS.

    6. Open Visual Studio as Administrator

    Then debug again to see whether the issue is resolved.

  • Umesh Pandit Profile Picture
    9,315 User Group Leader on at

    Hello Sukrut\Ada Ding,

    Greetings!

    Thanks for the reply.

    I already did below steps:

    1. Check for the "OfflineAuthenticationAdminEmail"--- Done already

    2. By default, it is administrator@contosoax7.onmicrosoft.com. So please replace with the email you are using. ---Done already

    3. Sign In to Visual Studio with your account.---Done already

    4. Close Visual studio. ---Done already

    5. Restart IIS.---Done already (Did Via LCS as it's Microsoft Hosted VM, no admin rights, environments deployed in Microsoft’s subscription)

    6. Open Visual Studio as Administrator-- Can't Do,  (as it's Microsoft Hosted VM, no admin rights, environments deployed in Microsoft’s subscription)

    Then debug again to see whether the issue is resolved.-- No Same issue

  • Umesh Pandit Profile Picture
    9,315 User Group Leader on at

    Hello Joris, Can't run the admin provisioning tool as this is Microsoft Hosted VM and when I ran this it's prompting me for Administrator Password(environments deployed in Microsoft’s subscription) . check this cloudblogs.microsoft.com/.../guidelines-for-environments-in-microsoft-subscription

  • Umesh Pandit Profile Picture
    9,315 User Group Leader on at

    Hello Sukrut. Did already... However, did not work...

  • Sukrut Parab Profile Picture
    71,710 Moderator on at

    Just to confirm ,after changing email in the file you performed IIS reset or server restart ?

  • Suggested answer
    Umesh Pandit Profile Picture
    9,315 User Group Leader on at

    Yes IIS reset from LCS and followed by stop and start via LCS.

  • Suggested answer
    Umesh Pandit Profile Picture
    9,315 User Group Leader on at

    We have created a Microsoft Support ticket for the same. Keep you all posted.

  • Verified answer
    Umesh Pandit Profile Picture
    9,315 User Group Leader on at

    The recommendation from Microsoft is to re-provision the environments for new developers as this is Microsoft Hosted VM(environments deployed in Microsoft’s subscription) for more details see cloudblogs.microsoft.com/.../guidelines-for-environments-in-microsoft-subscription

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans