Integrate Google Docs/Drive/APIs into a .Net (c#) Website
- or -
Post a project like this- Posted:
- Proposals: 13
- Remote
- #2596678
- PRE-FUNDED
- Expired
Description
Looking for someone with experience of this API and c# to connect on-line with a screen share so I can show what I an doing and hopefully get the solutions as to what I am dong wrong - or if applicable get pointed in a completely different direction.
When I run it on localhost the API tries to open a child window to get the user authentication and I get this:
400. That’s an error.
Error: redirect_uri_mismatch
The redirect URI in the request, http://127.0.0.1:49798/authorize/, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/962814922491-e0bruhm778kl70at6bubgtkjfheb25ng.apps.googleusercontent.com?project=962814922491
When I run it on the server I get this:
Class not registered
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.ComponentModel.Win32Exception: Class not registered
Source Error:
Line 42: var credential = GoogleWebAuthorizationBroker.AuthorizeAsync(new ClientSecrets{
Stack Trace:
[Win32Exception (0x80004005): Class not registered]
System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) +756
System.Diagnostics.Process.Start() +131
System.Diagnostics.Process.Start(ProcessStartInfo startInfo) +49
Google.Apis.Auth.OAuth2.d__16.MoveNext() +179
[NotSupportedException: Failed to launch browser with "https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&response_type=code&client_id=962814922491-e0bruhm778kl70at6bubgtkjfheb25ng.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A54905%2Fauthorize%2F&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.file" for authorization. See inner exception for details.]
Google.Apis.Auth.OAuth2.d__16.MoveNext() +320
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
Google.Apis.Auth.OAuth2.d__8.MoveNext() +479
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
Google.Apis.Auth.OAuth2.d__4.MoveNext() +420
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
Google.Apis.Auth.OAuth2.d__1.MoveNext() +286
Gary K.
100% (3)New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
Is it still open for proposals? I have read the error will share the solution
-
Hi Gary,
Can you please post me as what error are you getting in this and any chances to do the changes without screen-share ??
Regards,Gary K.01 Nov 2019Sure. On localhost when the Google API opens the new window to get the users authorisation to access the documents I get this:
400. That’s an error.
Error: redirect_uri_mismatch
The redirect URI in the request, http://127.0.0.1:49798/authorize/, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/962814922491-e0bruhm778kl70at6bubgtkjfheb25ng.apps.googleusercontent.com?project=962814922491