Server Error in '/' Application.

Could not find any recognizable digits.

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.FormatException: Could not find any recognizable digits.

Source Error:


Line 343:        for (int i = 0; i < CharsLength; i += 2)
Line 344:        {
Line 345:            bytesarray[i / 2] = Convert.ToByte(hexvalue.Substring(i, 2), 16);
Line 346:        }
Line 347:        return encoding.GetString(bytesarray);

Source File: c:\inetpub\vhosts\theinfoage.com\httpdocs\App_Code\myConnections.cs    Line: 345

Stack Trace:


[FormatException: Could not find any recognizable digits.]
   System.ParseNumbers.StringToInt(String s, Int32 radix, Int32 flags, Int32* currPos) +0
   System.Convert.ToByte(String value, Int32 fromBase) +43
   myConnections.Convert_HexvalueToStringvalue(String hexvalue, Encoding encoding) in c:\inetpub\vhosts\theinfoage.com\httpdocs\App_Code\myConnections.cs:345
   myConnections.DecryptString(String cipherText) in c:\inetpub\vhosts\theinfoage.com\httpdocs\App_Code\myConnections.cs:324
   Shop_ProductDetail.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\theinfoage.com\httpdocs\Category1\Category2\Category3\Detail\ProductDetails.aspx.cs:37
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3930.0