Giter Club home page Giter Club logo

Comments (4)

sqrrrl avatar sqrrrl commented on June 14, 2024

Sorry, but I'm a bit confused by the details here and what you're trying to accomplish.

You included both JSON files for the different clients, but from the error it looks like you're only using the first one and still trying to do the installed app flow. Can you provide a little more context to what you mean by "on server?" Are you running your app in a shell on the command line? Or, as indicated with the 2nd client, trying to build a web app?

In either case, the particular error is coming from trying to launch the browser. If you're in a context where that's not possible -- e.g. in a remote shell or as part of a server process, then it'll fail. That particular flow is only intended for client side applications. You'll need to implement one of the other available auth flows to match the context your app is running under.

from dotnet-samples.

RushikPatel avatar RushikPatel commented on June 14, 2024

Hello Steve,

Thank's for reply this question.
I am currently use C# .net technology web project and using google calendar api integration in this web project. but this error raise in live server site.

System.AggregateException: One or more errors occurred. ---> System.NotSupportedException: Failed to launch browser with "https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&response_type=code&client_id=xxxxxxxxxxxx-vqi4faduqgcpt3d2ruv53ltgr0rkgfsb.apps.googleusercontent.com&redirect_uri=http:%2F%2Flocalhost:53998%2Fauthorize%2F&scope=https:%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar" for authorization. See inner exception for details. ---> System.ComponentModel.Win32Exception: Access is denied

But Locally in localhost is working fine.

Can you please give me solution regarding this issue ?

Thank you,
Rushik Patel

from dotnet-samples.

RushikPatel avatar RushikPatel commented on June 14, 2024

Hello,

Can you please give me proper solution and any idea ?

from dotnet-samples.

erickoledadevrel avatar erickoledadevrel commented on June 14, 2024

The quickstart in this repo is designed to work on the command line only. To perform the authorization flow in a web application you must use a different set of authorization code:

https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth

from dotnet-samples.

Related Issues (20)

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.