---
title: "Trubbel med Arithmetic operation resulted in an overflow"
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/97006-trubbel-med-arithmetic-operation-resulted-in-an-overflow"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "Nson"
published: "2004-02-10T08:11:41.000Z"
updated: "2004-02-10T11:37:39.000Z"
replies: 5
views: 233
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/97006-trubbel-med-arithmetic-operation-resulted-in-an-overflow"
---

# Trubbel med Arithmetic operation resulted in an overflow

## #1 — Nson, 2004-02-10T08:11Z



Permalänk: https://www.webforum.nu/p/97006

## #2 — m_soderlund, 2004-02-10T08:16Z

Vilken rad klagar motorn på? :)
En [Google-sökning](http://www.google.com/search?q=Arithmetic+operation+resulted+in+an+overflow+asp.net&sourceid=opera&num=0&ie=utf-8&oe=utf-8) är alltid en bra början. :)

Permalänk: https://www.webforum.nu/p/1271927

## #3 — Nson, 2004-02-10T08:33Z

:), 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

Permalänk: https://www.webforum.nu/p/1271938

## #4 — m_soderlund, 2004-02-10T08:38Z

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

Permalänk: https://www.webforum.nu/p/1271940

## #5 — Nson, 2004-02-10T09:52Z

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

Permalänk: https://www.webforum.nu/p/1271983

## #6 — m_soderlund, 2004-02-10T11:37Z

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!

Permalänk: https://www.webforum.nu/p/1272027

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/97006-trubbel-med-arithmetic-operation-resulted-in-an-overflow
