# Issues with Exporting or Packaging C# Wrapper SDK

**URL:** <https://devforum.zoom.us/t/issues-with-exporting-or-packaging-c-wrapper-sdk/49495>\
**Category:** Windows\
**Created:** [May 3, 2021, 10:58pm UTC](https://devforum.zoom.us/t/issues-with-exporting-or-packaging-c-wrapper-sdk/49495 "2021-05-03T22:58:31Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyler](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyler](https://devforum.zoom.us/u/tyler)\
**Post date:** [May 3, 2021, 10:58pm UTC](https://devforum.zoom.us/t/issues-with-exporting-or-packaging-c-wrapper-sdk/49495/1 "2021-05-03T22:58:31Z")

</div>

**Description**  
I have a client application in WPF working great on my local machine. The issue is that whenever I package it up either copying the executable and all libraries together, or combining them into an MSI installer, on the newly installed machine I always get a message:

```auto
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'zoom_sdk_dotnet_wrap.dll' or one of its dependencies. The specified module could not be found.

```

Even though the `zoom_sdk_dotnet_wrap.dll` is in the same directory as the executable.  
The target machines all allow 32-bit applications to run fine without a problem. Even in cases where I am copying the `Release` directory as is that is running fine on my machine to another computer, I still get that same error.

Does it need to be referenced or activated on the new machine in some way that I’m not aware of to be recognized?

**Which Windows Client SDK version?**  
5.5.12509.0330  
Assembly zoom\_sdk\_dotnet\_wrap, Version=1.0.7575.37543

**Device (please complete the following information):**  
Windows 10

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [May 4, 2021, 7:16pm UTC](https://devforum.zoom.us/t/issues-with-exporting-or-packaging-c-wrapper-sdk/49495/2 "2021-05-04T19:16:51Z")

</div>

Hey @tyler,

Thanks for using the dev forum!

This is likely due to a some file path setting that is valid in your local environment but not otherwise.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![tyler](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyler](https://devforum.zoom.us/u/tyler)\
**Post date:** [May 4, 2021, 8:34pm UTC](https://devforum.zoom.us/t/issues-with-exporting-or-packaging-c-wrapper-sdk/49495/3 "2021-05-04T20:34:29Z")

</div>

@Michael_Condon Files are all in the same directory as the EXE, and they’re not explicitly referenced in a path anywhere in the code, so I don’t think it’s that. This was my first thought along with making sure the EXE was in x86 so it wasn’t missing the DLLs that are also x86.

Are the SDK DLLs somehow linked to the machine they are downloaded into or run the first ime in some explicit way?

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [May 4, 2021, 10:36pm UTC](https://devforum.zoom.us/t/issues-with-exporting-or-packaging-c-wrapper-sdk/49495/4 "2021-05-04T22:36:00Z")

</div>

Hey @tyler,

I dont believe so. The demo application will run immediately after download, so I do not believe it is possible that they are hardwired to a specific machine.

Michael

---

<div class="post-metadata">

**Author:** ![tyler](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyler](https://devforum.zoom.us/u/tyler)\
**Post date:** [May 4, 2021, 10:38pm UTC](https://devforum.zoom.us/t/issues-with-exporting-or-packaging-c-wrapper-sdk/49495/5 "2021-05-04T22:38:20Z")

</div>

OK. It’s very strange cause I can copy the directory on my own machine into any directory and it works fine, but as soon as I copy that exact directory on to a different machine it doesn’t work. I will update here if I figure out what the issue is

---

<div class="post-metadata">

**Author:** ![tyler](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyler](https://devforum.zoom.us/u/tyler)\
**Post date:** [May 5, 2021, 12:32pm UTC](https://devforum.zoom.us/t/issues-with-exporting-or-packaging-c-wrapper-sdk/49495/6 "2021-05-05T12:32:57Z")

</div>

As an extra sanity check, I copied the entire directory into another machine and I still get the error

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [May 5, 2021, 9:54pm UTC](https://devforum.zoom.us/t/issues-with-exporting-or-packaging-c-wrapper-sdk/49495/7 "2021-05-05T21:54:58Z")

</div>

Hey @tyler,

You could try using a dependency walker to identify what the issue is: [GitHub - lucasg/Dependencies: A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.](https://github.com/lucasg/Dependencies)

Michael

---

<div class="post-metadata">

**Author:** ![tyler](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyler](https://devforum.zoom.us/u/tyler)\
**Post date:** [May 5, 2021, 10:11pm UTC](https://devforum.zoom.us/t/issues-with-exporting-or-packaging-c-wrapper-sdk/49495/8 "2021-05-05T22:11:09Z")

</div>

@Michael_Condon I’ve tried that already, didn’t derive anything useful.

---

<div class="post-metadata">

**Author:** ![tyler](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyler](https://devforum.zoom.us/u/tyler)\
**Post date:** [May 6, 2021, 1:04pm UTC](https://devforum.zoom.us/t/issues-with-exporting-or-packaging-c-wrapper-sdk/49495/9 "2021-05-06T13:04:41Z")

</div>

Got this figured out. The target machine needs to VC++ Redistributable installed on it.

For anyone having this issue, you can download the installer here: [The latest supported Visual C++ downloads](https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0)

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [May 6, 2021, 4:48pm UTC](https://devforum.zoom.us/t/issues-with-exporting-or-packaging-c-wrapper-sdk/49495/10 "2021-05-06T16:48:47Z")

</div>

Hey @tyler,

Nice work! I am so happy to hear you got this figured out 🙂

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [June 6, 2021, 2:49am UTC](https://devforum.zoom.us/t/issues-with-exporting-or-packaging-c-wrapper-sdk/49495/11 "2021-06-06T02:49:45Z")

</div>

Closed on June 6, 2021, 2:49am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
