It is in the System.Data assembly. I tried System.Data.SqlClient first and
then switched to System.Data and that worked.
In the debugger, it shows me that it creates the SqlConnection correctly,
its just when it tries to cast it fails.
"Tu-Thach" <tuthach> wrote in message
> Could it be that the assembly for SqlClient is
> System.Data.SqlClient.dll instead of just System.Data.dll?
> >-----Original Message-----
> >I am using reflection to create a data access
> component. I have the
> >following code:
> > SqlConnection o_Temp = new SqlConnection();
> > System.Data.IDbConnection ...