# Throwing Error in clicking SetDomain Button in the first Page

**URL:** <https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261>\
**Category:** Windows\
**Created:** [May 15, 2019, 7:43am UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261 "2019-05-15T07:43:26Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![meenatchi.sundareshw](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@meenatchi.sundareshw](https://devforum.zoom.us/u/meenatchi.sundareshw)\
**Post date:** [May 15, 2019, 7:43am UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/1 "2019-05-15T07:43:26Z")

</div>

I have downloaded the C# Code for Zoom from the Developer site and at last build it successfully in VisualStudio 2017.  
And when I run the Build. It opens the first Zoom page.  
After I click the SetDomain Button  
I got two error message one by one and nothing happens after that.  
Error messages are:

1. sdk init failed-4
2. int sdk failed

Please let me know, why this error message is coming?

Version Number: 4.3.47204.0325

**To Reproduce(If applicable)**  
NA

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 15, 2019, 11:30pm UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/2 "2019-05-15T23:30:00Z")

</div>

Hi meenatchi,

Thanks for using Zoom SDK. Based on the error message, it looks like there is at least 1 module loaded failed. Can you provide any SDK logs or console print out?

Thanks!

---

<div class="post-metadata">

**Author:** ![meenatchi.sundareshw](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@meenatchi.sundareshw](https://devforum.zoom.us/u/meenatchi.sundareshw)\
**Post date:** [May 16, 2019, 7:02am UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/3 "2019-05-16T07:02:06Z")

</div>

![ErrorMessage1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/dad27b2e16c937109dcf81274eec3240439e52dd.png)

Hi,  
I have attached the error message in the above. I tried to attach the log files, but it is not allowing me to attach. Please let me know your mail id, so that I can send it over to your mail ID  
Thanks,  
MeenatchiSundar M

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 16, 2019, 10:24pm UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/4 "2019-05-16T22:24:12Z")

</div>

Hi,  
Thanks for the info. Would you mind placing your logs in a shared drive and send me a forum message with the link to the shared files? I will get back to you once we analyzed the log.

Thanks!

---

<div class="post-metadata">

**Author:** ![meenatchi.sundareshw](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@meenatchi.sundareshw](https://devforum.zoom.us/u/meenatchi.sundareshw)\
**Post date:** [May 19, 2019, 7:04pm UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/5 "2019-05-19T19:04:20Z")

</div>

Hi,  
Below is the link for the log files. Please analyze and let me know the issue.

[https://drive.google.com/drive/folders/1mmMCacne-GTS0gFy6EQEM9iyvcOnAuIN?usp=sharing](https://drive.google.com/drive/folders/1mmMCacne-GTS0gFy6EQEM9iyvcOnAuIN?usp=sharing)

Thanks,  
Meenatchi Sundar M

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 20, 2019, 6:43pm UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/6 "2019-05-20T18:43:23Z")

</div>

Hi,  
Thank you very much for the reply and the log. We will analyze it and get back to you asap.

Thanks!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 22, 2019, 1:15am UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/7 "2019-05-22T01:15:54Z")

</div>

Hi,  
Thanks for providing the info and the log. Actually the log that you provided is the console log from the demo, which is not that helpful. If you are going to retrieve log in the future, please enable the log feature at SDK initialization, and you can find the SDK log in the path: `%appdata%/ZoomSDK/logs/`.

Our current assumption for the root cause of your issue is: The exe file is not located in the same directory of the Zoom package files. You need to put the files in the `\bin` folder in the same folder as the exe file.

You can follow the doc to run the demo app: [https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started](https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started)

Please let me know if it works.Thanks!

---

<div class="post-metadata">

**Author:** ![meenatchi.sundareshw](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@meenatchi.sundareshw](https://devforum.zoom.us/u/meenatchi.sundareshw)\
**Post date:** [May 23, 2019, 4:58am UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/8 "2019-05-23T04:58:07Z")

</div>

Hi,

Below is the link for the log file present in the mentioned path (appdata/ZoomSDK/logs).

[https://drive.google.com/drive/folders/1gKvXHFJCa5iqObMDXAAt7dLq-roHh0N2?usp=sharing](https://drive.google.com/drive/folders/1gKvXHFJCa5iqObMDXAAt7dLq-roHh0N2?usp=sharing)

Please check this and let me know the results.

Thanks for the analysis.

Regards,  
MeenatchiSundar M

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 23, 2019, 5:46pm UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/9 "2019-05-23T17:46:29Z")

</div>

Hi,

Thank you for providing the log. We will analyze it and get back to you. Does our assumption (file path issue) in my previous reply work for you?

Thanks!

---

<div class="post-metadata">

**Author:** ![meenatchi.sundareshw](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@meenatchi.sundareshw](https://devforum.zoom.us/u/meenatchi.sundareshw)\
**Post date:** [May 24, 2019, 5:59am UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/10 "2019-05-24T05:59:17Z")

</div>

Hi,  
Assumption of putting the files in the bin folder doesn’t work out.  
Thanks,  
Meenatchi Sundar M

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 24, 2019, 11:05pm UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/11 "2019-05-24T23:05:08Z")

</div>

Hi,  
Thanks for the prompt reply. We are working on analyzing the log and I will get back to you asap.

Thanks!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 4, 2019, 6:06pm UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/12 "2019-06-04T18:06:20Z")

