Using ListLabel21.dll.
We’re seeing an intermittent failure where the Html5ViewerController
can’t be instantiated due to a dynamic method security transparency violation — could this be related to dynamic code running before full trust is established on app cold start?
This sometimes corrects itself when refreshing the screen.
{“Message”:“An error has occurred.”,“ExceptionMessage”:“An error occurred when trying to create a controller of type ‘Html5ViewerController’. Make sure that the controller has a parameterless public constructor.”,“ExceptionType”:“System.InvalidOperationException”,“StackTrace”:" at System.Web.Http.Dispatcher.DefaultHttpControllerActivator.Create(HttpRequestMessage request, HttpControllerDescriptor controllerDescriptor, Type controllerType)\r\n at System.Web.Http.Controllers.HttpControllerDescriptor.CreateController(HttpRequestMessage request)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()“,“InnerException”:{“Message”:“An error has occurred.”,“ExceptionMessage”:“Attempt by security transparent method ‘DynamicClass.lambda_method(System.Runtime.CompilerServices.Closure)’ to access security critical method ‘combit.ListLabel21.Web.Html5ViewerController…ctor()’ failed.”,“ExceptionType”:“System.MethodAccessException”,“StackTrace”:” at lambda_method(Closure )\r\n at System.Web.Http.Dispatcher.DefaultHttpControllerActivator.Create(HttpRequestMessage request, HttpControllerDescriptor controllerDescriptor, Type controllerType)"}}