CentroidAPI problem <resolved>

Make your own CNC Control Apps

Moderator: cnckeith

Post Reply
Gerral
Posts: 33
Joined: Fri Nov 22, 2024 4:25 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: B4107B77A373-0905248481
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

CentroidAPI problem <resolved>

Post by Gerral »

I was able build and run the CentroidAPI_CSharp_PowerFeed example with no problems.

I copied the pipeline class into my project and made sure all the references were installed and copied the code from his form to mine however when I attempt to run it bombs on CNCPipeManager = new PipeManager(); with the following error:

System.BadImageFormatException
HResult=0x8007000B
Message=Could not load file or assembly 'CentroidAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.

I have a new install of CNC12 and I've removed and re-added the references and still the same issue.

Any help will be greatly appreciated


Gerral
Posts: 33
Joined: Fri Nov 22, 2024 4:25 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: B4107B77A373-0905248481
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: CentroidAPI problem

Post by Gerral »

You can disregard this. The fix was changing the build from Any CPU to x64.


Post Reply