<?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 Re: CPM .NET SDK Could not load file or assembly error in PAM Self-Hosted Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-net-sdk-could-not-load-file-or-assembly-error/m-p/1343860#M37527</link>
    <description>&lt;P&gt;Hi @Maximilian Rosenberg​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As it seems Malhar provided an answer for your question, could you kindly share if this solution resolved your issue?&lt;/P&gt;&lt;P&gt;If so, could you please mark the answer as "Select as Best" to help other community members?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the issue is still relevant, I would advise raising a ticket with our Support team for further assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, Liad&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2024 16:57:13 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2024-11-06T16:57:13Z</dc:date>
    <item>
      <title>CPM .NET SDK Could not load file or assembly error</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-net-sdk-could-not-load-file-or-assembly-error/m-p/1343858#M37525</link>
      <description>&lt;P&gt;I try to use the CPM .NET SDK (&lt;A alt="https://docs.cyberark.com/pam-self-hosted/14.2/en/content/pasimp/plug-in-netinvoker.htm?tocpath=Developer%7CCreate%20extensions%7CCreate%20CPM%20plugins%7CCredentials%20Management%20.NET%20SDK%7C_____0" href="https://docs.cyberark.com/pam-self-hosted/14.2/en/content/pasimp/plug-in-netinvoker.htm?tocpath=Developer%7CCreate%20extensions%7CCreate%20CPM%20plugins%7CCredentials%20Management%20.NET%20SDK%7C_____0" target="_blank"&gt;Credentials Management .NET SDK | CyberArk Docs&lt;/A&gt;). &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can build the .dll without any changes to the .cs files. The only thing I have changed is the &amp;lt;TargetFrameworkVersion&amp;gt; to v4.8 from 4.5.2 since it is v4.8 which will be used. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I execute the plugin &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;.\CANetPluginInvoker.exe '{relativ_path}\Parameters File\user.ini' verifypass '.\CyberArk.Extensions.Plugin.Template\bin\Debug\CyberArk.Extensions.Plugin.Template.dll' True &lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following error:&lt;/P&gt;&lt;P&gt;&lt;B&gt;Execution error. EXT01 :: Got exception : Could not load file or assembly '.\\CyberArk.Extensions.Plugin.Template\\bin\\Debug\\CyberArk-Extensions.Plugin.Template' or one of its dependencies. The given assembly name or codebase was invalid. (Eception from HRESULT: 0x80131047). Error code -1&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have an idea or face the same issue?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 09:59:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-net-sdk-could-not-load-file-or-assembly-error/m-p/1343858#M37525</guid>
      <dc:creator>mro</dc:creator>
      <dc:date>2024-10-29T09:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: CPM .NET SDK Could not load file or assembly error</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-net-sdk-could-not-load-file-or-assembly-error/m-p/1343859#M37526</link>
      <description>&lt;P&gt;Hi @Maximilian Rosenberg​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try running CANetPluginInvoker.exe with elevated privileges, as some assemblies may need administrative rights to load correctly, depending on security settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 00:18:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-net-sdk-could-not-load-file-or-assembly-error/m-p/1343859#M37526</guid>
      <dc:creator>M.Vora780263</dc:creator>
      <dc:date>2024-11-04T00:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: CPM .NET SDK Could not load file or assembly error</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-net-sdk-could-not-load-file-or-assembly-error/m-p/1343860#M37527</link>
      <description>&lt;P&gt;Hi @Maximilian Rosenberg​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As it seems Malhar provided an answer for your question, could you kindly share if this solution resolved your issue?&lt;/P&gt;&lt;P&gt;If so, could you please mark the answer as "Select as Best" to help other community members?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the issue is still relevant, I would advise raising a ticket with our Support team for further assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, Liad&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 16:57:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-net-sdk-could-not-load-file-or-assembly-error/m-p/1343860#M37527</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2024-11-06T16:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: CPM .NET SDK Could not load file or assembly error</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-net-sdk-could-not-load-file-or-assembly-error/m-p/1343861#M37528</link>
      <description>&lt;P&gt;Not sure if you need to have admin privileges but I would recommend @Maximilian Rosenberg​&amp;nbsp;to add a launchSettings.json in Properties folder. (That is if you are using Visual Studio to develop your plugins.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And below should be the content of that file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;CODE&gt;{
  "profiles": {
    "Verify Action": {
      "commandName": "Executable",
      "executablePath": "C:\\Users\\&amp;lt;USER&amp;gt;\\source\\repos\\&amp;lt;PROJECT&amp;gt;\\bin\\x86\\Debug\\net48\\CANetPluginInvoker.exe",
      "commandLineArgs": ".\\user.ini verifypass .\\&amp;lt;YOUR_PLUGIN&amp;gt;.dll true",
      "workingDirectory": "C:\\Users\\&amp;lt;USER&amp;gt;\\source\\repos\\&amp;lt;PROJECT&amp;gt;\\bin\\x86\\Debug\\net48",
      "nativeDebugging": true
    },
    "Change Action": {
      "commandName": "Executable",
      "executablePath": "C:\\Users\\&amp;lt;USER&amp;gt;\\source\\repos\\&amp;lt;PROJECT&amp;gt;\\bin\\x86\\Debug\\net48\\CANetPluginInvoker.exe",
      "commandLineArgs": ".\\user.ini changepass .\\&amp;lt;YOUR_PLUGIN&amp;gt;.dll true",
      "workingDirectory": "C:\\Users\\&amp;lt;USER&amp;gt;\\source\\repos\\&amp;lt;PROJECT&amp;gt;\\bin\\x86\\Debug\\net48",
      "nativeDebugging": true
    },
    "Reconcile Action": {
      "commandName": "Executable",
      "executablePath": "C:\\Users\\&amp;lt;USER&amp;gt;\\source\\repos\\&amp;lt;PROJECT&amp;gt;\\bin\\x86\\Debug\\net48\\CANetPluginInvoker.exe",
      "commandLineArgs": ".\\user.ini reconcilepass .\\&amp;lt;YOUR_PLUGIN&amp;gt;.dll true",
      "workingDirectory": "C:\\Users\\&amp;lt;USER&amp;gt;\\source\\repos\\&amp;lt;PROJECT&amp;gt;\\bin\\x86\\Debug\\net48",
      "nativeDebugging": true
    },
    "PreReconcile Action": {
      "commandName": "Executable",
      "executablePath": "C:\\Users\\&amp;lt;USER&amp;gt;\\source\\repos\\&amp;lt;PROJECT&amp;gt;\\bin\\x86\\Debug\\net48\\CANetPluginInvoker.exe",
      "commandLineArgs": ".\\user.ini prereconcilepass .\\&amp;lt;YOUR_PLUGIN&amp;gt;.dll true",
      "workingDirectory": "C:\\Users\\&amp;lt;USER&amp;gt;\\source\\repos\\&amp;lt;PROJECT&amp;gt;\\bin\\x86\\Debug\\net48",
      "nativeDebugging": true
    }
  }
}&lt;/CODE&gt;&lt;P&gt;Above will allow you to perform different actions, straight from Visual Studio code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="image" src="sfdc://069Vy00001swgvJIAQ" /&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2026 11:17:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cpm-net-sdk-could-not-load-file-or-assembly-error/m-p/1343861#M37528</guid>
      <dc:creator>Kevin_MN</dc:creator>
      <dc:date>2026-10-01T11:17:18Z</dc:date>
    </item>
  </channel>
</rss>

