Quick-start sample app for C# doesn't work. Ideas?

Need help running this sample Google+ API Quickstart w/ C# app please, using VS2015 and following directions from here: https://developers.google.com/+/web/samples/csharp

I have so far:

  1. Enabled the Google API and played with it in OAuth2.0 Playground.

  2. Set http://localhost:4567 as an Authorized JavaScript origin.

  3. Cloned the "googleplus/gplus-quickstart-csharp" repository in Github found here: https://github.com/googleplus/gplus-quickstart-csharp

  4. Changed the client ID and secret to what I was given from the Google developer's website.

  5. Tried to build but ran into NuGet build errors, so I deleted the NuGet completely and had all the target references re-downloaded and then rebuilt the project. Everything compiled.

  6. Ran the project. Here I can clearly see the Google+ button but when I click on it, nothing happens! Also made sure pop-ups work in my browser. I've tried Firefox, Chrome, and IE.

Any idea why clicking the button does nothing? There is a pop-up that I am expecting to see as the guide suggests but it never appears. I feel like I followed the directions well...

My code is up in a public Github repository here (client secret is reset): https://github.com/ForeverCodingAndLearning/googleplus-quickstart-csharp

Please help or comment with suggestions as to where a beginner with this would go wrong. Thanks.

Upvotes: 2

Views: 252

Answers (1)

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 116918

  1. That project on GitHub hasn't been touched on GitHub in 2 years.
  2. He is using a version of the .Net client library from 3 years ago he included it in the project.
  3. The project targets .Net framework 4.0 which is no technically longer supported by the Google .Net client library.

Any one of those would explain why its not working

I will try and make an upgraded version of that tutorial asap. My Google Plus api sample code

Upvotes: 4

Related Questions