I am using this code to upload video on youtube
Code is working fine in my local machine but getting exception when i host my api on my IIS
Here is the exception what i am getting
Object reference not set to an instance of an object. System.Collections.ListDictionaryInternal at BusinessClass.UploadVideo.videosInsertRequest_ProgressChanged(IUploadProgress progress) at 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.TaskAwaiter
1.GetResult() at BusinessClass.UploadVideo.d__1.MoveNext() Object reference not set to an instance of an object. Void videosInsertRequest_ProgressChanged(Google.Apis.Upload.IUploadProgress)
Using client_secrets.json file for authorization.