1
私はyesterdarからGoogleカレンダーV3 APIへのリクエストを認証するためにそれを使用しようとしていましたが、テキストだけを含むAggregateExceptionを通過できません"アクセスが拒否されました"。Google Auth API for Calendarの "Access Denied"エラー
私conflictiveコードが壊れるこの、最後の行であるものです:
UserCredential credential;
using (var stream =
new FileStream(HostingEnvironment.MapPath(credentialsPath), FileMode.Open, FileAccess.Read))
{
string credPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
credPath = Path.Combine(credPath, writePath);
var authTask = GoogleWebAuthorizationBroker.AuthorizeAsync(
GoogleClientSecrets.Load(stream).Secrets,
Scopes,
"user",
CancellationToken.None,
new FileDataStore(credPath, true)
);
credential = authTask.Result;
}
私はすでにも...別の資格情報を作成し、再びclient_secret.jsonファイルを生成し、秘密鍵を再作成しようとしている
私はこのエラーに達する前に解決しなければならなかったので、両方のパス、JSONとフォルダが正しいことを知っています。
問題が発生する可能性のあるヒントはありますか? ありがとう!
DNNの設定によっては、新しいデータ資産をサーバーに保存する目的で、正しいユーザーまたはIISユーザー権限でWebサイトを構成したことはありませんでした。 – blackhawk