cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MethodAccessException (with details)

robert_sanford
Newcomer

We are receiving a MethodAccessException from our Informix database driver due to DynaTrace instrumentation and I'm hoping someone has run into a similar issue and can help me work around.

The exception message is: Attempt by security transparent method 'IBM.Data.Informix.IfxCommand.ExecuteReader(...)' to call native code through method 'DynaTrace.Diagnostics.Agent.NativeAgent.getInstrumentationState()' failed. Methods must be security critical or...

Google search for this error indicates CAS at the heart of it. I'm not certain exactly how to resolve based on the following pages.

  1. http://stackoverflow.com/questions/9460371/code-access-security-in-asp-net-4-0-and-dynamic-data-erro...
  2. https://social.msdn.microsoft.com/Forums/vstudio/en-US/c79fe8b3-4444-4173-a582-fb2f0ad979a5/systemse...
  3. http://stackoverflow.com/questions/11885764/attempt-by-security-transparent-method-x-to-access-secur...

Thanks in advance!

rjsjr

1 REPLY 1

andreas_grabner
Dynatrace Leader
Dynatrace Leader

Hi Robert

Please open a support ticket for this!