Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8251503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:15:30+00:00 2026-06-08T00:15:30+00:00

I need a little help with the C# example program of Google-Drive… I used

  • 0

I need a little help with the C# example program of Google-Drive…

I used this so-called "tutorial"/"example":
https://developers.google.com/drive/examples/dotnet

And the code from here:
https://code.google.com/p/google-drive-sdk-samples/source/checkout

I uploaded my (only slightly modified) sourcecode here in case anybody doesn’t have Mercurial (I didn’t have Mercurial and no admin rights to install it either, and Mercurial is the only way to get the sourcecode…):
http://verzend.be/elt0k13enraw/DrEdit.rar.html

I always get

"Ressource cannot be found"

Requested URL: /oauth2callback

I don’t find this astonishing, as no oauth2callback controller or handler is implemented…

I tried adding a Controller called oauth2callbackController and redirecting to another action in oauth2callbackController.Index, doing

return new RedirectResult("/about/about");

But that only creates a NULL-reference exception.

So i figured, maybe the wrong controller and redirected to

return new RedirectResult("/drive/Index");

But that only creates an infinite loop of redirect -> allow -> redirect – allow -> etc.

BTW, the config to change the API key + REDIRECT_URI is in

Models\ClientCredentials.cs

Note:
The problem aren’t my modifications.
The sample also didn’t work unmodified, with the exact same error.
All I did was removing EntityFramwork references, and throwing "Not implemented exception" when a method using entity was called.

Edit:
Additional information:
What I really wanted to do in the first place is to write a console service that exports my database, LZMA-compresses the exported content, encrypts that with OpenPGP, and uploads the database of my server to Google drive every day at 24:00 o’clock, without any user input.

I got export working without a problem, i got the LZMA compression working without a problem, I got the encryption with PGP working without a problem.
After the end of the working day (grrrr), when I was at home, I was even able to download the example-code with the mercurial installed on my Linux-machine at home, and bring it on the windows machine using SMB…

But now I can’t get the sample for the Google-drive SDK working…
And moreover, what I really need is an example for a console service/daemon, not a web-application.
When I created the API key, I saw one could create a key for a service, but there is no example on how to write a Google-Drive service (console application), and no useful documentation as well (yea there is a reference, but it’s only a reference, IntelliSense provides about the same)…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T00:15:32+00:00Added an answer on June 8, 2026 at 12:15 am

    When configuring your app in the API Access tab of the APIs Console, you had to set the root (/) of your web server as the redirect URI and not /oauth2callback.

    Assuming that your app is published at http://www.example.com, just go back to the APIs Console and set it to http://www.example.com instead of http://www.example.com/oauth2callback

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a little help getting this script doing what I want it to.
I need little help for url rewriting in wordpress. basically what i need: mydomain.com/mysomewordpresspost
I would need little help here. I'm trying to get the git respository from
Need a little help with a SQL / ActiveRecord query. Let's say I have
Need a little help with my jquery here I want all my button with
I need a little help with an if statement in php. I'm trying to
I need a little help setting up a HTTP Post in C#. I appreciate
I need a little help here please.What am trying to do is pull all
I need a little help getting a tar file to download from a website.
I need a little help creating a catch-all error handling page in my ICEfaces

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.