# Unable to make a tutorial run

**URL:** <https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849>\
**Category:** C#\
**Created:** [February 8, 2022, 1:46pm UTC](https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849 "2022-02-08T13:46:02Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![macsrl](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/c4cdca/32.png) [@macsrl](https://community.stereolabs.com/u/macsrl)\
**Post date:** [February 8, 2022, 1:46pm UTC](https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849/1 "2022-02-08T13:46:02Z")

</div>

hi!  
iam trying to make a tutorial run, but i got some errors.  
i followed the instructions provided here:  
[https://www.stereolabs.com/docs/app-development/csharp/use/](https://www.stereolabs.com/docs/app-development/csharp/use/)  
i succeded in all the steps, but whem i make the code run, i get an exception on this line:  
ERROR\_CODE err = zedCamera.Open(ref init\_params);  
‘Unable to load DLL ‘sl\_zed\_c.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)’

the sl\_zed\_c.dll is in either output directory, and in sdk directory.

so i tried to start a new c# project (.net framework 4.6.1) and install the nuget package stereolabs.zed (3.6.0) but also i got an error during the installation process: “failed to add reference to ‘sl\_zed\_c’. please make sure that the file is accessible, and that it is in a valid assembly or com component”.

there is no way to make it works.

then i decided to build the cpp version, and make my own c# wrapper, but i got this at launch:  
“nvEncodeAPI64.dll was not found”.

what am i doing wrong?  
i’ll appreciate any suggestion.

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [February 8, 2022, 4:27pm UTC](https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849/2 "2022-02-08T16:27:59Z")

</div>

Hi,

It seems that the nuget package can not be correctly imported in visual studio (it works fine using cmakelist).

Can you try to use the package added in attachement. You can use local nuget package by following this tutorial : [Creating and using a local NuGet package repository | by Vibhav Churi | Medium](https://medium.com/@churi.vibhav/creating-and-using-a-local-nuget-package-repository-9f19475d6af8)

Best regards,  
Benjamin V

[Stereolabs.zed.3.6.0.nupkg](https://community.stereolabs.com/uploads/short-url/8W225GZh95ebIV4zvFTuCgi0GKn.nupkg) (77.7 KB)

---

<div class="post-metadata">

**Author:** ![macsrl](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/c4cdca/32.png) [@macsrl](https://community.stereolabs.com/u/macsrl)\
**Post date:** [February 8, 2022, 4:45pm UTC](https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849/3 "2022-02-08T16:45:39Z")

</div>

ty for the reply,  
i succeded installing the nuget package localy in my project without any error, but now i got the same error as the cmakelist example “hello zed”:

ERROR\_CODE err = zedCamera.Open(ref init\_params);

‘Unable to load DLL ‘sl\_zed\_c.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)’

when i build my project, files “sl\_zed\_c.dll” and “Stereolabs.zed.dll” are correctly copied in the output folder, but the error persist.

any other suggestions?

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [February 8, 2022, 4:48pm UTC](https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849/4 "2022-02-08T16:48:46Z")

</div>

Can you verify the platform target of your project is x64 ?

 ![image](https://community.stereolabs.com/uploads/default/original/1X/cfeefe8e9351ecda4c150abe65cbfb9ce54d07e2.png)

---

<div class="post-metadata">

**Author:** ![macsrl](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/c4cdca/32.png) [@macsrl](https://community.stereolabs.com/u/macsrl)\
**Post date:** [February 9, 2022, 8:23am UTC](https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849/5 "2022-02-09T08:23:36Z")

</div>

hi,  
hello\_zed tutorial has x64 for default, i checked my project: it has x64 too.  
i get the same error on both projects.

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [February 9, 2022, 10:27am UTC](https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849/6 "2022-02-09T10:27:21Z")

</div>

Could you run the ZED Diag tool and share it by mail at [support@stereolabs.com](mailto:support@stereolabs.com) ?

Best,  
Benjamin V

---

<div class="post-metadata">

**Author:** ![macsrl](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/c4cdca/32.png) [@macsrl](https://community.stereolabs.com/u/macsrl)\
**Post date:** [February 9, 2022, 11:07am UTC](https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849/7 "2022-02-09T11:07:26Z")

</div>

i sent via mail some video of tests done with diag tools, but i was unable to complete them.

---

<div class="post-metadata">

**Author:** ![mic37](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/b3f665/32.png) [@mic37](https://community.stereolabs.com/u/mic37)\
**Post date:** [May 2, 2023, 6:58am UTC](https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849/8 "2023-05-02T06:58:39Z")

</div>

Is there any progress on this issue?  
I have the same problem but I did more tests and when I tried to load sl\_zed\_c.dll using LoadLibrary() I got Windows Runtime error: The procedure entry point ?pauseObjectDetection@Camera@sl@@QEAAX\_NI@Z could not be located in the dynamic link library sl\_zed\_c.dll, which in turn was displayed by the program as: System.DllNotFoundException: ‘Unable to load DLL ‘sl\_zed\_c.dll’: The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)’.  
Maybe this will help.

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [May 2, 2023, 7:00am UTC](https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849/9 "2023-05-02T07:00:18Z")

</div>

Hi,

Can you make sure the ZED SDK and the nugget package you are using have compatible versions?

My guess is you are using the ZED SDK 3.8 with the 4.0.x nuget package.  
If so, please either use the v3.8 version of the nuget package or the ZED SDK v4.0.2.

---

<div class="post-metadata">

**Author:** ![mic37](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/b3f665/32.png) [@mic37](https://community.stereolabs.com/u/mic37)\
**Post date:** [May 2, 2023, 7:21am UTC](https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849/10 "2023-05-02T07:21:23Z")

</div>

Yes, you are right. I downgraded the nuget package to version 3.8 and everything works now. Thanks and sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![aicode](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/a/c89c15/32.png) [@aicode](https://community.stereolabs.com/u/aicode)\
**Post date:** [May 17, 2023, 2:54am UTC](https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849/11 "2023-05-17T02:54:53Z")

</div>

I am having the same problem. I can only download and installed ZED SDK 4.0.2 while the latest nuget package from stereolabs.zed is 4.0.1. I can c-make and run the C++ Version without problem. But for every project i try to run in C# I get

System.DllNotFoundException: ‘Unable to load DLL ‘sl\_zed\_c.dll’: The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)’

raised by stereolabs.dll

---

<div class="post-metadata">

**Author:** ![aicode](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/a/c89c15/32.png) [@aicode](https://community.stereolabs.com/u/aicode)\
**Post date:** [May 18, 2023, 12:45am UTC](https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849/12 "2023-05-18T00:45:42Z")

</div>

I fixed it by manually building it. The nuget packages do not work! Had to manually copy the built sl\_zed\_c.dll into the execution folder: [GitHub - stereolabs/zed-csharp-api: C# API for the ZED SDK](https://github.com/stereolabs/zed-csharp-api)

---

<div class="post-metadata">

**Author:** ![rahulnair-github](https://community.stereolabs.com/user_avatar/community.stereolabs.com/rahulnair-github/32/1357_2.png) [@rahulnair-github](https://community.stereolabs.com/u/rahulnair-github)\
**Post date:** [June 7, 2023, 10:37am UTC](https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849/13 "2023-06-07T10:37:53Z")

</div>

Thanks @aicode this worked now. Had to build the [GitHub - stereolabs/zed-c-api](https://github.com/stereolabs/zed-c-api) using CMake to get the sl\_zed\_c.dll. All tutorials work now.

@Stereolabs, can you release a new version of nuget which works with the tutorials??
