0

I have registered on Google cloud platform went through the authentication steps and created the required JSON as suggested here. On downloading the Google cloud SDk(requirement for setting up environment variable) and trying to install the installation fails my Os is win 7 64-bit. On trying to set environment directly(My computer>advance settings> environment variable) and running the code mentioned in given link I get the error as please check value of environment variable Google_Application_credential error Image

error Message:-

system.InvalidOperationException: Error reading credential file from location. please check the value of the environment variable GOOGLE_APPLICATION_CREDENTIALS at Google.Apis.Auth.OAuth2.defaultcredentialprovider

Please help!

2
  • It is better to insert error text, not an image. Commented Nov 10, 2016 at 9:35
  • @NikolayShmyrev Thanks.. have added the error message as well. Commented Nov 10, 2016 at 12:55

1 Answer 1

1

You need to use those commands with the right path to make it work :

SET GOOGLE_APPLICATION_CREDENTIALS=FILE_PATH/credentials.json (name of the file)

SET GCLOUD_PROJECT=PROJECT_NAME

Sign up to request clarification or add additional context in comments.

3 Comments

had set Google_application_credentials in the above way but didn't work, as for cloud_project couldn't install the cloud_sdk even that is giving error.
Did you correctly download the .json and placed it on your directory location?
Yes as given in the steps.. I authenticated in same way and downloaded the JSON. Am I facing the issue as I was unable to install gcloud sdk and set environment variable using gcloud sdk

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.