what error did you get?

解决方案 »

  1.   

    cant open connextion , maybe ur id and pw error .......
    that s what i got 
    but ,... since , i get a connection on my test-win-App , used the same dll tooi guest there s something different between aspx-App and win-App
    am i right ?
      

  2.   

    把IIS虚拟目录的身份验证方式改为匿名方式试试。
      

  3.   

    回楼上,不好意思我不大熟悉iis,相对路径用过是什么意思?
      

  4.   

    会不会是C:\Documents and Settings\SphinxEGO这个目录的权限设置不对呀,具我所知,ASP什么调用数据库时,数据库所在目录应该设置成Everyone完全控制
      

  5.   

    everyone 完全控制?你是说这个文件夹的属性?
      

  6.   

    _command.Connection.Open();应改成:
    _connection.Open();
      

  7.   

    如果你在其他代码里能打开数据库连接而只是aspx里打不开,就注意你那个文件的权限了,特别是那些与Internet访问相关的映射的帐户