在Windows 2000下面,由于RDS的缺省安全配置同IIS4不同,从而造成RDS无法正常使用,以下是本人根据微软 MDAC 2.7 SDK 的 ADO 文档中关于RDS的说明部分翻译并整理总结而成的配置步骤,在我所配置的服务器中都获得成功,现供大家参考。1、用“计算机管理”工具查看 IUSR_<ComputerName> 用户是否在Guests 组中,如果没有请加入。2、单击“开始”-“运行”,输入“msdfmap.ini”,按回车编辑该文件,或直接在NT安装目录下找到该文件双击,找到“[CONNECT DEFAULT]”项,如果Access参数的当前值是“NOACCESS”,将其改为“READONLY”。3、运行“Internet服务管理器”,查看“默认Web站点”-“MSADC”虚拟目录的属性,将执行许可设为“脚本和可执行程序”;查看“目录安全性”-“IP地址及域名限制”,改为对所有地址授权访问4、将以下内容另存为后缀名为.reg的注册表文件,并将其导入注册表:
REGEDIT4[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\ADCLaunch\RDSServer.DataFactory];将RDS的安全级别降低
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataFactory][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataFactory\HandlerInfo]
"handlerRequired"=dword:00000000
"DefaultHandler"=""[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataFactory\HandlerInfo\safeHandlerList][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataFactory\HandlerInfo\safeHandlerList\MSDFMAP.Handler][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataFactory\HandlerInfo\safeHandlerList\MSDFMAP_VB.Handler][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataFactory\HandlerInfo\safeHandlerList\MSDFMAP_VC.Handler]5、停止并重新启动 WWW 服务,如果上述修改仍不起作用,重新启动服务器。如果您使用的是 DataSpace 组件或 DataControl 但经以上配置后仍无法正常工作,请查看ADO文档。

解决方案 »

  1.   

    do you want to access a remote database from the client machines in a browser or access a remote database in your server side asp.net code?
      

  2.   

    Microsoft has been recommending developers to move away from RDS for awhile now. I bet there is something in the MDAC version that ships with Windows.NET Server that is breaking it. and if that is the case, you are pretty much out of luck since Microsoft made no claims of continuing to support it
      

  3.   

    Just use an OLEDB connection with ADO or you can also do it with a SqlConnection using a domain name or IP address. See Carl Prothman's site(http://www.able-consulting.com/ADO_Conn.htm) for all kinds of examples. It's actually way easier than RDS ever was. If you have specific issues, just keep posting.