Operation can destabilize runtime in ASP.NET

I am using google analytics dll files in this project. it does not give any errors on the local computer, but generates this error when io deploys the website to the server.

[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 

in my code I got this exception on this line

 Profiles myProfiles = _service.Management.Profiles.List("~all", "~all").Fetch(); 

I searched on google for the last 2 hours, but could not get any solution. please provide a solution. thanx in advance!

+4
source share
1 answer

Actually, it might be like the fix I installed about a month ago, which is in the code overview for the Google.Api.Services.BaseClientService.cs class.

Here's the error report: https://code.google.com/p/google-api-dotnet-client/issues/detail?id=330

Here's an overview of the code with the patch: https://codereview.appspot.com/110190043/

An operation can destabilize runtime. Google.Api.Services.BaseClientService.cs

Essentially, I needed to run peverify against the DLL to find out which syntax causes the "destabilizing possibility". As soon as I found the line, I fixed the unsafe syntax that google introduced.

I also added a compiled version of Google.Apis.dll, which includes a fix.

Hope this helps!

0
source

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


All Articles