你没 在系统 中 设定 DSN 吧 ?

解决方案 »

  1.   

    还是要 去 系统中 设置DSN的
      

  2.   

    你设的是什么 DSN ? 设 系统DSN 试试。
      

  3.   

    什么 默认 设置? IIS 中 还要 说定 自己的 IP 地址 哟。
      

  4.   

    其实这个 东西 很难说清. 因为 我不知道 你是怎么  设定 DSN 的, 还有 IIS .
    你去 参考 一下 这类书. 或许比你 来坛子 提问 更好.
      

  5.   

    王的书上是RDS1.5,我引用的是2.5,应该是向下兼容的吧
      

  6.   

    让你去设置安全句柄(RDS.DataControl.handle)
      

  7.   

    Configuring RDS on Windows 2000
    If you experience difficulties getting RDS to function properly after upgrading to Windows 2000, follow the steps below to troubleshoot the issue. Make sure that the World Wide Web Publishing Service is running first by navigating to http://server using Internet Explorer. If you are unable to access the web server this way, go to a command prompt and enter the following command, "NET START W3SVC". 
    From the Start menu, select Run. Type msdfmap.ini and click OK to open the msdfmap.ini file in Notepad. Check the [CONNECT DEFAULT] section, and if the ACCESS parameter is set to NOACCESS, change it to READONLY. 
    Using the RegEdit utility, navigate to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataFactory\HandlerInfo" and make sure HandlerRequired is set to 0 and DefaultHandler is "" (Null string). 
    Note   If you make any changes to this section of the registry, you must stop and restart the World Wide Web Publishing Service by entering the following commands at a command prompt: "NET STOP W3SVC" and "NET START W3SVC". Using the RegEdit utility, navigate in the registry to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\ADCLaunch" and verify that there is a key called RDSServer.Datafactory. If not, create it. 
    Using Internet Services Manager, go to the Default Web Site and view the properties of the MSADC virtual root. Inspect the Directory Security/IP Address and Domain Name Restrictions. If the "Access is Denied" is checked then select "Granted". 
    Be sure to try rebooting the server if the changes to do not appear to solve the problem at first.
      

  8.   

    dc.Handler = "MSDFMAP.Handler"