# Windows C# wrapper demo does nothing after entering token and clicking Auth

**URL:** <https://devforum.zoom.us/t/windows-c-wrapper-demo-does-nothing-after-entering-token-and-clicking-auth/84348>\
**Category:** Meeting SDK\
**Created:** [March 8, 2023, 5:12am UTC](https://devforum.zoom.us/t/windows-c-wrapper-demo-does-nothing-after-entering-token-and-clicking-auth/84348 "2023-03-08T05:12:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![obazuaye55](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/obazuaye55/32/46115_2.png) [@obazuaye55](https://devforum.zoom.us/u/obazuaye55)\
**Post date:** [March 8, 2023, 5:12am UTC](https://devforum.zoom.us/t/windows-c-wrapper-demo-does-nothing-after-entering-token-and-clicking-auth/84348/1 "2023-03-08T05:12:15Z")

</div>

i did look for an answer regarding this issue, [Windows SDK Demo dosn't work](https://devforum.zoom.us/t/windows-sdk-demo-dosnt-work/47617) and [Unable to Authenticate with JWT in Zoom C# SDK v5](https://devforum.zoom.us/t/unable-to-authenticate-with-jwt-in-zoom-c-sdk-v5/31710) where someone had this issue with a previous version, but the solution provided there didn’t do anything for me.  
i am running v5.13.10.13355 - LATEST.  
Any idea why this is happening ? i don’t see any errors

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [March 8, 2023, 8:18am UTC](https://devforum.zoom.us/t/windows-c-wrapper-demo-does-nothing-after-entering-token-and-clicking-auth/84348/2 "2023-03-08T08:18:09Z")

</div>

@obazuaye55 ,

Are you using x64 or the x86 version of the wrapper?

Here’s some common troubleshooting which might help you. I’ll also be listing the version of VS which i’m using

Visual Studio Community 2022

**Running X64**

- there is no need to copy any files, just open up the sdk\_demo\_v2 project
- make sure you have set the configuration to “release” and “x64”  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/6/86923c13b8d43cf18bf4efbac2fe325e6d8cc84c.png)

Let me know where you encounter an error, based on the screenshot of the C# project below

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/3/1321c2d27e2b7e51b7fc7e5272346148f91deca9.png)

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/8/0886876b4492069ba66892120ba070f930e48ee2.png)

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/1/e127cbf2a36fb8d259122ade36299db1bed155ec.png)

---

<div class="post-metadata">

**Author:** ![obazuaye55](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/obazuaye55/32/46115_2.png) [@obazuaye55](https://devforum.zoom.us/u/obazuaye55)\
**Post date:** [March 8, 2023, 8:30am UTC](https://devforum.zoom.us/t/windows-c-wrapper-demo-does-nothing-after-entering-token-and-clicking-auth/84348/3 "2023-03-08T08:30:16Z")

</div>

@chunsiong.zoom thanks, But firstly, my interface is different from what you show,

 ![Screenshot 2023-03-08 at 8.25.13 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/f/4f951698b445eb305303acca25280e9510373216.png)

so right now, i have this screen after following a trend that had a similar issue, i did made this edit

 ![Screenshot 2023-03-08 at 8.27.27 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/f/4f981c7a270fb6d67f68f6ceb24b6deb6510cfe6.png)

so with this now, i can get to the screen that asks for username, token and meeting id.

for username: i am just passing in my name i want to show up  
AccessToken: i created a JWT in zoom and i am passing in the JWT token from the credentials.  
meeting number: this is a meeting i am on and got the number of the meeting id and passing it in there.

however, when i click join, nothing happens, i remain in same page, so also when i click join, i remain in same page

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [March 8, 2023, 9:01am UTC](https://devforum.zoom.us/t/windows-c-wrapper-demo-does-nothing-after-entering-token-and-clicking-auth/84348/4 "2023-03-08T09:01:59Z")

</div>

I’ve tried the x86 c# wrapper.

This is the join meeting.  
When joining a meeting, you might want to leave the accessToken blank.  
AccessToken (or ZAK) it needed if you wish to start a meeting as a host.

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/7/c73ebd360106eb915f6dabaf94cc929e77f2ba96.png)

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/7/c7bb534e29214c50186eec408f17541b4c80f845.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/a/fa7d355415ed60464408f094013420a574b75667.jpeg)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/0/50c1dc03dcd20325036dd5448f5a5740f1716831.jpeg)

---

<div class="post-metadata">

