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 20:         d.CommandText = "SELECT * FROM urunCesitleri where ID like '" & Request.QueryString("ID") & "' And aktif like '1'"
Line 21:         Dim dr As MySqlDataReader
Line 22:         dr = d.ExecuteReader
Line 23:         ' dd_kategoriler.Items.Clear()
Line 24:         Dim str As String = ""

Source File: D:\vhosts\tvolaf.org.tr\diyarbakir.tvolaf.org.tr\icerik.aspx.vb    Line: 22

Stack Trace:


[KeyNotFoundException: The given key was not present in the dictionary.]
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +13029779
   MySql.Data.MySqlClient.CharSetMap.GetChararcterSet(DBVersion version, String CharSetName) +38
   MySql.Data.MySqlClient.NativeDriver.GetFieldMetaData41() +581
   MySql.Data.MySqlClient.NativeDriver.GetFieldMetaData() +39
   MySql.Data.MySqlClient.NativeDriver.ReadColumnMetadata(Int32 count) +39
   MySql.Data.MySqlClient.MySqlDataReader.NextResult() +272
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +675
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader() +6
   _Default.icerik() in D:\vhosts\tvolaf.org.tr\diyarbakir.tvolaf.org.tr\icerik.aspx.vb:22
   _Default._Default_Load(Object sender, EventArgs e) in D:\vhosts\tvolaf.org.tr\diyarbakir.tvolaf.org.tr\icerik.aspx.vb:11
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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