Closed encryptedtouhid closed 6 years ago
Few Attempt to solve this issue failed. Those are : 1) Domain verification from Google dev Concole 2) Changing Client Secret json file location from drive to Project directory. 3) Changing Application pool in IIS. 4) Changing Web Server protocol from http to https. *** All this attempt failed to solved this issue.
Just mentioning your StackOverflow article would be enough
Following on this stack overflow question : Access is denied after deploying while accessing Google Drive Api
It related to write issue. Thus access denied.
You need to have folder permission to read/write from webconfig.
Issue Log : `[Win32Exception (0x80004005): Access is denied] System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) +602 System.Diagnostics.Process.Start(ProcessStartInfo startInfo) +60 Google.Apis.Auth.OAuth2.d__14.MoveNext() +265
[NotSupportedException: Failed to launch browser with "https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&response_type=code&client_id=1062976495544-dg9ak1e6uovp7p6gmlf1vcqvvq6mnefv.apps.googleusercontent.com&redirect_uri=http:%2F%2Flocalhost:12134%2Fauthorize%2F&scope=https:%2F%2Fwww.googleapis.com%2Fauth%2Fdrive" for authorization. See inner exception for details.] Google.Apis.Auth.OAuth2.d14.MoveNext() +1036
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
Google.Apis.Auth.OAuth2.d 8.MoveNext() +730
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
Google.Apis.Auth.OAuth2.d4.MoveNext() +571
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
Google.Apis.Auth.OAuth2.d 1.MoveNext() +438
[AggregateException: One or more errors occurred.] System.Threading.Tasks.Taskb3c() +72
System.Web.Mvc.Async.<>cDisplayClass45.b3e() +385
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +42
System.Web.Mvc.Async.<>cDisplayClass28.b19() +38
System.Web.Mvc.Async.<>cDisplayClass1e.b1b(IAsyncResult asyncResult) +185
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
System.Web.Mvc.Controller.b 1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
System.Web.Mvc.Async.WrappedAsyncVoidb__4(IAsyncResult asyncResult, ProcessRequestState innerState) +43
System.Web.Mvc.Async.WrappedAsyncVoid
1.GetResultCore(Boolean waitCompletionNotification) +4789296 GoogleDriveRestAPI_v3.Models.GoogleDriveFilesRepository.GetService() +296 GoogleDriveRestAPI_v3.Models.GoogleDriveFilesRepository.GetDriveFiles() +36 lambda_method(Closure , ControllerBase , Object[] ) +84 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary
2 parameters) +229 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) +35 System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__36(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +39 System.Web.Mvc.Async.WrappedAsyncResult
2.CallEndDelegate(IAsyncResult asyncResult) +74 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +42 System.Web.Mvc.Async.AsyncInvocationWithFilters.1.CallEndDelegate(IAsyncResult asyncResult) +70 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52 System.Web.Mvc.Async.WrappedAsyncVoid
1.CallEndDelegate(IAsyncResult asyncResult) +36 System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38 System.Web.Mvc.MvcHandler.1.CallEndDelegate(IAsyncResult asyncResult) +70 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +393 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128