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

Base-64 字符数组或字符串的长度无效。

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

异常详细信息: System.FormatException: Base-64 字符数组或字符串的长度无效。

源错误:


行 85:     {
行 86:         string  decode =  "" ;
行 87:         byte [] bytes = Convert.FromBase64String(result);
行 88:         try
行 89:         {

源文件: e:\hosts\m.piaodown.com\api\downfz.ashx    行: 87

堆栈跟踪:


[FormatException: Base-64 字符数组或字符串的长度无效。]
   System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength) +802
   System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) +128
   System.Convert.FromBase64String(String s) +49
   downfz.DecodeBase64(Encoding encode, String result) in e:\hosts\m.piaodown.com\api\downfz.ashx:87
   downfz.ProcessRequest(HttpContext context) in e:\hosts\m.piaodown.com\api\downfz.ashx:43
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


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