Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Sir,

I am using calendar API in webform. Its working fine localhost but giving error on iis not open oauth authentication popup on iis.

What I have tried:

C#
UserCredential credential;
string credPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "credentials", name + "\\calendar-dotnet-quickstart.json");
string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "client_secret.json");
using (var stream =
    new FileStream(path, FileMode.Open, FileAccess.Read))
{

    credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
        GoogleClientSecrets.Load(stream).Secrets,
        Scopes,
        "user",
        CancellationToken.None,
        new FileDataStore(credPath, true)).Result;

}
Posted
Updated 1-May-18 8:57am
v3

1 solution

please help I didn't get response yet.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900