Could not load file or assembly or one of its dependencies. An attempt was made to load a program with an incorrect format.

Jul 13, 2011 at 9:13 AM

Hi,

I'm trying to loadtest my WCF services.

I have followed lab3.

My code is in VS2010 with .Net 4.0

I have also converted the WCFUnit source to VS2020 & .Net 4.0 & compile the project again to create WCFUnit.exe for .net 4.0

When executing the command line wcfunit  I get following error.

Could not load file or assembly or one of its dependencies. An attempt was made to load a program with an incorrect format.

Coordinator
Jul 13, 2011 at 10:52 AM

It looks like you have a mix of .NET Framework versions, possibly you have a .NET 3.x assembly trying to load a .NET 4.0 assembly.

Regards

Rob