When attempting to enable or disable rules on the Client Access Restrictions page, the following error occurs:
An unexpected error has occurred. Contact your system administrator if the problem persists. See SS-AdminSite-WebServices.log for error details.
Exception Details:
Error Message: Operation is not valid due to the current state of the object.Stack Trace: Operation is not valid due to the current state of the object. at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded() at System.Web.HttpValueCollection.Add(HttpCookieCollection c) at System.Web.HttpRequest.FillInParamsCollection() at System.Web.HttpRequest.GetParams() at Bentley.SelectServer.Web.Admin.Global.Application_BeginRequest(Object sender, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
If the Client Access Restrictions page has a few thousand rules, an error may occur when attempting to enable or disable rules. For such situations, the default limit can be overridden by modifying a configuration file in the SELECTserver folder.
Edit the web.config file located in C:\Program Files\Bentley\SELECTserver. Add the following line to the <appSettings> section:
<add key="aspnet:MaxHttpCollectionKeys" value="1500" />