<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>An unexpected error occurs when attempting to modify Client Access Restrictions</title><link>https://communities.bentley.com/communities/other_communities/licensing_cloud_and_web_services/w/wiki/32829/an-unexpected-error-occurs-when-attempting-to-modify-client-access-restrictions</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>An unexpected error occurs when attempting to modify Client Access Restrictions</title><link>https://communities.bentley.com/communities/other_communities/licensing_cloud_and_web_services/w/wiki/32829/an-unexpected-error-occurs-when-attempting-to-modify-client-access-restrictions</link><pubDate>Thu, 09 Feb 2017 21:26:28 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:80315624-1a11-4824-8e6c-9860dcaf770f</guid><dc:creator>Jeremy Hoesly</dc:creator><comments>https://communities.bentley.com/communities/other_communities/licensing_cloud_and_web_services/w/wiki/32829/an-unexpected-error-occurs-when-attempting-to-modify-client-access-restrictions#comments</comments><description>Current Revision posted to Licensing, Cloud and Web Services Wiki by Jeremy Hoesly on 2/9/2017 9:26:28 PM&lt;br /&gt;
&lt;table style="border-top:#dce5f0 0px solid;border-right:#dce5f0 0px solid;border-bottom:#dce5f0 0px solid;border-left:#dce5f0 0px solid;background-color:#dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;SELECTserver&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;08.11.07.111 &lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Administration&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Subarea:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Client Access restrictions&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1&gt;Error or Warning Message&lt;/h1&gt;
&lt;p&gt;When attempting to enable or disable rules on the Client Access Restrictions page, the following error occurs:&lt;/p&gt;
&lt;p&gt;An unexpected error has occurred. Contact your system administrator if the problem persists. See SS-AdminSite-WebServices.log for error details.&lt;/p&gt;
&lt;p&gt;Exception Details:&lt;/p&gt;
&lt;p&gt;Error Message: Operation is not valid due to the current state of the object.&lt;br /&gt;Stack Trace: &lt;br /&gt;Operation is not valid due to the current state of the object.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Web.HttpValueCollection.Add(HttpCookieCollection c)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Web.HttpRequest.FillInParamsCollection()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Web.HttpRequest.GetParams()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Bentley.SelectServer.Web.Admin.Global.Application_BeginRequest(Object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp;amp; completedSynchronously)&lt;/p&gt;
&lt;h1&gt;Explanation&lt;/h1&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h1&gt;How to Avoid&lt;/h1&gt;
&lt;p&gt;Edit the web.config file located in C:\Program Files\Bentley\SELECTserver. Add the following line to the &amp;lt;appSettings&amp;gt; section:&lt;/p&gt;
&lt;p&gt;&amp;lt;add key=&amp;quot;aspnet:MaxHttpCollectionKeys&amp;quot; value=&amp;quot;1500&amp;quot; /&amp;gt;&lt;/p&gt;&lt;img style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" alt=" " src="http://communities.bentley.com/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" width="189" height="60" /&gt; 
&lt;table style="border-top:#dce5f0 0px solid;border-right:#dce5f0 0px solid;border-bottom:#dce5f0 0px solid;border-left:#dce5f0 0px solid;background-color:#dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Jeremy Hoesly&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: client access restrictions, Administration, 08.11.07.111, en, Bentley Cloud Services, SELECTserver, SELECTsupport&lt;/div&gt;
</description></item></channel></rss>