Last post Dec 19, 2016 06:30 AM by Chris Zhao
Dec 17, 2016 09:55 PM|williamj7|LINK
I cannot consume a WCF Service Library.
Add Service Reference->Discover for the solution states:
Could not load file or assembly 'file:///E:\Users\William Johnston\Documents\Visual Studio 2010\Projects\Visual Studio Projects\GeorgeAffectiveTest\WcfServiceLibrary1\bin\x64\Debug\WcfServiceLibrary1.dll' or one of its dependencies. An attempt was made to
load a program with an incorrect format.
The solution is x64.
The WCF Web Service Library project is the standard VS project.
I also used the base address form the app.config file:
and received the same error.
Dec 19, 2016 06:30 AM|Chris Zhao|LINK
Check if you are referencing an assembly which in turn referencing an old version of WCF Service library. Try to clean Debug and Release folders in your solution. Then remove and add library again.