Giter VIP home page Giter VIP logo

dotnet-tutorial's People

Contributors

jasonjoh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotnet-tutorial's Issues

Office 365 URL Redirection and sign in issue

Hi ,
Greetings of the day.

I am just using the sample to get office365 contacts .its working locally but when i deployed or published in Server
Its not redirecting after login and also the contact is not showing ...
i hope its not logged in .
and redirection also problem.

Error.
An error occurred while processing your request.

If enable debug

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Please Help Me

About Tasks

Hi,
I follow this sample to get Mail,Contacts,Calendars,

But when try to use it with Tasks (scope = Tasks.Read), this error occour :

You do not have the required permissions to access this item.

Why ?

Help requested for using refresh token

Hi,

Thanks for this great example. The Demo works and I can see the emails for a [email protected] account

I'm trying to use the sample to renew the access token using a refresh token, but the authResult does not contain a refresh token. I see refresh tokens in the authContext, but I don't know how to use those refresh tokens.

Should you use the refresh token in combination with AcquireTokenSilentAsync() or do you have to do this in another way.

Hope you can give me some example of how to do this.

AuthenticationContext result is null

I have

var authResult = await _authContext.AcquireTokenByAuthorizationCodeAsync( authCode, _redirectUri, credential, _scopes);

like your Authorize action result, but all of the authResult attributes (Token, etc) are null.

I see a reply from https://login.microsoftonline.com/common/oauth2/v2.0/token in Fiddler that has a token in it. What am I doing wrong here?

Thanks

From property in the HomeController.inbox gives NULL error

The expected property 'From' could not be found while processing an entry. Check for null before accessing this property.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The expected property 'From' could not be found while processing an entry. Check for null before accessing this property.

Source Error:

Line 149: try
Line 150: {
Line 151: var mailResults = await client.Me.Messages
Line 152: .OrderByDescending(m => m.ReceivedDateTime)
Line 153: .Take(50)

Source File: C:\Users\Owner\Documents\Visual Studio 2015\dotnet-tutorial-master\dotnet-tutorial\Controllers\HomeController.cs    Line: 151

I've tried to test for null but can't get around this --- also, even if I change it to .Take(10) I don't get the "From" fields.
Vr, Tim:

The reply address does not match

Hi,

I've followed the instructions but can not get it to work correctly.
I keep getting the error : "The reply address 'http://localhost:10800/Home/Authorize' does not match the reply addresses configured for the application"

I get the same result with :
Microsoft.Office365.OutlookServices-V2.0 version="2.0.1.0"
Microsoft.Office365.OutlookServices-V2.0 version="2.0.0.0"

Microsoft.Experimental.IdentityModel.Clients.ActiveDirectory version="4.0.209160138-alpha"
Microsoft.Experimental.IdentityModel.Clients.ActiveDirectory version="4.0.208020147-alpha"

I've tried various settings like changing case and toggling the "Allow Implicit Flow" option.

Any ideas what it might be?

error message

settings

.Net Tutorial

This Artiacl Is Vry Helpul ..

But In Readme -images inbox Are Differ comapir Current Project .
And I Want TO Also Crud Operation With Graph Api ..
please SHare Complete Solution For Do It ..

Session is set to Nothing

I'm using the following code as explained in the startup.vb file of my vb.net web forms app. The session is always set to nothing although the code is returned fine. I would greatly appreciate If someone could guide me here. Thanks in advance.

SessionTokenCache tokenCache = new SessionTokenCache(signedInUserId, 
    notification.OwinContext.Environment["System.Web.HttpContextBase"] as HttpContextBase);

Null value at string userName = ClaimsPrincipal.Current.FindFirst("name").Value;

Hi,
Hope you are fine, I have run into the issue in subject line while following the tutorial.

I am using Visual Studio 2015 on Windows 10.

Firstly, I followed the steps in this link but got stuck on Step 4 part Updated Index action in ./Controllers/HomeController.cs so I thought I must have missed a step.

So I came here to GitHub, downloaded the solution and restored NuGet packages, ran and it failed on exactly the same link as before (see attached file). The line which throws the NullReferenceException is:

string userName = ClaimsPrincipal.Current.FindFirst("name").Value;

Please can you check why is this happening? Am I missing a setup-step or any library etc?

Regards.
.
image

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.