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 21:             foreach (string id in ids.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries))
Line 22:             {
Line 23:                 WaRConService.DBUtil.BasicInfo info = (id == null) ? null : DB.GetInfo(id);
Line 24:                 if (info == null)
Line 25:                 {

Source File: d:\web\localuser\loonies.dk\warcon\bc2\matchinfo.aspx    Line: 23

Stack Trace:


[KeyNotFoundException: The given key was not present in the dictionary.]
   System.ThrowHelper.ThrowKeyNotFoundException() +28
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +7670108
   MySql.Data.MySqlClient.CharSetMap.GetCharacterSet(DBVersion version, String CharSetName) +23
   MySql.Data.MySqlClient.MySqlField.SetFieldEncoding() +198
   MySql.Data.MySqlClient.NativeDriver.GetColumnData(MySqlField field) +299
   MySql.Data.MySqlClient.NativeDriver.GetColumnsData(MySqlField[] columns) +29
   MySql.Data.MySqlClient.Driver.GetColumns(Int32 count) +144
   MySql.Data.MySqlClient.ResultSet.LoadColumns(Int32 numCols) +22
   MySql.Data.MySqlClient.ResultSet..ctor(Driver d, Int32 statementId, Int32 numCols) +53
   MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId) +134
   MySql.Data.MySqlClient.MySqlDataReader.NextResult() +113
   MySql.Data.MySqlClient.MySqlDataReader.Close() +75
   MySql.Data.MySqlClient.MySqlCommand.ResetReader() +42
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +1274
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader() +6
   WaRConService.DBUtil.GetInfo(String matchid) +221
   ASP.bc2_matchinfo_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\web\localuser\loonies.dk\warcon\bc2\matchinfo.aspx:23
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975