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 50: 
Line 51:                 var blDevelopment = new blDevelopment();
Line 52:                 var dev = blDevelopment.getDevelopmentDetail(developmentId, true);
Line 53:                 if (dev != null)
Line 54:                 {

Source File: c:\Web\domains\iproperty.com.sg\live\newlaunch.iproperty.com.sg\Global.asax    Line: 52

Stack Trace:


[KeyNotFoundException: The given key was not present in the dictionary.]
   System.ThrowHelper.ThrowKeyNotFoundException() +36
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +52
   MySql.Data.MySqlClient.CharSetMap.GetCharacterSet(DBVersion version, String CharSetName) +33
   MySql.Data.MySqlClient.MySqlField.SetFieldEncoding() +287
   MySql.Data.MySqlClient.NativeDriver.GetColumnData(MySqlField field) +352
   MySql.Data.MySqlClient.NativeDriver.GetColumnsData(MySqlField[] columns) +39
   MySql.Data.MySqlClient.Driver.GetColumns(Int32 count) +111
   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) +167
   MySql.Data.MySqlClient.MySqlDataReader.NextResult() +130
   MySql.Data.MySqlClient.MySqlDataReader.Close() +73
   MySql.Data.MySqlClient.MySqlCommand.ResetReader() +50
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +1769
   iProperty.Framework.Developer.dbConnection.executeSelectQuery(String _query, MySqlParameter[] sqlParameter, String connectionString) +673
   iProperty.Framework.Developer.DataLayer.dlDevelopment.getDevelopmentDetail(Int32 id, String countryCode, Boolean isPreview) +770
   iProperty.Framework.Developer.BusinessLayer.blDevelopment.getDevelopmentDetail(Int32 developmentID, Boolean isPreview) +123
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in c:\Web\domains\iproperty.com.sg\live\newlaunch.iproperty.com.sg\Global.asax:52
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


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