System.OverflowException!!!
Thursday, July 03, 2008
This is the first time in my life I've actually run into an OverflowException when converting a string value to C#'s Int32. It's time to upgrade and beef up the application to handle Int64 in certain scenarios. Time to play with the big boys.
The max value for an Int32 is 2,147,483,647. The max value for an Int64 is 9,223,372,036,854,775,807.
Here's my Event Log:
So what the hell is Audit Collection Admin Services? It's a BETA product I'm currently fine tuning for SecureVantage. WHOOOHOOO!Labels: development, secure vantage
0 Comments
Add a comment
|
Event Source: Secure Vantage Audit Collection Admin
Event Category: None
Event ID: 0
Date: 7/3/2008
Time: 1:39:23 PM
User: N/A
Computer: CLEAN-OPSMGR
Description:
Could not update AuditCollectionAdminServices.
System.OverflowException: Value was either too large or too small for an Int32.
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.String.System.IConvertible.ToInt32(IFormatProvider provider)
at System.Convert.ToInt32(Object value)
at SecureVantage.OpsMgr.Consoles.Services.AuditCollectionAdmin.DataAccess. AdtAdminData.GetStats() in C:\apps\opsmgr-consoles_BUILD_0.2_Beta\src\Services.AuditCollectionAdmin\DataAccess\AdtAdminData.cs:line 66
...