question

Upvotes
Accepted
46 5 6 10

.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-apipythonworkspacerefinitiv-dataplatform-eikonworkspace-data-apidatainitialization
icon clock
10 |1500

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

Upvote
Accepted
39.4k 78 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 512.0 KiB each and 1.0 MiB total.

Upvotes
46 5 6 10

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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