我定义了一个SqlDataAdapter变量.
 myAdapter = New System.Data.SqlClient.SqlDataAdapter
 myAdapter.SelectCommand() = New System.Data.SqlClient.SqlCommand(str_sql)'str_sql是连接语句.
myAdapter.SelectCommand.Connection = myconnection 'myconnection 是connection连接我的系统是window 2003,运行的时候很正常,但上传到远程空间的时候,老是出现以下问题:No accessible overloaded 'SqlDataAdapter.SelectCommand' is most specific for these arguments: 
   Public Sub set_SelectCommand(value As System.Data.SqlClient.SqlCommand)
   Public Sub set_SelectCommand(value As System.Data.Common.DbCommand)Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Reflection.AmbiguousMatchException: No accessible overloaded 'SqlDataAdapter.SelectCommand' is most specific for these arguments: 
   Public Sub set_SelectCommand(value As System.Data.SqlClient.SqlCommand)
   Public Sub set_SelectCommand(value As System.Data.Common.DbCommand)
如果,我把代码改成:
myAdapter = New System.Data.SqlClient.SqlDataAdapter(str_sql,myconnection)
则不会发生异常。但我需要做成myAdapter.SelectCommand() 这样的形式,高手门,请指教啊!!!