# Windows SDK Demo FAIL in VS2019 (& 17)

**URL:** <https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193>\
**Category:** Windows\
**Created:** [July 4, 2020, 3:25pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193 "2020-07-04T15:25:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![treyc](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@treyc](https://devforum.zoom.us/u/treyc)\
**Post date:** [July 4, 2020, 3:25pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/1 "2020-07-04T15:25:12Z")

</div>

**Description**  
Windows SDK Demo fails build in VS2019.

What am I missing?

**Which version?**  
v5.0.24433.0616  
sdk\_demo\_v2\_2017

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

1. Download and unzip demo SDK master (also attempted Git clone)
2. Open sdk\_demo\_v2\_2017.sln solution with VS2019
3. Confirm retarget project window (see screenshot)
4. Set Local Windows Debugger options to ‘Release’ and ‘x86’
5. Fail (see below build output in screenshot)  
…
6. Repeat steps 1-3 above, but also make changes 1-4 from …/getting-started/install-sdk
7. Fail again (same)

**Screenshots**

 ![zoom_sdk_fail](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8685c43908039740c6a7fc260e0a95e964320a85.png)

**Additional context**  
Also tried to build in VS2017 with same zoomHmacSHA256.cpp source error outcome.

---

<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:** [July 10, 2020, 7:46am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/2 "2020-07-10T07:46:13Z")

</div>

Hi @treyc,

Thanks for the post. We have removed the following 4 files in the demo app since they are not being used:

- zoomHmacSHA256.h
- zoomHmacSHA256.cpp
- HttpRequestHelper.h
- HttpRequestHelper.cpp

However, somehow the links to the above 4 files still exist in `sdk_demo_v2_2015.sln` and `sdk_demo_v2_2017.sln`. Please try to remove the reference to the above 4 files and then it should work.

Thanks!

---

<div class="post-metadata">

**Author:** ![msides](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@msides](https://devforum.zoom.us/u/msides)\
**Post date:** [July 10, 2020, 8:43pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/3 "2020-07-10T20:43:44Z")

</div>

Having the same problem. Can’t find an references to those files. How do we find them?

---

<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:** [July 16, 2020, 7:58am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/4 "2020-07-16T07:58:33Z")

</div>

Hi @msides,

We have updated the Windows SDK demo app for this issue. Please download the latest version of Windows SDK and try again: [https://github.com/zoom/zoom-sdk-windows](https://github.com/zoom/zoom-sdk-windows)

Thanks!

---

<div class="post-metadata">

**Author:** ![msides](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@msides](https://devforum.zoom.us/u/msides)\
**Post date:** [July 16, 2020, 1:46pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/5 "2020-07-16T13:46:47Z")

</div>

Thanks, It compiles and runs now.

One further question if I may:

When it runs, I enter our domain, then get this prompt: What am I supposed to enter here? I followed the instructions and I started an App and got as toke, but it doesn’t work. Thanks so much.

![image001.png](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/4/4aaf47ef78b44cf13d83db5b5e098b8f4b85f724.png)

---

<div class="post-metadata">

**Author:** ![nick\_ortega](https://avatars.discourse-cdn.com/v4/letter/n/c6cbf5/32.png) [@nick\_ortega](https://devforum.zoom.us/u/nick_ortega)\
**Post date:** [July 17, 2020, 4:41pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/6 "2020-07-17T16:41:29Z")

</div>

msides, this is the issue I was actually having. Glad to see I’m not going crazy. Reverting to the previous official version (two commits ago in git), there are two boxes, one for token and the other for secret (sdk or jwt).

---

<div class="post-metadata">

**Author:** ![nick\_ortega](https://avatars.discourse-cdn.com/v4/letter/n/c6cbf5/32.png) [@nick\_ortega](https://devforum.zoom.us/u/nick_ortega)\
**Post date:** [July 17, 2020, 5:04pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/7 "2020-07-17T17:04:10Z")

</div>

Now that I’ve done a bit more testing, I’ll elaborate:

I have built the demo application using vs 2015 and 2017. Both successfully compile the code and produce a .exe file. When run, both will produce the panel pictured in msides last reply after entering the domain. No combination of keys and tokens (sdk or jwt; key, secret, or token) can get me past that panel.

This is with the latest version (commit made 4 days ago).

When I revert the last two commits, I instead get this:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/9/965e73c7639ebbcd5a9b388561207703c5a87b0b.png)  
This works with my sdk credentials, but checking the “Auth with JWT token” box doesn’t allow me to log on, though the boxes themselves change.

---

<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:** [July 18, 2020, 5:29am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/8 "2020-07-18T05:29:06Z")

</div>

Hi @msides,

Thanks for the reply. The JWT token here is a JWT token that is generated by SDK key/secret, not the JWT token that is generated directly from the Marketplace. Once you have the SDK key/secret, you may follow the instruction here to generate the JWT token: [https://github.com/zoom/zoom-sdk-windows/blob/master/CHANGELOG.md#new-sdk-initialization-method-using-jwt-token](https://github.com/zoom/zoom-sdk-windows/blob/master/CHANGELOG.md#new-sdk-initialization-method-using-jwt-token).

Hope this helps. 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:** [July 18, 2020, 5:31am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/9 "2020-07-18T05:31:57Z")

</div>

Hi @nick_ortega,

Thanks for the reply. We are trying to encourage people to use the JWT token that is generated from SDK key/secret instead of using the key/secret directly. We are working on enhancing the documentation to reflect this so it might be a little bit confusing right now. Please see my answer above for the instruction.

Thanks!

---

<div class="post-metadata">

**Author:** ![nick\_ortega](https://avatars.discourse-cdn.com/v4/letter/n/c6cbf5/32.png) [@nick\_ortega](https://devforum.zoom.us/u/nick_ortega)\
**Post date:** [July 20, 2020, 2:40pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/10 "2020-07-20T14:40:36Z")

</div>

Carson,

Thanks for the reply. From the GitHub changelog, I was able to generate a jwt token from the sdk key and secret, but I still get the “auth sdk failed” error panel. I’m not sure if I’m formatting the timestamps and “tokenExp” correctly. Are “exp” and “tokenExp” the same? Is there a specific format? I would guess ISO 8601 for the timestamps, but I still don’t know that “tokenExp” should be in that case.

Thanks,  
Nick

---

<div class="post-metadata">

**Author:** ![nick\_ortega](https://avatars.discourse-cdn.com/v4/letter/n/c6cbf5/32.png) [@nick\_ortega](https://devforum.zoom.us/u/nick_ortega)\
**Post date:** [July 22, 2020, 2:40pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/11 "2020-07-22T14:40:58Z")

</div>

@carson.zoom, thanks again for the help so far. I am generating jwt tokens from the sdk key/secret, but I still get errors. Now, the error panel that shows is seen below:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8c11eed18a0b3c1b783d10b2886219912dbaed48.png)  
I’ve looked through the documentation, and I can’t find error code 10124. Any ideas on this one?

---

<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:** [July 24, 2020, 5:43am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/12 "2020-07-24T05:43:00Z")

</div>

Hi @nick_ortega,

Thanks for the reply. The error code 10124 means “Unable to verify the token”. Could you provide an example of the payload of your JWT token?

Thanks!

---

<div class="post-metadata">

**Author:** ![nick\_ortega](https://avatars.discourse-cdn.com/v4/letter/n/c6cbf5/32.png) [@nick\_ortega](https://devforum.zoom.us/u/nick_ortega)\
**Post date:** [July 24, 2020, 12:00pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/13 "2020-07-24T12:00:17Z")

</div>

Carson, thanks so much for helping me with this. On another thread, I discovered the problem with my payload. Somewhere along the line, I switched “appKey” to just “key”. I now have it working.

---

<div class="post-metadata">

**Author:** ![anuragnagarkota](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anuragnagarkota/32/3217_2.png) [@anuragnagarkota](https://devforum.zoom.us/u/anuragnagarkota)\
**Post date:** [July 26, 2020, 9:22am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/14 "2020-07-26T09:22:27Z")

</div>

I am still getting the 10124 error. my payload is  
Hi @carson.zoom, @nick_ortega  
{  
“key”: “--------------------hidden-----------------------”,  
“iat”: 1595755181560,  
“exp”: 1595757009404,  
“tokenExp”: 1595757009404  
}

---

<div class="post-metadata">

**Author:** ![anuragnagarkota](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anuragnagarkota/32/3217_2.png) [@anuragnagarkota](https://devforum.zoom.us/u/anuragnagarkota)\
**Post date:** [July 26, 2020, 1:00pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/15 "2020-07-26T13:00:40Z")

</div>

@carson.zoom I found the solution in some other post. Its working now-

> [@Electron SDK error in function sdkauthCB Status 5](https://devforum.zoom.us/t/electron-sdk-error-in-function-sdkauthcb-status-5/24816/4):
>
> Sorry @carson.zoom, Finally I founded my error smile My first code had errors in TimeStamp. Now is working, the new code: const jwt = require("jsonwebtoken"); let dt = new Date(); let data = new Date(dt.getTime() + 30 \* 60000).getTime(); let iat = Math.floor(Date.now() / 1000); let exp = Math.floor(data / 1000); let tokenExpCreate = new Date(dt.getTime() + 60 \* 60000).getTime(); let tokenExp = Math.floor(tokenExpCreate / 1000); const payloadSDK = { appKey: "", iat: iat, exp: exp,…

---

<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:** [July 29, 2020, 6:37am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/16 "2020-07-29T06:37:08Z")

</div>

Hi @anuragnagarkota,

Thanks for the reply and glad to hear that the problem has been resolved.

Thanks!

---

<div class="post-metadata">

**Author:** ![danielle.ureta](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@danielle.ureta](https://devforum.zoom.us/u/danielle.ureta)\
**Post date:** [August 13, 2020, 12:51pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/17 "2020-08-13T12:51:47Z")

</div>

Hi,

I’d like to ask for help here as well. I’m trying to run the SDK demo on my own laptop and I’ve got it running without issue. But when I try to add the JWT token I generated, it returns an error saying “auth sdk failed”

This is the payload I’m using:

Header  
{  
“alg”: “HS256”,  
“typ”: “JWT”  
}

Payload  
{  
“appKey”: “…”,  
“iat”: 1516239022,  
“exp”: 1516239022,  
“tokenExp”: 1516239022  
}

Verify Signature  
HMACSHA256(  
base64UrlEncode(header) + “.” +  
base64UrlEncode(payload),

… …

)

Could someone help me find out how to make this work?

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:** [August 14, 2020, 4:36am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/18 "2020-08-14T04:36:54Z")

</div>

Hi @danielle.ureta,

Thanks for the reply. Based on your JWT payload, it seems like the `iat`, `exp`, and `tokenExp` are the same; The `iat` is the token issue time, and the `exp` will be the token expiration time so it needs to be larger than `iat`, and the `tokenExp` should be a timestamp that is at least 30 minutes from the `iat`. You may find more info here: [https://github.com/zoom/zoom-sdk-windows/blob/master/CHANGELOG.md#new-sdk-initialization-method-using-jwt-token](https://github.com/zoom/zoom-sdk-windows/blob/master/CHANGELOG.md#new-sdk-initialization-method-using-jwt-token)

Please have a try. Thanks!

---

<div class="post-metadata">

**Author:** ![username234234234](https://avatars.discourse-cdn.com/v4/letter/u/4af34b/32.png) [@username234234234](https://devforum.zoom.us/u/username234234234)\
**Post date:** [August 14, 2020, 6:11am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/19 "2020-08-14T06:11:33Z")

</div>

Hello,

I’m using the advised iat, exp and tokenExp times but keep getting error 10124. I should note that I’m manually setting these times at jwt. io .  
Is there a way to add this to the node js api ?

Thanks in advance

---

<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:** [August 15, 2020, 12:06am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/20 "2020-08-15T00:06:07Z")

</div>

Hi @username234234234,

Thanks for the reply. Are you using SDK key/secret to generate the JWT token? Could you provide another sample of the JWT payload? In the last sample of the JWT payload, the `iat`, `exp` and `tokenExp` are the same, which causing the error.

Thanks!

[Next page](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193.md?page=2)
