0
파일 관리를 위해 Google 드라이브 기능을 구현했습니다. 로컬 시스템에서 잘 일하고있어하지만 난 내 서버에 호스팅 할 때마다 다음과 같은 오류가 발생합니다 :경로 'Google.Apis.Auth'에 대한 액세스가 거부되었습니다. mvc C#
System.UnauthorizedAccessException: Access to the path 'Google.Apis.Auth' is denied.
string[] scopes = new string[] { "https://www.googleapis.com/auth/contacts.readonly" };
UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync(new ClientSecrets {
ClientId = "clientId", ClientSecret = "clientSecret" },
scopes, "test2", CancellationToken.None, new FileDataStore("Google.Apis.Auth")).Result;
내가 대안 상대 경로로 다른 폴더를 제공하고, 코드가 중단됩니다.
예외를 throw하는 코드를 표시해야합니다. –