# Having trouble integrating zoom windows sdk c#

**URL:** <https://devforum.zoom.us/t/having-trouble-integrating-zoom-windows-sdk-c/34210>\
**Category:** Windows\
**Created:** [October 24, 2020, 8:31pm UTC](https://devforum.zoom.us/t/having-trouble-integrating-zoom-windows-sdk-c/34210 "2020-10-24T20:31:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![vk82786](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vk82786/32/17676_2.png) [@vk82786](https://devforum.zoom.us/u/vk82786)\
**Post date:** [October 24, 2020, 8:31pm UTC](https://devforum.zoom.us/t/having-trouble-integrating-zoom-windows-sdk-c/34210/1 "2020-10-24T20:31:36Z")

</div>

**Description**  
Im trying to integrate zoom windows sdk using the c# wrapper but i was not successfully but when i try to download and run the demo project [https://github.com/zoom/zoom-c-sharp-wrapper](https://github.com/zoom/zoom-c-sharp-wrapper) it was running fine

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Made a new wpf project  
2.Copied all the files in bin folder of the demo project to bin/x86/Release folder  
3.When i run the application im not getting any call back in Add\_CB\_onAuthenticationReturn

Enabled the sdk logger but i did not find anything there

---

<div class="post-metadata">

**Author:** ![Proddy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/proddy/32/15671_2.png) [@Proddy](https://devforum.zoom.us/u/Proddy)\
**Post date:** [October 24, 2020, 10:51pm UTC](https://devforum.zoom.us/t/having-trouble-integrating-zoom-windows-sdk-c/34210/2 "2020-10-24T22:51:18Z")

</div>

I assume you’re running _CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth()_, this function returns an _SDKError_, have you checked the output of that error?

---

<div class="post-metadata">

**Author:** ![vk82786](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vk82786/32/17676_2.png) [@vk82786](https://devforum.zoom.us/u/vk82786)\
**Post date:** [October 24, 2020, 11:15pm UTC](https://devforum.zoom.us/t/having-trouble-integrating-zoom-windows-sdk-c/34210/3 "2020-10-24T23:15:03Z")

</div>

```
InitParam initParam = new InitParam();
        initParam.enable_log = true;
        ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.Initialize(initParam);

        ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onAuthenticationReturn(onAuthenticationReturn);
        ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLoginRet(onLoginRet);
        ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLogout(onLogout);

        ZOOM_SDK_DOTNET_WRAP.AuthParam authParam = new ZOOM_SDK_DOTNET_WRAP.AuthParam();
        authParam.appKey = "";
        authParam.appSecret = "";
       

        ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth(authParam);

```

Above is the code which iam running  
I dont get any errors

---

<div class="post-metadata">

**Author:** ![Proddy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/proddy/32/15671_2.png) [@Proddy](https://devforum.zoom.us/u/Proddy)\
**Post date:** [October 24, 2020, 11:19pm UTC](https://devforum.zoom.us/t/having-trouble-integrating-zoom-windows-sdk-c/34210/4 "2020-10-24T23:19:54Z")

</div>

Change the code to:

```
InitParam initParam = new InitParam();
initParam.enable_log = true;
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.Initialize(initParam);

ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onAuthenticationReturn(onAuthenticationReturn);
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLoginRet(onLoginRet);
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLogout(onLogout);

ZOOM_SDK_DOTNET_WRAP.AuthParam authParam = new ZOOM_SDK_DOTNET_WRAP.AuthParam();
authParam.appKey = "";
authParam.appSecret = "";

ZOOM_SDK_DOTNET_WRAP.SDKError sdkErr = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth(authParam);
if (sdkErr != ZOOM_SDK_DOTNET_WRAP.SDKError.SDKERR_SUCCESS)
{
    MessageBox.Show(sdkErr.ToString());
}

```

This should give you a popup with the SDKError if it isn’t a success.

---

<div class="post-metadata">

**Author:** ![vk82786](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vk82786/32/17676_2.png) [@vk82786](https://devforum.zoom.us/u/vk82786)\
**Post date:** [October 24, 2020, 11:22pm UTC](https://devforum.zoom.us/t/having-trouble-integrating-zoom-windows-sdk-c/34210/5 "2020-10-24T23:22:16Z")

</div>

Im getting SDKERR\_UNINTIALIZE

---

<div class="post-metadata">

**Author:** ![Proddy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/proddy/32/15671_2.png) [@Proddy](https://devforum.zoom.us/u/Proddy)\
**Post date:** [October 24, 2020, 11:23pm UTC](https://devforum.zoom.us/t/having-trouble-integrating-zoom-windows-sdk-c/34210/6 "2020-10-24T23:23:29Z")

</div>

Ah, in which case you need to do this at the start of your code:

```
ZOOM_SDK_DOTNET_WRAP.InitParam param = new ZOOM_SDK_DOTNET_WRAP.InitParam();
param.web_domain = "https://zoom.us";
ZOOM_SDK_DOTNET_WRAP.SDKError err = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.Initialize(param);
if (ZOOM_SDK_DOTNET_WRAP.SDKError.SDKERR_SUCCESS == err)
{
    // Success
}
else
{
    // Handle Initialise error
}
```

---

<div class="post-metadata">

**Author:** ![vk82786](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vk82786/32/17676_2.png) [@vk82786](https://devforum.zoom.us/u/vk82786)\
**Post date:** [October 24, 2020, 11:29pm UTC](https://devforum.zoom.us/t/having-trouble-integrating-zoom-windows-sdk-c/34210/7 "2020-10-24T23:29:01Z")

</div>

Thanks @Proddy its working now , that bit of code was not present in the demo project.

And a small clarification i just need to copy the bin folder from the demo project to bin/x86/Release folder right ?

---

<div class="post-metadata">

**Author:** ![Proddy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/proddy/32/15671_2.png) [@Proddy](https://devforum.zoom.us/u/Proddy)\
**Post date:** [October 24, 2020, 11:30pm UTC](https://devforum.zoom.us/t/having-trouble-integrating-zoom-windows-sdk-c/34210/8 "2020-10-24T23:30:17Z")

</div>

It is present, just in App.xaml.cs.

Yes, the entire bin folder is required to run your app.

---

<div class="post-metadata">

**Author:** ![vk82786](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vk82786/32/17676_2.png) [@vk82786](https://devforum.zoom.us/u/vk82786)\
**Post date:** [October 24, 2020, 11:35pm UTC](https://devforum.zoom.us/t/having-trouble-integrating-zoom-windows-sdk-c/34210/9 "2020-10-24T23:35:06Z")

</div>

Ohh my bad 🙆‍♂️ , Thanks for the info
