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

Source File: D:\vhosts\kuranarastirmalarim.com\httpdocs\icerik.aspx.vb    Line: 18

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) +23
   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.icerikDoldur() in D:\vhosts\kuranarastirmalarim.com\httpdocs\icerik.aspx.vb:18
   _Default.Page_Load(Object sender, EventArgs e) in D:\vhosts\kuranarastirmalarim.com\httpdocs\icerik.aspx.vb:67
   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