Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'SqlConnection' could not be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 16:     protected void Page_Load(object sender, EventArgs e)
Line 17:     {
Line 18:         SqlConnection conn = new SqlConnection(con);
Line 19:         SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM [TbProducts2] WHERE [InCategoryId] =4", conn);
Line 20:         DataTable dt = new DataTable();

Source File: c:\home\hisarbt.com\mucahitmermer.com\fiskiye2.aspx.cs    Line: 18






Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4075.0