Was this page helpful?

Troubleshoot OverflowException Negative number

    Table of contents
    No headers

    You may get this exception if you're using MySql older than 5.0.45 as it contained a bug dealing with 64 integers. Here are some related forum posts on the issue


    Clicking view details on this exception will show something like

    Array
    (
        [exception] => Array
            (
                [message] => Negative number
                [source] => mscorlib
                [stacktrace] => Array
                    (
                        [frame] => Array
                            (
                                [0] => System.UInt64.Parse (System.String s, NumberStyles style, IFormatProvider fp) [0x00000]
                                [1] => System.UInt64.Parse (System.String s) [0x00000]
    [2] => MySql.Data.Types.MySqlUInt64.MySql.Data.Types.IMyS
    qlValue.ReadValue (MySql.Data.MySqlClient.MySqlStream stream, Int64
    length, Boolean nullVal) [0x00000]
    [3] => MySql.Data.MySqlClient.NativeDriver.ReadColumnValu e (Int32
    index, MySql.Data.MySqlClient.MySqlField field, IMySqlValue valObject)
    [0x00000]
                                [4] => MySql.Data.MySqlClient.MySqlDataReader.Read () [0x00000]
                                [5] => MySql.Data.MySqlClient.StoredProcedure.Close () [0x00000]
                                [6] => MySql.Data.MySqlClient.MySqlCommand.Close () [0x00000]
                                [7] => Array
                                    (
                                        [#text] => (wrapper remoting-invoke-with-check) MySql.Data.MySqlClient.MySqlCommand
                                        [line] => :Close ()
                                    )
                                [8] => MySql.Data.MySqlClient.MySqlDataReader.Close () [0x00000]
                                [9] => MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuer  y () [0x00000]
                                [10] => MindTouch.Data.DataCommand.Execute () [0x00000]
                            )
                    )
                [type] => System.OverflowException
            )
    )
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by