开发者

Delphi DataSnap SocketServer "Failed to create key 211"

开发者 https://www.devze.com 2023-02-04 01:11 出处:网络
If I try to terminate the Borland SocketServer application for Delphi 2009 the message above appears.

If I try to terminate the Borland SocketServer application for Delphi 2009 the message above appears.

The application window remains open and I can only terminate the application i开发者_JAVA技巧n the task manager.

Operating system is Windows 2000 Professional SP4

The same error also occurs with the Delphi 2007 version of scktsrvr


scktsrvr attempts to store its settings under HKEY_LOCAL_MACHINE\SOFTWARE\Borland\Socket Server registry key which probably fails under a limited user account. Try running it as administrator, or as a service.

Edit: you can also modify it to use HKEY_CURRENT_USER, for example. It comes with source code.


Run the socketserver as a service, and add the proper permission to the registry key the service user needs to set. Remember that the user you use to run the SocketServer is important. The server acts like a proxy, and in turn call the DCOM server that implements the remote server. Unless changed, the user of the connecting process is used for DCOM security, thereby you have to ensure the right user is used, or you may lead to big vulnerabilities.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号