YouTube Data API (v3) Windows Server Hosting (IIS)

I use this code to upload videos to youtube

InsertVideoYoutube via .net

The code works fine on my local machine, but gets an exception when I host my api on my IIS

Here is the exception I get

The reference to the object is not installed in the object instance. System.Collections.ListDictionaryInternal in BusinessClass.UploadVideo.videosInsertRequest_ProgressChanged (IUploadProgress progress) in Google.Apis.Upload.ResumableUpload 1.<UploadAsync>d__84.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult () in BusinessClass.UploadVideo.d__1.MoveNext () The object reference is not set to an instance. Void videosInsertRequest_ProgressChanged (Google.Apis.Upload.IUploadProgress)

Using the client_secrets.json file for authorization.

+4
1

, unauthorize,

C:\Users\Administrator\AppData\Roaming\Google.Apis.Auth\Google.Apis.Auth.OAuth2.Responses.TokenResponse-

IIS, "Google.Apis.Auth" IIS. , , , Code ,

+4

Source: https://habr.com/ru/post/1667527/


All Articles