# C# Wrapper SDK Initialization Failed

**URL:** <https://devforum.zoom.us/t/c-wrapper-sdk-initialization-failed/46993>\
**Category:** Windows\
**Created:** [March 31, 2021, 8:53am UTC](https://devforum.zoom.us/t/c-wrapper-sdk-initialization-failed/46993 "2021-03-31T08:53:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oyunmadenihd2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/oyunmadenihd2/32/25324_2.png) [@oyunmadenihd2](https://devforum.zoom.us/u/oyunmadenihd2)\
**Post date:** [March 31, 2021, 8:53am UTC](https://devforum.zoom.us/t/c-wrapper-sdk-initialization-failed/46993/1 "2021-03-31T08:53:35Z")

</div>

I’m trying to run zoom\_sdk\_demo from c#  
This is my code i used Publish (x86),Debug (x86),Release (x86) but application says error “SDKERR\_UNINTIALİZE”  
I Coded My Application in C# Windows Forms (Release x86)  
My Code;  
this.Text = “Waiting…”;  
ZOOM\_SDK\_DOTNET\_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingParticipantsController().Add\_CB\_onUserLeft(OnUserLeft);  
ZOOM\_SDK\_DOTNET\_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingParticipantsController().Add\_CB\_onUserNameChanged(OnUsernameChanged);  
ZOOM\_SDK\_DOTNET\_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingParticipantsController().Add\_CB\_onUserJoin(OnUserJoin);

```
            ZOOM_SDK_DOTNET_WRAP.AuthContext param = new ZOOM_SDK_DOTNET_WRAP.AuthContext();

            var tokenHandler = new System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler();
            var now = DateTime.UtcNow;
            var apiSecret = "MY API SECRET KEY IN HERE";
            byte[] symmetricKey = Encoding.ASCII.GetBytes(apiSecret);

            var tokenDescriptor = new SecurityTokenDescriptor
            {
                Issuer = "MY API KEY IN HERE",
                Expires = now.AddDays(1),
                SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(symmetricKey), SecurityAlgorithms.HmacSha256),
            };
            var token = tokenHandler.CreateToken(tokenDescriptor);

            var tokenString = tokenHandler.WriteToken(token);
            param.jwt_token = tokenString;
            ZOOM_SDK_DOTNET_WRAP.SDKError f = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth(param);
           
            //Hide();
            if(f == ZOOM_SDK_DOTNET_WRAP.SDKError.SDKERR_SUCCESS)
            {
                this.Text = "No Error Very Good";
            }
            else
            {
                this.Text = f.ToString();
            }
```

---

<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:** [April 5, 2021, 9:44pm UTC](https://devforum.zoom.us/t/c-wrapper-sdk-initialization-failed/46993/2 "2021-04-05T21:44:09Z")

</div>

Hey @oyunmadenihd2,

Thanks for using the dev forum!

It looks like you have the correct configuration, but just to cover all the bases, the SDK needs to be run in release mode. It looks like the JWT creation is causing issues. Can you try creating a JWT at [jwt.io](http://jwt.io) then hardcoding it into your app to confirm?

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:** [May 6, 2021, 7:44am UTC](https://devforum.zoom.us/t/c-wrapper-sdk-initialization-failed/46993/3 "2021-05-06T07:44:45Z")

</div>

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