我在这个项目中使用谷歌分析 dll 文件。它不会在本地给出任何错误,但在 io 将网站部署到服务器时会产生此错误。
[VerificationException: Operation could destabilize the runtime.]
Google.Apis.Discovery.BaseService.DeserializeResponse(IResponse input) in Service.cs:391
Google.Apis.Analytics.v3.AnalyticsService.DeserializeResponse(IResponse response) in 0ixqzagp.0.cs:4340
Google.Apis.Requests.ServiceRequest`1.FetchObject(IResponse response) in ServiceRequest.cs:203
_Default.Page_Load(Object sender, EventArgs e) +241
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
System.Web.UI.Control.OnLoad(EventArgs e) +92
System.Web.UI.Control.LoadRecursive() +54
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
在我的代码中,我在这一行得到了这个异常
Profiles myProfiles = _service.Management.Profiles.List("~all", "~all").Fetch();
过去 2 小时我一直在谷歌上搜索,但找不到任何解决方案。请提供解决方案。提前谢谢!!