Yubico Forum

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

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sat Mar 15, 2014 12:21 am 
Offline

Joined: Sat Mar 15, 2014 12:15 am
Posts: 1
How can I use the YubiClientAPI in a C# / .NET 3.5 application?

If I create an Interop Assembly with Visual Studio 2013, It doesn't work with .NET runtime 3.5. It does work with a .NET runtime 4.
I get the following error with .NET 3.5:

A first chance exception of type 'System.BadImageFormatException' occurred
An unhandled exception of type 'System.BadImageFormatException' occurred
Additional information: Can't load file or assembly Interop.YubiClientAPILib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31a1c8b81d57ef57 or one of its dependencies.
This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Do I need to create an Interop Assembly?
If yes how can I make it compatible with .NET 3.5?
Why doesn't Yubico provide the Interop Assembly?

I tried to create the Interop Assembly manually with tlbimp but that fails:

c:\Tools\Yubico-32bit>tlbimp YubiClientAPI.dll
Microsoft (R) .NET Framework Type Library to Assembly Converter 3.5.30729.1
Copyright (C) Microsoft Corporation. All rights reserved.

TlbImp : error TI0000 : The input file 'c:\Tools\Yubico-32bit\YubiClientAPI.dll' is not a valid type library.

Thanks a lot.


Top
 Profile  
Reply with quote  

Share On:

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

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 14 guests


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