WCF COM+成分

发布于 2024-08-30 00:15:54 字数 150 浏览 3 评论 0原文

我有一个为 COM+ Enterprise Services 包装的 C# WCF 客户端。我在目标计算机上安装该组件并使用 regsvcs 将其放入组件服务中。

我的问题是,它会在哪里查找它的配置文件,因为它是在 dllhost 进程而不是常规 exe 进程下运行的?

I have a C# WCF client that is wrapped for COM+ Enterprise Services. I install the component on the target machine and use regsvcs to put it into Component services.

My question is, where will it look for it's configuration file, as it is running under the dllhost process rather than a regular exe?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风和你 2024-09-06 00:15:55

默认情况下,服务器 COM+ 应用程序将在 %windir%\system32 目录中查找配置文件。

如果您希望更改此位置(您应该这样做!),您需要设置应用程序根目录,该目录位于组件服务中应用程序激活选项卡上的 COM+ 应用程序配置中。在那里您可以指向您的应用程序特定的配置位置。然后,您需要将配置文件和应用程序清单部署到应用程序根目录。

完整详细信息位于使用每个应用程序配置文件< /a>.

By default, a Server COM+ application will look for configuration files in the %windir%\system32 directory.

If you wish to change this location (which you should!), you will need to set the Application Root Directory which is in the COM+ Application configuration on the application Activation tab in Component Services. There you can point to your application specific configuration location. You will then need to deploy your configuration file and an application manifest to the application root directory.

The full details are at Using Per-Application Configuration Files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文