Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 12:00 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed May 27, 2015 2:58 pm 
Offline

Joined: Wed May 27, 2015 2:43 pm
Posts: 2
I am trying to use the c# libraries on an ASP.NET webform and using the sample code of

YubicoClient client = new YubicoClient(clientId, apiKey);
YubicoResponse response = client.Verify(otp);

I get the following error

Error 1 Cannot implicitly convert type 'YubicoDotNetClient.IYubicoResponse' to 'YubicoDotNetClient.YubicoResponse'. An explicit conversion exists (are you missing a cast?)


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Wed May 27, 2015 3:21 pm 
Offline
Yubico Team
Yubico Team

Joined: Wed Aug 06, 2014 2:40 pm
Posts: 38
Seems like the example in the documentation has a typo. Try this instead:

Code:
IYubicoResponse response = client.Verify(otp);


Top
 Profile  
Reply with quote  
PostPosted: Wed May 27, 2015 3:34 pm 
Offline

Joined: Wed May 27, 2015 2:43 pm
Posts: 2
Thanks so much, that worked.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group