Its seems that the set connection on SqlCommand attend a SqlConnection and that a IDbConnection wa passed which cause the cast exception. You should check your provider..
- IBatisNet can't set SqlCommand's Connection property under M... Ron Grabowski
- Re: IBatisNet can't set SqlCommand's Connection propert... Gilles Bayon
- Re: IBatisNet can't set SqlCommand's Connection pro... Ron Grabowski