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.