Arithmetic Overflow (Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(StringValue)) occu

M

mats__johansson

Hello everyone!

I´m struggling with a strange problem. I have built an application in
asp.net 2.0 and it works for all users but one. This particular user
gets an arithmetic overflow directly after passing the login.aspx. I
have tried different startpages but the error still occurres.
(probably because Convert.ToInt32 occurres on pretty much all
pages...)

The thing to focus on is the fact that this problem only occurres on
one client computer.

The only hint I´ve gotten so far is the fact that the locale settings
in windows XP (in this case with sp2) can get mixed up with service
pack 2 and the thing to look for is in the registry under:

HKEY_CURRENT_USER/Control Panel/International/

The key: sPositiveSign

Right click on it, choose Modify Binary Data and make sure to little
dotts recide on the far right.

I´ve done this and they are where they are supposed to be.
That post also read that switching locale from lets say English to
Swedish and back again could reset and fix this problem (although no
changes could be noticed in registry)

Tried that too, no luck.

I feel like I have nothing left to use as search expressions. Nothing
occurrs that is remotely close to this.
Please help....

Here is the error message:

Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 2008-02-12
Time: 10:59:00
User: N/A
Computer:
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 2008-02-12 10:59:00
Event time (UTC): 2008-02-12 09:59:00
Event ID: a329ee37fa8644928746dfb8cb08d79e
Event sequence: 2
Event occurrence: 1
Event detail code: 0


Application information:
Application domain: XXXXXXXXXXXXX
Trust level: Full
Application Virtual Path: /
Application Path:
Machine name:

Process information:

Process ID: 3708
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:

Exception type: OverflowException
Exception message: Arithmetic operation resulted in an overflow.

Request information:

Request URL: http://XXXXXXXXX/login.aspx?ReturnUrl=/Default.aspx
Request path: /login.aspx
User host address:
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 1
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at
Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String
Value)
at Login.Login1_Authenticate(Object sender, AuthenticateEventArgs
e)
at
System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs
e)
at System.Web.UI.WebControls.Login.AttemptLogin()
at System.Web.UI.WebControls.Login.OnBubbleEvent(Object source,
EventArgs e)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs
args)
at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument)
at
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection
postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)




Again, I´m very thankful for any ideas about this.

/Mats
 
M

mats__johansson

This turned out to be a bug in our application. We were calculating
timezoneoffset in regards to UTC time and ended up with a conversion
to integer of a negative value. Just like the error stated....
(Checking the "Automatically adjust clock to dayligt saving changes"
made it work, unchecking produced the error. )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top