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

未能找到任何可识别的数字。

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

异常详细信息: System.FormatException: 未能找到任何可识别的数字。

源错误:


行 61:         Byte[] inputByteArray = new Byte[str.Length / 2];
行 62:         for (x = 0; x < str.Length / 2; x++)
行 63:             inputByteArray[x] = (Byte)(Convert.ToInt32(str.Substring(x * 2, 2), 16));
行 64:         des.Key = System.Text.ASCIIEncoding.ASCII.GetBytes(strDesKey);
行 65:         des.IV = System.Text.ASCIIEncoding.ASCII.GetBytes(strDesKey);

源文件: d:\vhostroot\localuser\huafei.com\www\App_Code\Encryption.cs    行: 63

堆栈跟踪:


[FormatException: 未能找到任何可识别的数字。]
   System.ParseNumbers.StringToInt(String s, Int32 radix, Int32 flags, Int32* currPos) +0
   System.Convert.ToInt32(String value, Int32 fromBase) +40
   Encryption.jiemi(String str) in d:\vhostroot\localuser\huafei.com\www\App_Code\Encryption.cs:63
   productshow.Page_Load(Object sender, EventArgs e) in d:\vhostroot\localuser\huafei.com\www\productshow.aspx.cs:47
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3930.0