调用Google API V3 .UploadAsync时MSCORLIB中的System.InvalidOperationException [英] System.InvalidOperationException in MSCORLIB when Google API V3 .UploadAsync is called

查看:156
本文介绍了调用Google API V3 .UploadAsync时MSCORLIB中的System.InvalidOperationException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决了

After resolving the problem documented in Google API V3 OAUTH2 Hang - TokenResponse-user Credentials File not created, I resumed testing my EXE deployed onto a Windows 7 PC. Again, this program works fine on my Windows 8.1 development system. The deployed version on a Windows 7 PC fails as documented below.

在Windows 7 PC上,我的程序已成功执行 GoogleWebAuthorizationBroker.AuthorizeAsync,ChannelsResource.ListRequest,VideoCategoriesResource.ListRequest ,并在开始上传视频文件之前初始化了对象.当我的程序执行 videosInsertRequest.UploadAsync 时,显示系统错误消息框,其中包含以下信息.

On the Windows 7 PC, my program successfully executed GoogleWebAuthorizationBroker.AuthorizeAsync, ChannelsResource.ListRequest, VideoCategoriesResource.ListRequest, and initialization of the objects prior to starting the video file upload. When my program executed the videosInsertRequest.UploadAsync, a system error message box was displayed with the following information.

 youtubeupload.exe has stopped working

 Windows can check online or a solution to the problem.

-> Check online for a solution and close the program
-> Close the program

View problem details


Problem signature:
  Problem Event Name:   CLR20r3
  Problem Signature 01: youtubeupload.exe
  Problem Signature 02: 2.0.1.0
  Problem Signature 03: 53bf2a89
  Problem Signature 04: mscorlib
  Problem Signature 05: 4.0.0.0
  Problem Signature 06: 52ccf750
  Problem Signature 07: 1575
  Problem Signature 08: 47
  Problem Signature 09: System.InvalidOperationException
  OS Version:   6.1.7601.2.1.0.256.48
  Locale ID:    1033
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

用于检查解决方案的链接不会返回任何建议.我怀疑Windows 7 PC上需要安装另一个Microsoft KB更新,但是目前不知道如何确定哪个更新.

The link to check for a solution does not return any suggestions. I suspect that another Microsoft KB Update needs to be installed on the Windows 7 PC but have no idea, at this time, how to determine which one.

推荐答案

我能够使我的程序正常运行,因此此问题得以解决.

I was able to get my program to work so this problem is solved.

在Windows 7 PC上,我检查了Microsoft Windows Update 页面,发现它显示了:

On the Windows 7 PC, I checked the Microsoft Windows Update page and found that it displayed:

You receive updates: Managed by your system administrator

页面上的链接使我可以在线检查更新.我这样做了,发现了152个更新,其中包括一些.NET Framework更新. Windows Update进行了几次重新启动和重新运行,以安装所有更新.安装完所有文件后,我再次尝试了我的EXE,它可以正常工作!!!

A link on the page allowed me to check online for updates. I did that and found 152 updates including some for .NET Framework updates. It took several restarts and re-runs of Windows Update to get all of the updates installed. After they were all installed, I tried my EXE again and it worked!!!

后来,我发现此PC未在WSUS中正确注册,因此未获取更新.

Later, I found out that this PC was not properly registered in WSUS so was not getting updates.

这篇关于调用Google API V3 .UploadAsync时MSCORLIB中的System.InvalidOperationException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