Code Monkey home page Code Monkey logo

azuremetricsample's People

Contributors

liarjo avatar

Watchers

 avatar  avatar

azuremetricsample's Issues

AADSTS50034: To sign into this application the account must be added to the directory

I got the error

`E:\Git\GitHub\AzureMetricSample\AzureMetricSample\SampleMetricConsole\bin\Debug>SampleMetricConsole.exe
My Token is:

Unhandled Exception: Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS50034: To sign into this application the account must be added to the xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx directory.
Trace ID: f88727b7-10bd-49f1-9f7d-24772f02b055
Correlation ID: d1ac9987-1f94-49ce-a5b3-b145a1c0c94a
Timestamp: 2017-02-23 15:19:11Z ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpWebRequestWrapper.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpHelper.d__01.MoveNext() --- End of inner exception stack trace --- at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.RunAsyncTask[T](Task1 task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.AcquireToken(String resource, String clientId, UserCredential userCredential)
at SampleMetricConsole.MetricProvider.GetAuthorizationHeaderSilent() in E:\Git\GitHub\AzureMetricSample\AzureMetricSample\SampleMetricConsole\MetricProvider.cs:line 47
at SampleMetricConsole.Program.Main(String[] args) in E:\Git\GitHub\AzureMetricSample\AzureMetricSample\SampleMetricConsole\Program.cs:line 85`

what i do wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.