I am upgrading ArcEngine applications from 10.3 to 10.4.1 and am encountering an error when the RuntimeManager tries to bind to the product code.
I have revised the target framework for the application's projects to .net framework 4.5 and assigned the ESRI dll references to false regarding
The solution successfully builds, but when I try to run the application through Visual Studio I encounter the following error:
"An unhandled exception of type 'System.MethodAccessException occcurred in ......exe
Additional information: Attempt by security transparent method '...exe to access security critical method
I have included a screen shot of the error as an attachment
These Engine applications have been upgraded for numerous versions with out any grief regarding the RuntimeManager binding bit. I am assuming there is something related to the new framework target.
Any assistance would be greatly appreciated.