Type 'SqlConnection' is not defined

Type 'SqlConnection' is not defined

Old forum URL: forums.lhotka.net/forums/t/3717.aspx


rbellow posted on Monday, October 15, 2007


All my data access methods are erroring on Type 'SqlConnection' is not defined. I have made reference to the CSLA dll. Nothing else is erroring. Not sure why. any ideas?

skagen00 replied on Monday, October 15, 2007

(oops) (multiple post)

skagen00 replied on Monday, October 15, 2007

(oops)

skagen00 replied on Monday, October 15, 2007

Is this at compile time? Do you have a using System.Data.SqlClient at the top of your .cs file?

More information would be helpful.

 

(not sure what happened with the multiple posts)

rbellow replied on Monday, October 15, 2007

Dumb mistake on my part.

System.Data.SqlClient solved my problem.

Thanks.

Copyright (c) Marimer LLC