怎样注册应用服务器?mary(50分)

M

Mary

Unregistered / Unconfirmed
GUEST, unregistred user!
我碰到一个问题,在用DCOMConnection控件时,如果应用服务器和客户端在同
一机器上,工作得很正常,要是指定了ComputerName(局域网上的另一台机
器),就会出‘RPC服务器无法使用’的提示,我想应该是应用服务器没有在那
台机上注册的原因,但不知怎样注册(在本机上,好像运行一次应用服务器程
序就行了)。
 
Hi Mary,
Is the server program running in that particular machine?
 
可以到MIDAS讨论组去找答案。
 
to huizhang:
我是用另一台计算机运行应用服务器(win98),而不是winnt,我已经在两台
计算机上都运行过服务器程序了。

to last_hero:
我对NT不熟,在哪里有dcomcnfg?
 
在win98的system目录下。
win95需要另外安装dcom for win95,安装IE4就有了。
nt的在system32目录下。
上述windows9x的所有安装版本都可在http://www.microsoft.com/com/resources/downloads.asp
站点上下载。
 
For Window98:
在可以使用 DCOM 之前,必须规定哪些人可以访问共享的每一个文件或打印机。 打
开“网络”对话框,单击“访问控制”选项卡,单击“用户级访问控制”,然后规定
存储用户主列表的位置。
单击“开始”,单击“运行”,然后键入“ dcomcnfg”,也可以打开“分布式 COM
配置属性”对话框。
Windows/Help下有两个帮助文件可供参考: DcomCnfg.chm和Dcomcnfg.hlp
For Windows95:
To configure a Windows 95 computer for use as a DCOM server,do
wnload
DCOM95.EXE and DCM95CFG.EXE available from the OLE Development section of the Microsoft Web Site at:
http://www.microsoft.com/oledev
DCOM95.EXE is also available on the Microsoft Visual Basic 5.0 CD-ROM
(Enterprise, Professional and Standard editions) in the
/Pro/Tools/DCOM95 directory.
Afterdo
wnloading and saving DCOM95.EXE,do
the following:
Double-click DCOM95.EXE and proceed through the installation of
DCOM95. This process requires you to reboot your system upon
completion.
NOTE: If you intend to install DCM95CFG.EXE at the same time, you can
forgo rebooting your computer until the completion of DCM95CFG.EXE
installation.
Double-click DCM95CFG.EXE. This will install the DCOMCNFG.EXE utility
that allows you to configure a DCOM server component. This requires
you to reboot your system upon completion.
Change the key below in the Windows 95 registry:
HKEY_LOCAL_MACHINE/Software/Microsoft/OLE/EnableRemoteConnect
to the following:
Y
NOTE: Failure to set this key results in the following error on the
client:
"Run-time error '429': ActiveX component can't create object"
Run DCOMCNFG on the Windows 95 Server. Select the server component
and click the "Properties" button. Select the "Location" tab and
ensure that the "Run application on this computer" check box is
selected.
Select the "Security" tab. Select either "Use default access
Permissions" or "Use custom access permissions." If you opt to use
custom permissions, click the Edit button.
Use the "Add Access Permissions" dialog box to grant or deny access
to users of the server component. Click OK to close the "Add Access
Permissions" dialog box. Click OK again to close the "Access
Permissions" dialog box. then
click Apply to put your access
permissions into effect. If youdo
not set custom access permissions,
your server component will use the default access permissions for the
computer. Default access permissions are set from the "Distributed
COM Configuration Properties" dialog box. Select the tab labeled
"Default Security" to set access permissions as described above.
NOTE: Failure to set the access permissions will result in the
following error on the client:
"Run-time error '70': Permission denied"
While it is not necessary to place a shortcut to RPCSS.EXE (found in
your Windows/System folder) into your startup group, it is advisable
because RPCSS.EXE needs to be running on the server before clients
can connect.
NOTE: Failure to run RPCSS.EXE before attempting to connect to it
will result in the following error on the client:
"Run-time error '-2147023174 (800706ba)': Automation error"
This error message decodes to "The RPC server is unavailable."
Place a shortcut to the server component you want to automate through
DCOM into the startup group. Again, this is not necessary, but
because the server component must be running before a client can
access it, this is a good technique to ensure the component is always
running.
NOTE: Failure to run the server component results in the following
error on the client:
"Run-time error '429': ActiveX component can't create object"
 
Mary:
前面忘记写
95需要单独安装DCOM(自己不带)
如果有需要,可以用DCOMCFG之类的东西配置
 
谢谢大家,我可以注册服务器了,但不知道怎么反注册,谁能帮我这个忙吗?
 
MARY:
我告诉你了regsrv32.exe可以的呀
Usage:regsrv32 /options :cmdline dllname
/u Unregister server
...
cmdline:used with /u called uninstall server
 
如果是EXE的,你应该这样:
AppSeverName.exe /UnRegister
 
Borland来的,标准答案了吧
Question and Answer Database
FAQ131D.txt Un-registering a server
Category :DCOM/MultiTier/ActiveForm
Platform :All
Product :Delphi 3.x
Question:
Howdo
you get rid of a "registered" ServerName if Ido
n't
want to use it any longer?

Answer:
Run the executable with the /UNREGSERVER flag:
MYSERVER.EXE /UNREGSERVER
This is the standard way of unregistering a self-registering
OLE automation server.

7/16/98 4:31:28 PM
 
多人接受答案了。
 
顶部