Page 1 of 1

.NET Samples Start failure

PostPosted: Tue Oct 26, 2010 11:34 am
by Andrey
I have installed InicoreDev and started c# samples with VS 2010.
It builds everything well but when I start any project it fails with error

System.BadImageFormatException was unhandled
Message=Could not load file or assembly 'gehtsoft.indicore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc38e0f7455fc478' or one of its dependencies. An attempt was made to load a program with an incorrect format.

I tryed to change Framework from 2.0 to 3.5 and 4.0 with the same result.
I have 64-bit Windows 7

Any help?

Re: .NET Samples Start failure

PostPosted: Tue Oct 26, 2010 4:22 pm
by Nikolay.Gekht
I apologize for inconvenience. Please change target platform from AnyCPU to x86.

shot.png


The problem is that Indicore is 32-bit code. When you run AnyCPU-targeted example on 64-bit OS, the 64-bit runtime is used. This runtime cannot interoperate with 32-bit code. If you run x86-targeted example, the 32-bit runtime will be used even on 64-bit OS.

We will fix the project settings and re-upload SDK promptly.

Re: .NET Samples Start failure

PostPosted: Tue Oct 26, 2010 6:13 pm
by vstrelnikov
IndicoreDev.exe is re-uploaded.

Re: .NET Samples Start failure

PostPosted: Sun Oct 31, 2010 7:48 am
by Andrey
New indicoreDev downloaded. It works perfectly now with platform target x86. Thank you, guys.

Re: .NET Samples Start failure

PostPosted: Fri Dec 12, 2014 2:18 am
by Valeria
Hi sajjad123,

Unfortunately, you cannot get EUR/USD rates using Indicore Development Kit. Please use ForexConnect.

Or how do I reach MarketScope from c#?

Could you please clarify, why you would like to reach Marketscope?