This article mainly tells you about the faults that often occur during MySQL ctor upgrade. Asp is used in the past. NET + MySQL to build the system platform, using MySQL Database Connector 5.22, found that the implementation of Membership has a Bug.
Sometimes an exception is thrown, causing the website service to stop for unknown reasons.
Log on to the official MySQL website again and find that MySQL Connector has been upgraded to 6.22. Then download and upgrade the system, hoping to fix the above Bug.
As a result, the 6.22 version throws another exception, and the system that runs well cannot run.
User code does not process System. FormatException
Message = "GUID should contain 32 digits with four dashes (xxxxxxxx-xxxx-xxxxxxxxxxxx ). "
Source = "mscorlib"
StackTrace:
In System. Guid .. ctor (String g)
In MySql. Data. Types. MySqlGuid. MySql. Data. Types. IMySqlValue. ReadValue (MySqlPacket packet, Int64 length, Boolean nullVal)
In MySql. Data. MySqlClient. NativeDriver. ReadColumnValue (Int32 index, MySqlField field, IMySqlValue valObject)
In MySql. Data. MySqlClient. ResultSet. get_Item (Int32 index)
In MySql. Data. MySqlClient. MySqlDataReader. GetFieldValue (Int32 index, Boolean checkNull)
In MySql. Data. MySqlClient. MySqlDataReader. GetValue (Int32 I)
In MySql. Data. MySqlClient. MySqlDataReader. GetValues (Object [] values)
In System. Data. ProviderBase. DataReaderContainer. CommonLanguageSubsetDataReader. GetValues (Object [] values)
In System. Data. ProviderBase. SchemaMapping. LoadDataRow ()
In System. Data. Common. DataAdapter. FillLoadDataRow (SchemaMapping mapping)
In System. Data. Common. DataAdapter. FillFromReader (DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue)
In System. Data. Common. DataAdapter. Fill (DataTable [] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
In System. Data. Common. DbDataAdapter. FillInternal (DataSet dataset, DataTable [] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
In System. Data. Common. DbDataAdapter. Fill (DataTable [] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
In System. Data. Common. DbDataAdapter. Fill (DataTable dataTable)
......
The above content is an introduction to the faults caused by MySQL ctor upgrade. I hope you will have some gains.
Original article title: faults caused by MySQL Connector upgrade
Connection: http://www.cnblogs.com/chinaontology/archive/2010/03/09/1681938.html