使用搜索功能查看 Kepware 的信息库,其中包含 500 多篇知识库文章。缩小搜索结果范围,或在下面的搜索字段中输入您的查询。

或者,如果您无法找到解决方案,我们还有另一个资源:我们的 PTC eSupport Portal。 如果系统提示您登录 eSupport Portal,您可以使用“我的 Kepware”凭据。需要一个“我的 Kepware”帐户吗?在此处创建

搜索解决方案结果:
View All Solutions

Kepware Knowledge Base: Solution


Can ClientAce Be Used with Visual Studio 2010 and the .Net 4.0 Framework?


Last Update: 2018/11/12

Yes, it can. ClientAce version 4.0 binaries target the .NET 4.0 or 4.5 Framework, and can be used in any Visual Studio 2010 or higher project. Because ClientAce version 3.5 binaries target the .Net 3.5 Framework, the easiest way to use it in Visual Studio 2010 is to set the target .Net Framework to .Net 3.5.

Because ClientAce version 3.5 may need to be used in projects whose components require .Net 4.0 support, it can be configured to use .Net 4.0 for all components except the ClientAce DA Junction. For more information, refer to the instructions below.

  1. To start, add an Application Configuration file by right-clicking on the project in Solution Explorer and selecting Add | New Item.
  2. Locate the Application Configuration file beneath General, and then add the following code:<?xml version="1.0" encoding="utf-8" ?> <configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v2.0"/> <supportedRuntime version="v4.0"/> </startup> </configuration>
  3. Next, set the target .Net Framework to .Net Framework 4 Client Profile.
    • In C#, the target is located in Project Properties | Application.
    • In VB.Net, the target is located in Project Properties | Compile | Advanced Compile Options.
  4. Once finished, either compile the project or run it in Debug Mode.

    Note: The project should run without any problems. Users that attempt to utilize the ClientAce DA Junction in the project will receive the following error at compilation: "Type 'Kepware.ClientAce.DA_Junction.ClientAceDA_Junction' is not defined."

See Also: C# Example Code and VB.Net Example Code.

Related Products
ClientAce