Server Error in '/' Application.

The given key was not present in the dictionary.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Source Error:


Line 58:         try
Line 59:         {
Line 60:             adapter.Fill(dt);
Line 61:         }
Line 62:         catch (MySqlException ex)

Source File: d:\vhosts\otoekspertizyazilimi.com\giyapi.com.tr\App_Code\Keskin.cs    Line: 60

Stack Trace:


[KeyNotFoundException: The given key was not present in the dictionary.]
   System.ThrowHelper.ThrowKeyNotFoundException() +38
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +54
   MySql.Data.MySqlClient.CharSetMap.GetCharacterSet(DBVersion version, String CharSetName) +33
   MySql.Data.MySqlClient.MySqlField.SetFieldEncoding() +290
   MySql.Data.MySqlClient.NativeDriver.GetColumnData(MySqlField field) +352
   MySql.Data.MySqlClient.NativeDriver.GetColumnsData(MySqlField[] columns) +39
   MySql.Data.MySqlClient.Driver.GetColumns(Int32 count) +114
   MySql.Data.MySqlClient.ResultSet.LoadColumns(Int32 numCols) +29
   MySql.Data.MySqlClient.ResultSet..ctor(Driver d, Int32 statementId, Int32 numCols) +59
   MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force) +175
   MySql.Data.MySqlClient.MySqlDataReader.NextResult() +133
   MySql.Data.MySqlClient.MySqlDataReader.Close() +83
   MySql.Data.MySqlClient.MySqlCommand.ResetReader() +50
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +1880
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +214
   System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +465
   System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +147
   Keskin.GetDataTable_acess(String sql) in d:\vhosts\otoekspertizyazilimi.com\giyapi.com.tr\App_Code\Keskin.cs:60
   Keskin.GetDataCell_bellialan(String sql, Int32 kolon, Int32 satır) in d:\vhosts\otoekspertizyazilimi.com\giyapi.com.tr\App_Code\Keskin.cs:105
   Kategori.detay() in d:\vhosts\otoekspertizyazilimi.com\giyapi.com.tr\Kategori.aspx.cs:47
   Kategori.Page_Load(Object sender, EventArgs e) in d:\vhosts\otoekspertizyazilimi.com\giyapi.com.tr\Kategori.aspx.cs:18
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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