I can't compile a standard “WCF Service Library” in x86 format

前端 未结 2 1268
夕颜
夕颜 2020-12-09 05:48

If I start up Microsoft Visual Studio, create a standard \"WCF Service Library\", and compile it, it works perfectly.

However, if I go into Properties..Build and set

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-09 06:51

    I found two good methods to solve this:

    1. Installing the 64-bit version of Matlab means you can compile 64-bit .dll's which are compatible with the 64-bit WCF Service Library. This removes the need to compile in 32-bit mode so it doesn't throw exceptions when it calls the 32-bit assembly. This solution works well.
    2. There are two types of projects you can generate in MSVS 2010: "WCF Service Library" and "WCF Service Application". Although you cannot build and run a "WCF Service Library" in 32-bit mode (it only supports 64-bit), you can build and run a "WCF Service Application" in 32-bit mode.

提交回复
热议问题