FineUI 官方论坛

标题: 【已解决】服务器请求报错 - Invalid length for a Base-64 char array [打印本页]

作者: hedoudou2240    时间: 2015-4-8 12:56
标题: 【已解决】服务器请求报错 - Invalid length for a Base-64 char array


作者: sanshi    时间: 2015-4-8 13:36
参考:http://stackoverflow.com/questio ... est-network-error-0

作者: hedoudou2240    时间: 2015-4-8 14:46
sanshi 发表于 2015-4-8 13:36
参考:http://stackoverflow.com/questions/25922043/ie-https-cors-xhr-request-fails-with-script7002-xm ...

这上面是设置IE   但是谷歌浏览器也是这个错误
作者: sanshi    时间: 2015-4-8 15:11
hedoudou2240 发表于 2015-4-8 14:46
这上面是设置IE   但是谷歌浏览器也是这个错误

请求被终止,只能猜测:
1. 是否浏览器的某个插件导致的
2. 内部网络的网关的某些限制
作者: hedoudou2240    时间: 2015-4-8 17:48
本帖最后由 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)  

作者: hedoudou2240    时间: 2015-4-8 17:51
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)
作者: sanshi    时间: 2015-4-8 19:59
hedoudou2240 发表于 2015-4-8 17:51
你好,我服务器日志记录是fineUI底层下面这个错误,我在测试服务器上是好的,在正式服务器就报错,我怀疑 ...

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

先检查下 Web.config 中有没有类似的设置:
  1. <system.web>
  2.     <!-- 请求正文的最大值: 512000K = 500M  -->
  3.     <httpRuntime maxRequestLength="512000" />
复制代码

作者: sanshi    时间: 2015-4-8 19:59
hedoudou2240 发表于 2015-4-8 17:51
你好,我服务器日志记录是fineUI底层下面这个错误,我在测试服务器上是好的,在正式服务器就报错,我怀疑 ...

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

先检查下 Web.config 中有没有类似的设置:
  1. <system.web>
  2.     <!-- 请求正文的最大值: 512000K = 500M  -->
  3.     <httpRuntime maxRequestLength="512000" />
复制代码

作者: hedoudou2240    时间: 2015-4-8 20:58
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=""/>

作者: sanshi    时间: 2015-4-8 22:13
hedoudou2240 发表于 2015-4-8 20:58
嗯  我看了   的确有你说的这个   你看下我接下来该如何处理? 谢谢

这个地方没问题,是否内网其他地方有限制。你方便的话,可以对比下浏览器发出的httprequeat的内容和服务器收到的请求内容是否一样
作者: sanshi    时间: 2015-4-8 22:13
hedoudou2240 发表于 2015-4-8 20:58
嗯  我看了   的确有你说的这个   你看下我接下来该如何处理? 谢谢

这个地方没问题,是否内网其他地方有限制。你方便的话,可以对比下浏览器发出的httprequeat的内容和服务器收到的请求内容是否一样
作者: hedoudou2240    时间: 2015-4-9 12:41
sanshi 发表于 2015-4-8 22:13
这个地方没问题,是否内网其他地方有限制。你方便的话,可以对比下浏览器发出的httprequeat的内容和服务 ...

好了   已经联系对方网络维护人员解决哦    执行这些动作会post 的方式发起 XSS攻击~~~谢谢你咯




欢迎光临 FineUI 官方论坛 (https://www.fineui.com/BBS/) Powered by Discuz! X3.4