-1

For debugging purposes, I have created a new C# console project and I have referenced an existing service in the console project so that i call a async Task method from the service and debug it. But when i run the Console Project, I am running into issues and exception is

An unhandled exception of type 'System.BadImageFormatException' occurred in Unknown Module. Additional information: Could not load file or assembly 'RingCentralArchiver, 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.

exception screenshot

enter image description here

James Z
  • 12,209
  • 10
  • 24
  • 44
VamKris
  • 25
  • 4
  • Please confirm that RingCentralArchiver is a x64 assembly – Peter Bons Sep 09 '22 at 20:47
  • @PeterBons Yes it is x64. what i did is - on the Console project which i created i have set to x64 which fixed the issue. Thanks for the inputs. – VamKris Sep 09 '22 at 21:29
  • Glad that you have fixed your issue. kindly post your fix as an answer so that it will helpful for other members who can encounter the same problem. – Imran Sep 13 '22 at 04:17

1 Answers1

-1

@PeterBons Yes it is x64. what i did is - on the Console project which i created i have set to x64 which fixed the issue.

Thanks for the inputs.

VamKris
  • 25
  • 4