.NET Samples Start failure

Use all the fxcodebase indicator in your application!

Moderator: admin

.NET Samples Start failure

Postby Andrey » Tue Oct 26, 2010 11:34 am

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?
Andrey
 
Posts: 2
Joined: Tue Oct 26, 2010 11:16 am

Re: .NET Samples Start failure

Postby Nikolay.Gekht » Tue Oct 26, 2010 4:22 pm

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.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: .NET Samples Start failure

Postby vstrelnikov » Tue Oct 26, 2010 6:13 pm

IndicoreDev.exe is re-uploaded.
vstrelnikov
 
Posts: 59
Joined: Tue Jul 06, 2010 8:31 pm

Re: .NET Samples Start failure

Postby Andrey » Sun Oct 31, 2010 7:48 am

New indicoreDev downloaded. It works perfectly now with platform target x86. Thank you, guys.
Andrey
 
Posts: 2
Joined: Tue Oct 26, 2010 11:16 am

Re: .NET Samples Start failure

Postby Valeria » Fri Dec 12, 2014 2:18 am

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?
Valeria
 


Return to C++/.NET API

Who is online

Users browsing this forum: No registered users and 3 guests