For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
46 3 5 9

.NET API: Can't create an instance of the Dataservices object taking my app name as initialization parameter

Hello,

*** Sorry in advance for the triviality of this quesiton***

I keep getting the System.BadImageFormatException error when trying to create an instance of the Dataservices object taking my app name as initialization parameter in the .NET API reference data examples (see dowloads in the .NET API for use in custom applications). What should I write in the "appname" field in order to make it work ?

Thanks!

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythondatainitialization
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvote
Accepted
39.2k 75 11 27

The appname can be any string. The reason for the exception you saw must be the mismatch between the bitness of your process and that of Eikon .NET SDK. If you compile your application into 64-bit process make sure you download 64-bit Eikon .NET SDK. Conversely if your application is 32-bit make sure to use 32-bit Eikon .NET SDK.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
46 3 5 9

Ok great I understand the problem thanks a lot for your answer!

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea