Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudinary Issue #8

Open
Krivirus opened this issue Feb 2, 2021 · 2 comments
Open

Cloudinary Issue #8

Krivirus opened this issue Feb 2, 2021 · 2 comments

Comments

@Krivirus
Copy link

Krivirus commented Feb 2, 2021

image
Please tell me how can i fix it.

API.Middleware.ExceptionMiddleware[0]
Cloud name must be specified in Account!
System.ArgumentException: Cloud name must be specified in Account!
at CloudinaryDotNet.ApiShared..ctor(Account account)
at CloudinaryDotNet.Api..ctor(Account account)
at CloudinaryDotNet.Cloudinary..ctor(Account account)
at API.Services.PhotoService..ctor(IOptions`1 config) in C:\Users\Krish\Downloads\Project Data\Clozest\API\Services\PhotoService.cs:line 25

@punkouter2021
Copy link

Need cloudinary settings in your .json file ?

@surajdotnet
Copy link

You need to first create a Cloudinary account here https://cloudinary.com/users/register/free
and copy the SDK setting in appsetting.development.json

and update your appsetting.development.json as below

{
"ConnectionStrings" : {
"DefaultConnection": "Data source=datingapp.db"
},
"TokenKey": "super secret unguessable key",
"CloudinarySettings":{
"CloudName": "cloudname",
"ApiKey": "apikey",
"ApiSecret": "apisecret"
},

"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Information",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants