Operation is not valid due to the current state of the object.

ASP.NET üzerinde AjaxcontrolToolkit kullandıysanız, kullandığınız ekranda postback yapılırken "Operation is not valid due to the current state of the object.hatasını alabilirsiniz. Bunu önlemenin yolu .NET frameworkteki MaxHttpCollection ayarını değiştirmekten geçiyor. Web config dosyasına aşağıdaki satırları ilave ettiğinizde sorun düzelecektir.



Web Config üzerinde eklemeniz gereken satır:

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

Hata Ekranı:





Hiç yorum yok:

BlackListIP control on Serenity platform (.NET Core)

 In the Serenity platform, if you want to block IPs that belong to people you do not want to come from outside in the .net core web project,...