English 中文(简体)
由于在回扣期间物体错误的目前状况,该行动无效。
原标题: Operation is not valid due to the current state of the object error during postback
  • 时间:2012-01-12 09:11:05
  •  标签:
  • asp.net

我有一页的牛页运转良好,但我突然发现,“由于物体的目前状况,在出现退位时,行动无效”。

st痕是:

at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded()
at System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding)
at System.Web.HttpRequest.FillInFormCollection()

谁能帮助?

最佳回答

有些人将几个形式领域张贴到你的网页上。 最近的安全更新所引入的新违约最高点是1,000。

请在您的网页上添加以下内容: 在这一范围内,你将马克斯·赫特普·乔普的价值观最大化,这将压倒网上框架规定的缺省。 您可以按照您的形式需要相应改变价值。

<appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="2001" />
 </appSettings>

详情请上>>。 更深入了解微型软件的安全等级,可读到

问题回答

我在电网上应用了电图,覆盖了600多份记录(有检查箱、纽州等),以及2001年 did工的价值。 你可以提高价值,如10 000和试验。

<appSettings>
<add key="aspnet:MaxHttpCollectionKeys" value="10000" />
</appSettings>

对于ASP.NET 1.1来说,这仍然因为有人张贴了1 000多个形式领域,但必须在登记处而不是在法庭档案中改变环境。 更正应作在登记册下以MaxHttpCollectionKeys为名的DWORD。

HKEY_LOCAL_MACHINESOFTWAREMicrosoftASP.NET1.1.4322.0

for 32-bit editions of Windows, and

HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftASP.NET1.1.4322.0

视窗64-bit版。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签