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: BC30311: Value of type 'System.Data.OleDb.OleDbConnection' cannot be converted to 'System.Data.SqlClient.SqlConnection'.

Source Error:


Line 9:          Dim command As New SqlCommand()
Line 10:         command.CommandType = CommandType.Text
Line 11:         command.Connection = DB.GetConnection()
Line 12:         command.CommandText = "SELECT * FROM News ORDER BY " & CX.Lang
Line 13:         Dim adapter As New SqlDataAdapter(command)

Source File: C:\Inetpub\vhosts\ikteogiannitsa.gr\httpdocs\news_rss.aspx    Line: 11






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