KageDev
Member
Hello,
I am trying to connect to the Alibre API using the Getting Started tab as reference. I have tried running the program a couple different ways but both come up with errors. I've tried building and starting the program through Visual Studio and come up with this error:
System.BadImageFormatException
HResult=0x8007000B
Message=Could not load file or assembly 'AlibreX, 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.
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
I've also tried using dotnet run to start the program but come up with this error:
C:\Program Files\dotnet\sdk\6.0.417\Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "AlibreX", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align
the processor architectures between your project and references, or take a dependency on references with a processor architecture the processor architectures between your project and references, or take a dependency
that matches the targeted processor architecture of your project.
I've tried looking through the forums and couldn't find a post with a solution.
I am trying to connect to the Alibre API using the Getting Started tab as reference. I have tried running the program a couple different ways but both come up with errors. I've tried building and starting the program through Visual Studio and come up with this error:
System.BadImageFormatException
HResult=0x8007000B
Message=Could not load file or assembly 'AlibreX, 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.
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
I've also tried using dotnet run to start the program but come up with this error:
C:\Program Files\dotnet\sdk\6.0.417\Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "AlibreX", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align
the processor architectures between your project and references, or take a dependency on references with a processor architecture the processor architectures between your project and references, or take a dependency
that matches the targeted processor architecture of your project.
I've tried looking through the forums and couldn't find a post with a solution.