Comments (4)
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.
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.
Hello,
Can you please give me proper solution and any idea ?
from dotnet-samples.
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)
- [SyncRepoSettings bot] - Invalid config file
- Google CalendarException HOT 5
- Request payload size exceeds the limit: 10485760 bytes. HOT 4
- Unable to download credentials.json for Sheets API HOT 2
- Can't find a sample to use this in a web app HOT 1
- Two Errors in GoogleWebAuthorizationBroker.AuthorizeAsync on Google Calendar .NET Example HOT 2
- This app isn't verified This app hasn't been verified by Google yet. Only proceed if you know and trust the developer.
- This app isn't verified HOT 1
- request is null HOT 5
- How do I verify if an events exists before insert on GoogleCalendar?
- Improve error messages HOT 1
- Provided code doesn't return my tasks Titles
- Google Authentication not connecting when running off .dll vs Visual Studio
- how to Turn on the Google Calendar API for already existing project
- Trying to send email using gmail api and get error on GoogleWebAuthorizationBroker.AuthorizeAsync in asp.net c# HOT 1
- Google Calendar Problem?
- exception
- : 'At least one client secrets (Installed or Web) should be set'
- Invalid URL error
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnet-samples.