<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RuntimeManager.Bind Error migrating Engine app to 10.4.1 in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/runtimemanager-bind-error-migrating-engine-app-to/m-p/185342#M4828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution successfully builds, but when I try to run the application through Visual Studio I encounter the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "An unhandled exception of type 'System.MethodAccessException occcurred in ......exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Additional information: Attempt by security transparent method '...exe to access security critical method &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode)' failed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have included a screen shot of the error as an attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2016 16:57:19 GMT</pubDate>
    <dc:creator>ThomasCox</dc:creator>
    <dc:date>2016-08-10T16:57:19Z</dc:date>
    <item>
      <title>RuntimeManager.Bind Error migrating Engine app to 10.4.1</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/runtimemanager-bind-error-migrating-engine-app-to/m-p/185342#M4828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution successfully builds, but when I try to run the application through Visual Studio I encounter the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "An unhandled exception of type 'System.MethodAccessException occcurred in ......exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Additional information: Attempt by security transparent method '...exe to access security critical method &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode)' failed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have included a screen shot of the error as an attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 16:57:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/runtimemanager-bind-error-migrating-engine-app-to/m-p/185342#M4828</guid>
      <dc:creator>ThomasCox</dc:creator>
      <dc:date>2016-08-10T16:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeManager.Bind Error migrating Engine app to 10.4.1</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/runtimemanager-bind-error-migrating-engine-app-to/m-p/185343#M4829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe I have found the resolution to my issue.&amp;nbsp; I discovered the following stackoverflow site that suggested the fix:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/12255357/visual-studio-security-problems-when-running-projects-trust-levels" title="http://stackoverflow.com/questions/12255357/visual-studio-security-problems-when-running-projects-trust-levels"&gt;c# - Visual studio security problems when running projects - Trust levels - Stack Overflow&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed the tip to add &lt;EM&gt;[assembly:SecurityRules(SecurityRuleSet.Level1)]&lt;/EM&gt; to the application's AssemblyInfo.cs file. Thanks to Anthony Langsworth for the answer. I rebuilt the solution and it successfully launched through Visual Studio.&amp;nbsp; Hopefully, there is not more heartburn regarding deployment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 21:39:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/runtimemanager-bind-error-migrating-engine-app-to/m-p/185343#M4829</guid>
      <dc:creator>ThomasCox</dc:creator>
      <dc:date>2016-08-11T21:39:24Z</dc:date>
    </item>
  </channel>
</rss>