</div>

Hi,  
Thank you very much for providing the log. After analyzing the log, we found the issue:

During the initialization process, our SDK library will call the `LoadLibrary(_In_ LPCTSTR lpFileName)` API to load our modules. Based on the following info in the log:

```auto
[12112:6544:05-15/12:05:20.177:INFO:CmmModuleItem.cc(31)] [CCmmDynamicModule::LoadModule] for path: C:\Users\dell\Documents\Zoom\zoom-sdk-windows-master\sdk_demo\sdk_demo_v2\Release\zChatApp.dll

```

It seems like the method fails at loading the first module `zChatApp.dll`. Could you verify whether you have the `zChatApp.dll` file in the directory of your exe file?

Let me know if you have any other questions. Thanks!

---

<div class="post-metadata">

**Author:** ![meenatchi.sundareshw](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@meenatchi.sundareshw](https://devforum.zoom.us/u/meenatchi.sundareshw)\
**Post date:** [June 7, 2019, 4:35am UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/13 "2019-06-07T04:35:21Z")

</div>

Hi,  
I have put the zChatApp.dll in the path mentioned.  
But still I am getting the same error message.  
Thanks for your Analysis.  
Regards,  
Meenatchi Sundar M

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 10, 2019, 10:27pm UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/14 "2019-06-10T22:27:14Z")

</div>

Hi,  
Just wanted to confirm one more thing, in your original post you mentioned you are using the C# wrapper demo, but the screenshot you provided is from the Windows SDK demo. We have a Windows SDK and a C# wrapper, both of them provides demo:

- Windows SDK: [https://github.com/zoom/zoom-sdk-windows](https://github.com/zoom/zoom-sdk-windows)
- C# wrapper: [https://github.com/zoom/zoom-c-sharp-wrapper](https://github.com/zoom/zoom-c-sharp-wrapper)  
These 2 have different setup/configuration process:
- Windows SDK: [https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started/prerequisites](https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started/prerequisites)
- C# wrapper: [https://marketplace.zoom.us/docs/sdk/native-sdks/windows/c-sharp-wrapper](https://marketplace.zoom.us/docs/sdk/native-sdks/windows/c-sharp-wrapper)

Could you double check if your installation is correct and see if it helps?  
Let me know if you have any questions. Thanks!

---

<div class="post-metadata">

**Author:** ![meenatchi.sundareshw](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@meenatchi.sundareshw](https://devforum.zoom.us/u/meenatchi.sundareshw)\
**Post date:** [June 11, 2019, 6:14am UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/15 "2019-06-11T06:14:55Z")

</div>

Hi,  
I have used windows SDK only.  
Thanks,  
Meenatchi Sundar M

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 12, 2019, 2:31am UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/16 "2019-06-12T02:31:54Z")

</div>

Hi Meenatchi,

Thanks for your reply. For the issue you are facing, would you mind following the doc([https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started/prerequisites](https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started/prerequisites)), download the demo app, follow the steps, and try it again? We tried several times to reproduce the same error that you are facing but unfortunately, we are not able to reproduce it. Maybe the issue will disappear if you follow the steps in the doc and try again.

Please note that:

1. If you are using VS2015, please open the `sdk_demo_v2_2015.sln`; If you are using VS2017, please open the `sdk_demo_v2_2017.sln`; ([https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started/install-sdk#3-load-the-project](https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started/install-sdk#3-load-the-project))
2. Please configure the build configuration to be `32 bit & release`
3. The `.exe` file built from the project needs to place under the `\bin` folder of the SDK root directory.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![meenatchi.sundareshw](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@meenatchi.sundareshw](https://devforum.zoom.us/u/meenatchi.sundareshw)\
**Post date:** [June 14, 2019, 7:12am UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/17 "2019-06-14T07:12:19Z")

</div>

it worked. Thanks a lot.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 14, 2019, 4:56pm UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/18 "2019-06-14T16:56:50Z")

</div>

Hi,  
Glad to hear that everything is working right now. Please let me know if you have any other questions. Happy Zooming! 🙂

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 6:28pm UTC](https://devforum.zoom.us/t/throwing-error-in-clicking-setdomain-button-in-the-first-page/4261/19 "2020-08-21T18:28:25Z")

</div>

Closed on August 21, 2020, 6:28pm UTC


