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 18: <br/><br/>
Line 19: 
Line 20: <%  ShowStats();%>
Line 21: </div>
Line 22: </body>

Source File: d:\web\localuser\loonies.dk\warcon\stats.aspx    Line: 20

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
   WaRConService3.stats.ReadGoLives(MySqlCommand cmd, String where) in s:\WaRCon\WaRConService\stats.aspx.cs:64
   WaRConService3.stats.ShowStats() in s:\WaRCon\WaRConService\stats.aspx.cs:106
   ASP.stats_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\web\localuser\loonies.dk\warcon\stats.aspx:20
   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