“/”应用程序中的服务器错误。

算术运算导致溢出。

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.OverflowException: 算术运算导致溢出。

源错误:


行 16:     {
行 17:         string checkcode = "";
行 18:         byte[] ms = new Dcms.Utility.Captcha().GetImage(4, out checkcode);
行 19:         SessionHelper.Add("ValidCode", checkcode);
行 20: 

源文件: c:\inetpub\www\sysaspx\ValidCodeImage.aspx.cs    行: 18

堆栈跟踪:


[OverflowException: 算术运算导致溢出。]
   System.IntPtr.op_Explicit(IntPtr value) +37
   Dcms.Utility.Captcha.BitmapDataColorAt(BitmapData srcData, Int32 x, Int32 y) +147
   Dcms.Utility.Captcha.WaveDistortion(Bitmap bitmap) +2951
   Dcms.Utility.Captcha.GetImage(Int32 length, String& checkcode) +1996
   sysaspx_ValidCodeImage.Page_Load(Object sender, EventArgs e) in c:\inetpub\www\sysaspx\ValidCodeImage.aspx.cs:18
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


版本信息: Microsoft .NET Framework 版本:2.0.50727.8964; ASP.NET 版本:2.0.50727.8962
Baidu
sogou