**Author:** ![obazuaye55](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/obazuaye55/32/46115_2.png) [@obazuaye55](https://devforum.zoom.us/u/obazuaye55)\
**Post date:** [March 8, 2023, 9:31am UTC](https://devforum.zoom.us/t/windows-c-wrapper-demo-does-nothing-after-entering-token-and-clicking-auth/84348/5 "2023-03-08T09:31:09Z")

</div>

Thanks for explaining the use of the token, i have excluded it now, but still it does nothing when i click on the join. i don’t get any error, i just remain on the page, if possible can you send your start\_join\_meeting.xaml.cs  
code so i can replace mine with?  
i don’t know if it’s an issue from there, just like how i made changes to the to the Auth back at the beginning

 ![Screenshot 2023-03-08 at 9.31.55 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/5/7564b0dad2699fd66399908c5e5fa4e9598bd89f.png)

this is a screen shot of my join handler

when i console write on the error, it seems that’s where it’s hitting. don’t know why it errors out

this is the err message “SDKERR\_UNAUTHENTICATION”

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [March 8, 2023, 10:36am UTC](https://devforum.zoom.us/t/windows-c-wrapper-demo-does-nothing-after-entering-token-and-clicking-auth/84348/6 "2023-03-08T10:36:39Z")

</div>

@obazuaye55 , this is base on the sample code.

```auto
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.ComponentModel; // CancelEventArgs
using ZOOM_SDK_DOTNET_WRAP;

namespace zoom_sdk_demo
{
    /// <summary>
    /// Interaction logic for start_join_meeting.xaml
    /// </summary>
    public partial class start_join_meeting : Window
    {
        public start_join_meeting()
        {
            InitializeComponent();
        }

        //ZOOM_SDK_DOTNET_WRAP.onMeetingStatusChanged
        public void onMeetingStatusChanged(MeetingStatus status, int iResult)
        {
            switch(status)
            {
                case ZOOM_SDK_DOTNET_WRAP.MeetingStatus.MEETING_STATUS_ENDED:
                case ZOOM_SDK_DOTNET_WRAP.MeetingStatus.MEETING_STATUS_FAILED:
                    {
                        Show();
                    }
                    break;
                default://todo
                    break;
            }
        }

        public void onUserJoin(Array lstUserID)
        {
            if (null == (Object)lstUserID)
                return;

            for (int i = lstUserID.GetLowerBound(0); i <= lstUserID.GetUpperBound(0); i++)
            {
                UInt32 userid = (UInt32)lstUserID.GetValue(i);
                ZOOM_SDK_DOTNET_WRAP.IUserInfoDotNetWrap user = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().
                    GetMeetingParticipantsController().GetUserByUserID(userid);
                if (null != (Object)user)
                {
                    string name = user.GetUserNameW();
                    Console.Write(name);
                }
            }
        }
        public void onUserLeft(Array lstUserID)
        {
            //todo
        }
        public void onHostChangeNotification(UInt32 userId)
        {
            //todo
        }
        public void onLowOrRaiseHandStatusChanged(bool bLow, UInt32 userid)
        {
            //todo
        }
        public void onUserNamesChanged(Array lstUserID)
        {
            //todo
        }
        private void RegisterCallBack()
        {
            ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().Add_CB_onMeetingStatusChanged(onMeetingStatusChanged);
            ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().
                GetMeetingParticipantsController().Add_CB_onHostChangeNotification(onHostChangeNotification);
            ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().
                GetMeetingParticipantsController().Add_CB_onLowOrRaiseHandStatusChanged(onLowOrRaiseHandStatusChanged);
            ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().
                GetMeetingParticipantsController().Add_CB_onUserJoin(onUserJoin);
            ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().
                GetMeetingParticipantsController().Add_CB_onUserLeft(onUserLeft);
            ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().
                GetMeetingParticipantsController().Add_CB_onUserNamesChanged(onUserNamesChanged);
        }
        private void button_start_api_Click(object sender, RoutedEventArgs e)
        {
            RegisterCallBack();
            ZOOM_SDK_DOTNET_WRAP.StartParam param = new ZOOM_SDK_DOTNET_WRAP.StartParam();
            param.userType = ZOOM_SDK_DOTNET_WRAP.SDKUserType.SDK_UT_WITHOUT_LOGIN;
            ZOOM_SDK_DOTNET_WRAP.StartParam4WithoutLogin start_withoutlogin_param = new ZOOM_SDK_DOTNET_WRAP.StartParam4WithoutLogin();
            start_withoutlogin_param.meetingNumber = UInt64.Parse(textBox_meetingnumber_api.Text);
            start_withoutlogin_param.userZAK = textBox_AccessToken.Text;
            start_withoutlogin_param.userName = textBox_username_api.Text;
            start_withoutlogin_param.zoomuserType = ZOOM_SDK_DOTNET_WRAP.ZoomUserType.ZoomUserType_APIUSER;
            param.withoutloginStart = start_withoutlogin_param;

            ZOOM_SDK_DOTNET_WRAP.SDKError err = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().Start(param);
            if (ZOOM_SDK_DOTNET_WRAP.SDKError.SDKERR_SUCCESS == err)
            {
                Hide();
            }
            else//error handle
            { }

        }

        private void button_join_api_Click(object sender, RoutedEventArgs e)
        {
            RegisterCallBack();
            ZOOM_SDK_DOTNET_WRAP.JoinParam param = new ZOOM_SDK_DOTNET_WRAP.JoinParam();
            param.userType = ZOOM_SDK_DOTNET_WRAP.SDKUserType.SDK_UT_WITHOUT_LOGIN;
            ZOOM_SDK_DOTNET_WRAP.JoinParam4WithoutLogin join_api_param = new ZOOM_SDK_DOTNET_WRAP.JoinParam4WithoutLogin();
            join_api_param.meetingNumber = UInt64.Parse(textBox_meetingnumber_api.Text);
            join_api_param.userName = textBox_username_api.Text;
            param.withoutloginJoin = join_api_param;

            ZOOM_SDK_DOTNET_WRAP.SDKError err = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().Join(param);
            if (ZOOM_SDK_DOTNET_WRAP.SDKError.SDKERR_SUCCESS == err)
            {
                Hide();
            }
            else//error handle
            { }
        }

        void Wnd_Closing(object sender, CancelEventArgs e)
        {
            System.Windows.Application.Current.Shutdown();
        }
    }
}

```

---

<div class="post-metadata">

**Author:** ![obazuaye55](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/obazuaye55/32/46115_2.png) [@obazuaye55](https://devforum.zoom.us/u/obazuaye55)\
**Post date:** [March 8, 2023, 1:40pm UTC](https://devforum.zoom.us/t/windows-c-wrapper-demo-does-nothing-after-entering-token-and-clicking-auth/84348/7 "2023-03-08T13:40:01Z")

</div>

thanks @chunsiong.zoom, still didn’t work. i changed the program from windows to console so i can see feedback, i logged the else and i am getting the “SDKERR\_UNAUTHENTICATION” any idea why ??  
does this have to do with my jwt or something else ?

probably has to with the changes i made

```auto
public void onAuthenticationReturn(AuthResult ret)
        {
            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)
            {
                start_meeting_wnd.Show();
            }
            else//error handle.todo
            {
                Show();
            }
        }

```

---

<div class="post-metadata">

**Author:** ![obazuaye55](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/obazuaye55/32/46115_2.png) [@obazuaye55](https://devforum.zoom.us/u/obazuaye55)\
**Post date:** [March 8, 2023, 1:49pm UTC](https://devforum.zoom.us/t/windows-c-wrapper-demo-does-nothing-after-entering-token-and-clicking-auth/84348/8 "2023-03-08T13:49:24Z")

</div>

just to be sure i did the right step my jwt for auth. i used [https://jwt.io/](https://jwt.io/)  
this is my pay load  
{  
“appKey”: – this app key was gotten from the credentials on my Zoom JWT APP ,  
“iat”: 1678425674,  
“exp”: 1678425674,  
“tokenExp”: 1678425674  
}

this is correct right ?

this is my Mainwindows

```auto
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.ComponentModel; // CancelEventArgs
using ZOOM_SDK_DOTNET_WRAP;

namespace zoom_sdk_demo
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        start_join_meeting start_meeting_wnd = new start_join_meeting();
        public MainWindow()
        {
            InitializeComponent(); 
        }

        //callback
        public void onAuthenticationReturn(AuthResult ret)
        {
          // 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.AuthResult.AUTHRET_SUCCESS == ret)
            {
                Console.WriteLine("this is the if statement " + ret);
                start_meeting_wnd.Show();
            }
            else//error handle.todo
            {
                Console.WriteLine("this is the else statement " + ret);
                Show();
            }
        }
        public void onLoginRet(LOGINSTATUS ret, IAccountInfo pAccountInfo, LOGINFAILREASON reason)
        {
            //todo
        }
        public void onLogout()
        {
            //todo
        }
        private void button_auth_Click(object sender, RoutedEventArgs e)
        {
            //register callback
            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.AuthContext param = new ZOOM_SDK_DOTNET_WRAP.AuthContext();
            param.jwt_token = textBox_apptoken.Text;
            ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth(param);
            Hide();
        }

        void Wnd_Closing(object sender, CancelEventArgs e)
        {
            System.Windows.Application.Current.Shutdown();
        }
    }
}

```

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [March 9, 2023, 1:54am UTC](https://devforum.zoom.us/t/windows-c-wrapper-demo-does-nothing-after-entering-token-and-clicking-auth/84348/9 "2023-03-09T01:54:38Z")

</div>

@obazuaye55 ,

appKey is from Meeting SDK App Type, not Zoom JWT App

this might possibly be the reason why you are encountering an issue while joining.
