<?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 Linking C# code with Enclave code in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Linking-C-code-with-Enclave-code/m-p/1200585#M3876</link>
    <description>&lt;P&gt;I need to call some sgx methods in my C# code. I have found simple example with C# SGX integration on this page:&amp;nbsp;&lt;A href="https://software.intel.com/content/www/us/en/develop/articles/csharp-application-with-intel-software-guard-extensions.html" target="_blank" rel="noopener"&gt;https://software.intel.com/content/www/us/en/develop/articles/csharp-application-with-intel-software-guard-extensions.html&lt;/A&gt;. I try to rewrite it on my personal project, and everything builds fine. Unfortunately, when I am calling linker class&amp;nbsp;SigningEnclaveLinkManaged enclave = new SigningEnclaveLinkManaged(), program returns following exception:&lt;/P&gt;
&lt;P&gt;System.IO.FileNotFoundException&lt;BR /&gt;HResult=0x8007007E&lt;BR /&gt;Message=Cannot load a file or set 'SigningEnclaveLink.dll' or one of its dependencies.&amp;nbsp;A specific module cannot be found.&lt;BR /&gt;Source=&amp;lt;Cannot evaluate the exception source&amp;gt;&lt;BR /&gt;StackTrace:&lt;BR /&gt;&amp;lt;Cannot evaluate the exception stack trace&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;What can be the issue of that?&amp;nbsp; Do I need to check something in project options? There are only problems with Linker Class, SGX Support Detection Class works fine.&lt;/P&gt;
&lt;DIV id="tinyMceEditorVaurine_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 16 Aug 2020 10:03:47 GMT</pubDate>
    <dc:creator>Vaurine</dc:creator>
    <dc:date>2020-08-16T10:03:47Z</dc:date>
    <item>
      <title>Linking C# code with Enclave code</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Linking-C-code-with-Enclave-code/m-p/1200585#M3876</link>
      <description>&lt;P&gt;I need to call some sgx methods in my C# code. I have found simple example with C# SGX integration on this page:&amp;nbsp;&lt;A href="https://software.intel.com/content/www/us/en/develop/articles/csharp-application-with-intel-software-guard-extensions.html" target="_blank" rel="noopener"&gt;https://software.intel.com/content/www/us/en/develop/articles/csharp-application-with-intel-software-guard-extensions.html&lt;/A&gt;. I try to rewrite it on my personal project, and everything builds fine. Unfortunately, when I am calling linker class&amp;nbsp;SigningEnclaveLinkManaged enclave = new SigningEnclaveLinkManaged(), program returns following exception:&lt;/P&gt;
&lt;P&gt;System.IO.FileNotFoundException&lt;BR /&gt;HResult=0x8007007E&lt;BR /&gt;Message=Cannot load a file or set 'SigningEnclaveLink.dll' or one of its dependencies.&amp;nbsp;A specific module cannot be found.&lt;BR /&gt;Source=&amp;lt;Cannot evaluate the exception source&amp;gt;&lt;BR /&gt;StackTrace:&lt;BR /&gt;&amp;lt;Cannot evaluate the exception stack trace&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;What can be the issue of that?&amp;nbsp; Do I need to check something in project options? There are only problems with Linker Class, SGX Support Detection Class works fine.&lt;/P&gt;
&lt;DIV id="tinyMceEditorVaurine_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2020 10:03:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Linking-C-code-with-Enclave-code/m-p/1200585#M3876</guid>
      <dc:creator>Vaurine</dc:creator>
      <dc:date>2020-08-16T10:03:47Z</dc:date>
    </item>
    <item>
      <title>Re:Linking C# code with Enclave code</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Linking-C-code-with-Enclave-code/m-p/1201831#M3886</link>
      <description>&lt;P&gt;Hello Vaurine,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is your SigningEnclaveLinkManaged the equivalent of SMSSenderEnclaveLink from the example?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If so, you need to add the SigningEnclaveLinkManaged project as a reference in your main app project. Your main application does not know where to find the SigningEnclaveLinkManaged dll unless you tell it where it is.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Right click on your main application -&amp;gt; Add -&amp;gt; Reference.. -&amp;gt; select SigningEnclaveLinkManaged.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Aug 2020 20:39:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Linking-C-code-with-Enclave-code/m-p/1201831#M3886</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2020-08-19T20:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Linking C# code with Enclave code</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Linking-C-code-with-Enclave-code/m-p/1203194#M3900</link>
      <description>&lt;P&gt;Reference was added before by me so that it was not the case. I fixed this bug to compare project settings of my Project and sample project. I had to change "Output Path" in C# Project Properties to "..\x64\Debug\". Now it works.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Aug 2020 09:33:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Linking-C-code-with-Enclave-code/m-p/1203194#M3900</guid>
      <dc:creator>Vaurine</dc:creator>
      <dc:date>2020-08-23T09:33:27Z</dc:date>
    </item>
    <item>
      <title>Re:Linking C# code with Enclave code</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Linking-C-code-with-Enclave-code/m-p/1203516#M3904</link>
      <description>&lt;P&gt;&lt;B&gt;This thread has been marked as answered and Intel will no longer monitor this thread. If you want a response from Intel in a follow-up question, please open a new thread.&lt;/B&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Aug 2020 15:31:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Linking-C-code-with-Enclave-code/m-p/1203516#M3904</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2020-08-24T15:31:27Z</dc:date>
    </item>
  </channel>
</rss>

