首页 新闻 会员 周边

Asp.net的Server Error in ‘/’ Application

0
[已解决问题] 解决于 2018-11-13 11:26


图片翻译
Invalid postback or callback argument.Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true"%> in a page. For Security purposes,this feature verifies that arguments to postback or callback events originae from the server control that originally redered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to reister the postback or callback data for validation
翻译:
无效回发或回调参数。在配置中使用<pages enableEventValidation="true"/>或在页面中使用<%@Page EnableEventValidation="true"%>启用事件验证。出于安全目的,该特性验证回发或回调事件的参数源自最初对其进行重写的服务器控件。如果数据是有效的和预期的,则使用ClientScriptManager.RegisterForEventValidation方法来重新生成回发或回调数据以进行验证

Description: An unhandled exception occured 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
描述:当前Web请求执行过程中发生未处理的异常,请查看堆栈跟踪以获取有关错误及其起源于代码中的更多信息

Exception Detail:system ArgumentException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true"%> in a page.For security purposses, this feature verifies that arguments to postback or callback events originate from the server control the originally rendered them, If the data is valid and expected, use the ClientScriptManager. RegisterForEventValidation method in order to register the postback or callback data for validation.
异常详细信息:系统AgMutEnter异常:无效的回发或回调参数。在配置中使用<pages enableEventValidation="true"/>或在页面中使用<%@Page EnableEventValidation="true"%启用事件验证。如果数据是有效的和预期的,使用clitScript管理器.RealStestFrEvestValueMebug方法注册PO

Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below
源错误:在当前Web请求的执行过程中生成未处理的异常。可以使用以下异常堆栈跟踪标识有关异常的来源和位置的信息

虽然翻译出来了,但是完全看不懂
请问各位大佬,这个错误改怎么解决

kuangx的主页 kuangx | 菜鸟二级 | 园豆:334
提问于:2018-11-13 09:58
< >
分享
最佳答案
0

在页面<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 中添加 EnableEventValidation="false" 试试看

奖励园豆:5
徒然喜欢你 | 小虾三级 |园豆:1741 | 2018-11-13 10:07

添加了,不报错了,但是我刚刚上网查到说就是 可能有的人设置false后问题解决了,可能有的人设置false之后,该问题解决了却引发了连带问题。事件验证 又是怎么一回事呢?假设后天写代码又出问题,不是很麻烦吗

kuangx | 园豆:334 (菜鸟二级) | 2018-11-13 10:15

解决之后,我获取不到dropdownlist下拉框联动的值了

kuangx | 园豆:334 (菜鸟二级) | 2018-11-13 10:17
徒然喜欢你 | 园豆:1741 (小虾三级) | 2018-11-13 10:18
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册