FineUI 官方论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

本论坛已关闭(禁止注册、发帖和回复)
请移步 三石和他的朋友们

FineUI首页 WebForms - MVC & Core - JavaScript 常见问题 - QQ群 - 十周年征文活动

FineUI(开源版) 下载源代码 - 下载空项目 - 获取ExtJS - 文档 在线示例 - 版本更新 - 捐赠作者 - 教程

升级到 ASP.NET Core 3.1,快、快、快! 全新ASP.NET Core,比WebForms还简单! 欢迎加入【三石和他的朋友们】(基础版下载)

搜索
查看: 10030|回复: 11
打印 上一主题 下一主题

【已解决】服务器请求报错 - Invalid length for a Base-64 char array

[复制链接]
跳转到指定楼层
楼主
发表于 2015-4-8 12:56:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
沙发
发表于 2015-4-8 13:36:54 | 只看该作者
板凳
 楼主| 发表于 2015-4-8 14:46:16 | 只看该作者
sanshi 发表于 2015-4-8 13:36
参考:http://stackoverflow.com/questions/25922043/ie-https-cors-xhr-request-fails-with-script7002-xm ...

这上面是设置IE   但是谷歌浏览器也是这个错误

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
地板
发表于 2015-4-8 15:11:21 | 只看该作者
hedoudou2240 发表于 2015-4-8 14:46
这上面是设置IE   但是谷歌浏览器也是这个错误

请求被终止,只能猜测:
1. 是否浏览器的某个插件导致的
2. 内部网络的网关的某些限制
5#
 楼主| 发表于 2015-4-8 17:48:10 | 只看该作者
本帖最后由 hedoudou2240 于 2015-4-8 17:50 编辑

你好,我服务器日志记录是fineUI底层下面这个错误,我在测试服务器上是好的,在正式服务器就报错,我怀疑也是网关问题,你看下是限制了什么

InnerExceptionMessage:  Invalid length for a Base-64 char array.  InnerException:  System.FormatException: Invalid length for a Base-64 char array.     at System.Convert.FromBase64String(String s)     at FineUIPro.ResourceManager.get_PostBackStates()     at FineUIPro.ControlBase.get_PostBackState()     at FineUIPro.ControlBase.Page_InitComplete(Object sender, EventArgs e)     at System.EventHandler.Invoke(Object sender, EventArgs e)     at WfFramework.BasePageClass.OnInitComplete(EventArgs e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  ExceptionMessage:  Exception of type 'System.Web.HttpUnhandledException' was thrown.  Exception:  System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.FormatException: Invalid length for a Base-64 char array.     at System.Convert.FromBase64String(String s)     at FineUIPro.ResourceManager.get_PostBackStates()     at FineUIPro.ControlBase.get_PostBackState()     at FineUIPro.ControlBase.Page_InitComplete(Object sender, EventArgs e)     at System.EventHandler.Invoke(Object sender, EventArgs e)     at WfFramework.BasePageClass.OnInitComplete(EventArgs e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.HandleError(Exception e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  
6#
 楼主| 发表于 2015-4-8 17:51:09 | 只看该作者
sanshi 发表于 2015-4-8 15:11
请求被终止,只能猜测:
1. 是否浏览器的某个插件导致的
2. 内部网络的网关的某些限制 ...

你好,我服务器日志记录是fineUI底层下面这个错误,我在测试服务器上是好的,在正式服务器就报错,我怀疑也是网关问题,你看下是限制了什么

InnerExceptionMessage:  Invalid length for a Base-64 char array.  InnerException:  System.FormatException: Invalid length for a Base-64 char array.     at System.Convert.FromBase64String(String s)     at FineUIPro.ResourceManager.get_PostBackStates()     at FineUIPro.ControlBase.get_PostBackState()     at FineUIPro.ControlBase.Page_InitComplete(Object sender, EventArgs e)     at System.EventHandler.Invoke(Object sender, EventArgs e)     at WfFramework.BasePageClass.OnInitComplete(EventArgs e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  ExceptionMessage:  Exception of type 'System.Web.HttpUnhandledException' was thrown.  Exception:  System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.FormatException: Invalid length for a Base-64 char array.     at System.Convert.FromBase64String(String s)     at FineUIPro.ResourceManager.get_PostBackStates()     at FineUIPro.ControlBase.get_PostBackState()     at FineUIPro.ControlBase.Page_InitComplete(Object sender, EventArgs e)     at System.EventHandler.Invoke(Object sender, EventArgs e)     at WfFramework.BasePageClass.OnInitComplete(EventArgs e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.HandleError(Exception e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
7#
发表于 2015-4-8 19:59:36 | 只看该作者
hedoudou2240 发表于 2015-4-8 17:51
你好,我服务器日志记录是fineUI底层下面这个错误,我在测试服务器上是好的,在正式服务器就报错,我怀疑 ...

我猜测是HTTP请求的内容被网关截断了,可能网关限制了 HTTP Request的长度。

先检查下 Web.config 中有没有类似的设置:
  1. <system.web>
  2.     <!-- 请求正文的最大值: 512000K = 500M  -->
  3.     <httpRuntime maxRequestLength="512000" />
复制代码
8#
发表于 2015-4-8 19:59:38 | 只看该作者
hedoudou2240 发表于 2015-4-8 17:51
你好,我服务器日志记录是fineUI底层下面这个错误,我在测试服务器上是好的,在正式服务器就报错,我怀疑 ...

我猜测是HTTP请求的内容被网关截断了,可能网关限制了 HTTP Request的长度。

先检查下 Web.config 中有没有类似的设置:
  1. <system.web>
  2.     <!-- 请求正文的最大值: 512000K = 500M  -->
  3.     <httpRuntime maxRequestLength="512000" />
复制代码
9#
 楼主| 发表于 2015-4-8 20:58:29 | 只看该作者
sanshi 发表于 2015-4-8 19:59
我猜测是HTTP请求的内容被网关截断了,可能网关限制了 HTTP Request的长度。

先检查下 Web.config 中有 ...

嗯  我看了   的确有你说的这个   你看下我接下来该如何处理? 谢谢

<!--为当前应用程序提供一组ASP.NET运行时服务-->
    <httpRuntime executionTimeout="3600" maxRequestLength="512000" maxQueryStringLength="2097151" maxUrlLength="2097151" useFullyQualifiedRedirectUrl="false" requestValidationMode="2.0" requestPathInvalidCharacters=""/>
10#
发表于 2015-4-8 22:13:06 | 只看该作者
hedoudou2240 发表于 2015-4-8 20:58
嗯  我看了   的确有你说的这个   你看下我接下来该如何处理? 谢谢

这个地方没问题,是否内网其他地方有限制。你方便的话,可以对比下浏览器发出的httprequeat的内容和服务器收到的请求内容是否一样
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|FineUI 官方论坛 ( 皖ICP备2021006167号-1 )

GMT+8, 2024-4-30 06:21 , Processed in 0.061254 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表