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

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

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

Kepware Knowledge Base: Solution


Creating a ClientAce Project That Will Run as a Service


Last Update: 2019/2/5

When creating a service application that will run under the system account (or in the background under a specified user), it is recommended that users do the following:

  • Develop the ClientAce project as a Console Application so that it can run on the desktop and be tested in Debug Mode.
  • Ensure that there are no pop-ups or User Interface interactions with the application. These will hang the process because there is no way to interact with the application when it is running as a service.
  • Disable Visual Studio Hosting, which allows the application to be debugged at Runtime. This makes the application run with the launching user's credentials: it cannot run as a service. For more information, refer to the instructions below.
    1. In the VB .Net or C# development environment, open the project's properties. Then, select the Debug tab.
    2. Next, locate Enable Debuggers and uncheck Enable the Visual Studio hosting process.
    3. Then, convert the Console Application to a Service Application and compile the project in Release Mode.

Note:
The Application Manifest can be modified to force application elevation when the Operating System on which it is running has User Access Control (UAC) enabled. For more information, refer to Creating a ClientAce Service Application.

Related Products
ClientAce