I’m trying to test a project that I’ve taken over by launching it with IIS Express(Google Chrome), but I get a webpage with the following error:
Could not load file or assembly ‘FCCNetClientProxy40’ or one of its dependencies. An attempt was made to load a program with an incorrect format
The project is using .NET Framework 4.7.2
and the Platform Target is set to Any CPU
. Opening the Configuration Manager shows the platform is also set to Any CPU
.
The first step I took was to verify that FCCNetClientProxy40.dll
was listed under References in my project. Which it was.
Next, I used dumpbin.exe to determine the dependencies of FCCNetClientProxy40.dll
and found those files throughout my computer and added them to the bin
directory of my project.
I am still getting the error at this point, so I tried launching the project from Visual Studio 2019 instead of 2022, and the file that couldn’t be loaded is now FCCNetClientProxy4064.dll
. I again used dumpbin.exe to determine the dependencies of this file and they were the same as what I determined for FCCNetClientProxy40.dll
.
I’m honestly stumped at this point as I know both files and their dependencies are sitting in the bin
directory of the project, but the program is still being loaded in an incorrect format.
Would adding these dependencies under References in my project make a difference? Any help would be greatly appreciated!