• Register
0 votes
66 views

Problem :

I am having my radcombo machines on aspx page and whenever I try to select any option from them then it gives me following `Server Error in '/' Application.

Exception Details: System.InvalidOperationException: Operation is not valid due to the current state of the object.

My Version Information:

Microsoft .NET Framework Version: 2.0.50727.3634

ASP.NET Version: 2.0.50727.3634

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had also faced the similar issue in the past. I did lot of research to find solution on it. The solution for the issue is as follows:

This issue generally happens because of Microsoft Security Update MS11-100 which limits the number of keys in your Forms collection during the HTTP POST request. To remove this problem you must increase that number.

This can be achieved in your application’s Web.Config file in the <appSettings> section. You need to create the section directly under <configuration> if it is not there. Also you must add following 2 lines in the lines below in the section:

<add key="aspnet:MaxHttpCollectionKeys" value="2000" />

<add key="aspnet:MaxJsonDeserializerMembers" value="2000" />

The above line of code is used to set the limit to 2000 keys. This will help in lifting the limitation and it will also help in resolving the error and you will be able to perform the desired operations normally.

9 7 4
38,600 points

Related questions

0 votes
2 answers 417 views
417 views
Problem : Currently I am migrating from the Identity 1.0.0 to Identity 2.0.1. But the migrations code generated is nothing about the new IdentityUser. And It does not even add the new columns. So I tried to make the new project and also I ... current context At below line IdentityResult result = await UserManager.CreateAsync(user, model.Password); Any clue about the solution on my above problem?
asked Dec 25, 2019 alecxe 7.5k points
0 votes
1 answer 3 views
3 views
Problem: I am on a C# ASP.NET project. it is showing error System.InvalidCastException: Specified cast is not valid. showing count = (from x in mytable.AsEnumerable() where x.Field<Int32>("userid") == usercode select x).Count(); in red highlight area. Please help.
asked Mar 21 ummesalma 22k points
0 votes
1 answer 30 views
0 votes
1 answer 54 views
0 votes
1 answer 15 views
15 views
Problem: I am very new to C# and Asp.net. I have tried to write the below code: protected void Page_Load(object sender, EventArgs e) { num = Convert.ToInt32(Request.QueryString["RegNo"].ToString()); if (!IsPostBack) { BindTextBoxvalues(); }     } But my above code is ... for the past few days, I have also taken the help from the colleagues in my team but still I am facing the same old error.
asked Sep 3, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 751 views
751 views
Problem : Facing following ASP.Net error an asynchronous module or handler completed while an asynchronous operation was still pending.
asked Nov 14, 2019 peterlaw 6.9k points
0 votes
1 answer 685 views
685 views
Problem : When I am attempting to connect to MSSQL database via ASP.NET online, I will often get the below error when two or more people try to connect simultaneously: ExecuteReader requires an open and available Connection. The connection's current state is Connecting. My site works fine on the localhost server. May I know what might have gone wrong with my site and how can I fix the error?
asked Jan 31, 2020 jwilliam 3.9k points
0 votes
1 answer 129 views
129 views
Problem : I am new to ASP.Net and I have an ASP.Net application which runs correctly on my local development machine. But when I try to run this application online, it shows me following error Format of the initialization string does not conform to specification starting at index 0 I don’t have any clue about this error. Does anybody have any idea regarding solution on this error?
asked Nov 25, 2019 alecxe 7.5k points
0 votes
1 answer 28 views
28 views
How can you find the mime type of a file based on the file signature, not the extension in .Net? I want a simple way to get a mime type where the file extension is incorrect or not given, something similar?
asked Aug 29, 2020 Aliza313 720 points
0 votes
1 answer 3 views
3 views
Problem: I wrote this code. The code contains the expected runat="server" attribute, but it is giving me this error message: error on hiddenfield So what might be causing this error?
asked Mar 20 ummesalma 22k points