webForumDet fria alternativet

Trubbel med Arithmetic operation resulted in an overflow

.NET

5 svar · 202 visningar · startad av Nson

Medlem sedan juni 2001145 inlägg
Frågan#1
Medlem sedan sep. 20026 425 inlägg
#2

Vilken rad klagar motorn på? :)
En Google-sökning är alltid en bra början. :)

Medlem sedan juni 2001145 inlägg
#3

:), letade på google innan men hittade inte något som besvarade min fråga.

Det här är felmeddelandet jag får:

Arithmetic operation resulted in an overflow.
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.OverflowException: Arithmetic operation resulted in an overflow.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[OverflowException: Arithmetic operation resulted in an overflow.]
idofun.idofun.db.messages_saveattachment(String filename, String bytes, String contenttype, Stream stream, Int32 mailid) in C:\Documents and Settings\Niklas Nson\VSWebCache\CPQ25933250079\idofun\configuration\code\db.vb:156
idofun.data_compose.send_Click(Object sender, EventArgs e) in C:\Documents and Settings\Niklas Nson\VSWebCache\CPQ25933250079\idofun\mil\data_compose.ascx.vb:49
System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +108
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
System.Web.UI.Page.ProcessRequestMain() +1277

Medlem sedan sep. 20026 425 inlägg
#4

Okej.. Har du testat koden på fler servrar än en?

Medlem sedan juni 2001145 inlägg
#5

Nej... Men det borde väl inte vara fel på serven som ligger bakom detta ?

Medlem sedan sep. 20026 425 inlägg
#6

Man vet aldrig. Om koden fungerar med filer under 9 kb lokalt så låter det ändå som att koden borde kunna klara av större filer. Testa på annan server eller starta om din lokala server!

259 ms totalt · 4 externa anrop · v20260731065814-full.a51de22e
119 ms — deklarationer (db)
0 ms — hämta statistik (cache)
134 ms — hämta tråd, inlägg och bilagor (db)
123 ms — ändringar (db)