I have a C # WinForms project that contains some WCF service definition files that I created in the project, adding standard classes (without using Add Item> WCF Service).
The project contains some dependencies that require me to create a project for x86 processors.
If I edit the app.config file using the WCF service configuration editor and try to use the "Create a new service ..." wizard, and then go to the project's EXE file (in the debug folder), I get an error message (which I read, because I am aiming for x86 processor):
Could not load file or assembly 'EXE_FILE_NAME' or one of its dependencies. An attempt was made to load a program with an incorrect format.
So, changing the target to all the CPUs, compiling the project again, and then again try to create the service in the WCF configuration editor, now I get another error:
Could not load file or assembly 'SOLUTION_NAME, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
(To clarify, I CAN still compile the project when setting up all the CPUs, but get a runtime error due to dependency)
Did anyone help me with this problem, so I can add the services defined in the app.config file using the wizards in the WCF configuration editor? (I think that if I add services to the WCF Service Configuration Editor when targeting all CPUs, I can make any changes after that, regardless of purpose)
source share