It looks like you're new here. If you want to get involved, click one of these buttons!
private void Form1_Load(object sender, EventArgs e)
{
kite = new Kite(MyAPIKey, Debug: false);
wb1.Navigate(kite.GetLoginURL());
}
private void wb1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
string resurl= e.Url.AbsoluteUri;
if (resurl.Contains("127.0.0.1"))
{
string RequestToken= resurl.Split(new char[] { '&' })[1].Split(new char[] { '=' })[1];
User user = kite.RequestAccessToken(RequestToken, MySecret);
/* Error Occuring here as like this
An exception of type 'KiteConnect.ParseException' occurred in KiteConnect.dll but was not handled in user code
*/
string MyAccessToken = user.AccessToken;
string MyPublicToken = user.PublicToken;
}
}
Did you try to print request token? Probably this happens due to wrong data.
You can also try to catch the exception and log response data in the console like this: You can use this function to print it to debug console.