I need to call some sgx methods in my C# code. I have found simple example with C# SGX integration on this page: https://software.intel.com/content/www/us/en/develop/articles/csharp-application-with-intel-software-guard-extensions.html. I try to rewrite it on my personal project, and everything builds fine. Unfortunately, when I am calling linker class SigningEnclaveLinkManaged enclave = new SigningEnclaveLinkManaged(), program returns following exception:
Message=Cannot load a file or set 'SigningEnclaveLink.dll' or one of its dependencies. A specific module cannot be found.
Source=<Cannot evaluate the exception source>
<Cannot evaluate the exception stack trace>
What can be the issue of that? Do I need to check something in project options? There are only problems with Linker Class, SGX Support Detection Class works fine.
Is your SigningEnclaveLinkManaged the equivalent of SMSSenderEnclaveLink from the example?
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.
Right click on your main application -> Add -> Reference.. -> select SigningEnclaveLinkManaged.
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.