如何在 DCOMCNFG 中找到 DataSnap 服务器?
在 Windows 7 上,我尝试使用 tregsrvr(使用以管理员身份运行)注册新的 DataSnap 服务器,该服务器运行并确认注册成功。
但是我在 DCOMCNFG 中找不到服务器来检查其设置。有相当多的 DCOM 条目,它们以 GUID 作为其 ID。我知道其中之一应该是 DataSnap 服务器。
但是,DCOMCNFG 列表中显示的 GUID 不等于我在 Delphi IDE 中看到的服务器的 GUID。这是正确的吗?有没有一种快速方法可以在 DCOMCNFG 中找到我的 DataSnap 服务器?
更新:奇怪的是,今天(服务器重新启动后)我在 dcomcnfg 中找到了该条目。我还能够在 Windows 2008 R2 机器上注册服务器,即使不重新启动服务器 GUID (CoClass) 就在那里。
On Windows 7 I tried to register a new DataSnap server using tregsrvr (using run as administrator), which runs and confirms that the registration succeeded.
However I can not find the server in DCOMCNFG to check its settings. There are quite many DCOM entries, which have a GUID as their ID. I know one of them should be the DataSnap server.
However the GUID displayed in the DCOMCNFG list does not equal the server's GUID I can see in Delphi IDE. Is this correct? Is there a quick way to find my DataSnap server in the DCOMCNFG?
Update: strange, today (after a server restart) I found the entry in dcomcnfg. I was also able to register the server on a Windows 2008 R2 box, even without restarting the server GUID (CoClass) was there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我手头没有 Windows 7 来确认这一点,但我认为在“DCOM Config”下应该显示一个条目,其中包含您的应用程序服务器的 CoClass 的帮助字符串,如项目类型库中所述。
默认情况下,它看起来像“[coclassname] [version] Object”,例如“MyServer 1.0 Object”。
此外,属性中显示的 GUID 是 CoClass 的 CLSID。
I don't have Windows 7 at hand to confirm this but I think under "DCOM Config" there should be an entry displayed with the Help string of the CoClass of your appserver as stated in the type library of your project.
By default, it looks like "[coclassname] [version] Object", e.g. "MyServer 1.0 Object".
Also, the GUID shown in the properties is the CLSID of the CoClass.
我认为 DCOMCNFG 已被组件服务管理模块取代(我认为是从 Windows 2000 开始!)。在 2000 和 XP 上,可以通过控制面板的管理工具部分使用它。我最近刚买了一台新的 Windows 7 笔记本电脑,我似乎找不到 MS 的友好人员将管理工具隐藏在哪里,但 mmc.exe 仍然可以工作(只需键入“mmc”并在“搜索”框中输入开始菜单),如果您执行“文件”>“添加/删除模块、组件服务在列表中。在那里,您可以执行以前使用 DCOMCNFG 以及所有其他 COM+ 管理所能执行的操作。 (我了解了有关使用 IIS 5 和 6 的“高隔离”级别的所有知识,IIS 7 引入了应用程序池,并在某种程度上放弃了 COM+...)
I think DCOMCNFG has been replaced (I think since Windows 2000!) with the Component Services management module. On 2000 and XP it was available via the Adminstrative Tools section of the Control Panel. I just recently baught a new Windows 7 laptop, and I can't seem to find where the friendly folk at MS hid the Administrative tools, but mmc.exe still works (just type "mmc" and enter in the 'search' box of the start menu), and if you do File > Add/remove Module, Component Services is in the list. There you can do what you could before with DCOMCNFG, and all of the other COM+ management. (Which i learned all about using the 'high isolation' level of IIS 5 and 6, IIS 7 introduced application pools and kind of let go of COM+...)