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: CS1502: The best overloaded method match for 'System.Data.OleDb.OleDbCommand.OleDbCommand(string, System.Data.OleDb.OleDbConnection)' has some invalid arguments

Source Error:


Line 707:            }
Line 708:        }
Line 709:        OleDbCommand sayial = new OleDbCommand("insert into SatirSay(TicHit,Tarih) values (@Hit,now())", ticbag.baglan());
Line 710:        sayial.Parameters.Add("@Hit", say);
Line 711:        sayial.ExecuteNonQuery();

Source File: d:\vhosts\genctercih.com\httpdocs\Ek_Tercih_Robotu\Default.aspx.cs    Line: 709






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