{"id":114,"date":"2014-05-06T13:49:30","date_gmt":"2014-05-06T13:49:30","guid":{"rendered":"http:\/\/www.torontohelpdesk.ca\/blog\/?p=114"},"modified":"2014-05-07T13:05:37","modified_gmt":"2014-05-07T13:05:37","slug":"rww-shared-folders-not-accessible","status":"publish","type":"post","link":"https:\/\/www.torontohelpdesk.ca\/blog\/rww-shared-folders-not-accessible\/","title":{"rendered":"RWW &#8211; Shared folders not accessible"},"content":{"rendered":"<p><strong>Problem:<\/strong><\/p>\n<p>You log into Remote Web Workplace and you try accessing shared folders. You get the following error:<\/p>\n<p>The page at https:\/\/remote.yourdomain.com says:<\/p>\n<p>An unexpected error occurred. Please try again. If the problem continues, contact the person who manages your server.<\/p>\n<p><strong>Solution:<\/strong><\/p>\n<p>(h\/t Blackforce)<\/p>\n<p><a href=\"http:\/\/www.blackforce.co.uk\/2014\/01\/13\/sbs-2011-rdweb-shared-folders-an-unexpected-error-occured\" target=\"_blank\">http:\/\/www.blackforce.co.uk\/2014\/01\/13\/sbs-2011-rdweb-shared-folders-an-unexpected-error-occured<\/a><\/p>\n<p>Had an interesting problem today with a 2011 SBS server. The problem was that when users went to the remote desktop workplace website RDWeb. They were unable to browse through the Shared Folders.<br \/>\n<span id=\"more-2090\"><\/span><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2092\" src=\"http:\/\/www.blackforce.co.uk\/wp-content\/uploads\/2014\/01\/RDSweb8.jpg\" alt=\"RDSweb8\" width=\"315\" height=\"316\" \/><\/p>\n<p>When the users clicked on a folder they were greeted by the error message :<\/p>\n<p><code>An unexpected error occurred. Please try again. If the problem continues, contact the person who manages your server<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2091\" src=\"http:\/\/www.blackforce.co.uk\/wp-content\/uploads\/2014\/01\/RDSweb.jpg\" alt=\"RDSweb\" width=\"448\" height=\"175\" \/><\/p>\n<p>The first place to investigate was the SBS servers application event log. There were numerous errors with an event id of 3 and Source System.ServiceModel 4.0.0.0.<\/p>\n<p>The error below presented itself everytime you clicked on a folder.<\/p>\n<p><code>WebHost failed to process a request. Sender information : System.ServiceModel.Activation.HostedHTTPRequestAsyncResult\/17653682 Exception: System.ServiceModel.ServiceActivationException: The service '\/Remote\/BuiltIns\/RDP\/RemoteDesktopWebService.svc' cannot be activated due to an exception during compilation.<\/code><\/p>\n<p>The error then went on to say :<\/p>\n<p><code>The exception message is: Memory gates checking failed because the free memory (48817920 bytes) is less than 5% of total memory. As a result, the service will not be available for incoming request<\/code><\/p>\n<p>I have included a screenshot of the full error below as it goes on a bit..<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2093\" src=\"http:\/\/www.blackforce.co.uk\/wp-content\/uploads\/2014\/01\/rdsinstall15-492x600.jpg\" alt=\"rdsinstall15\" width=\"492\" height=\"600\" \/><\/p>\n<p>So from this error we know that the reason why it wont work is because the free memory is less than 5% of the server. This must be something built into SBS as i\u2019ve never seen this before.<\/p>\n<p>A quick workaround to get your users up and running is to free up some memory. Restart the Information Store service and you should be good.<\/p>\n<p>From looking around there seem to be 2 permanent solutions.<\/p>\n<p>1) Set the threshold to lower than 5%<br \/>\n2) Limit the Exchange Server store.exe from taking up all the memory.<\/p>\n<p>I decided to go with option 2 as the server is used in a very small environment and store.exe was taking up 8gb.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2094\" src=\"http:\/\/www.blackforce.co.uk\/wp-content\/uploads\/2014\/01\/RDSweb2.jpg\" alt=\"RDSweb2\" width=\"472\" height=\"77\" \/><\/p>\n<p>To carry this out we need to change 2 attributes in ADSIedit.<\/p>\n<p>MsExchESEParamCacheSizeMax and MsExchESEParamCacheSizeMin.<\/p>\n<div class=\"wpInsert wpInsertInPostAd wpInsertMiddle\" style=\"margin: 5px; padding: 0px;\"><\/div>\n<p>First of all lets open adsiedit.msc. Then select \u201cselect a well known Naming Context\u201d. In the drop down box select Configuration. Then click ok<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2095\" src=\"http:\/\/www.blackforce.co.uk\/wp-content\/uploads\/2014\/01\/RDSweb3.jpg\" alt=\"RDSweb3\" width=\"381\" height=\"377\" \/><\/p>\n<p>Then drill down to the location we need.<\/p>\n<p>Configuration &gt; Services &gt; Microsoft Exchange &gt; &gt; Administrative Groups &gt; &gt; Servers &gt; &gt; InformationStore<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2096\" src=\"http:\/\/www.blackforce.co.uk\/wp-content\/uploads\/2014\/01\/RDSweb4.jpg\" alt=\"RDSweb4\" width=\"443\" height=\"483\" \/><\/p>\n<p>Right click on the CN=InformationStore container and click properties.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2097\" src=\"http:\/\/www.blackforce.co.uk\/wp-content\/uploads\/2014\/01\/RDSweb5.jpg\" alt=\"RDSweb5\" width=\"346\" height=\"245\" \/><\/p>\n<p>In the Attribute Editor tab scroll down until you find the 2 attributes MsExchESEParamCacheSizeMax and MsExchESEParamCacheSizeMin.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2098\" src=\"http:\/\/www.blackforce.co.uk\/wp-content\/uploads\/2014\/01\/RDSweb6.jpg\" alt=\"RDSweb6\" width=\"402\" height=\"447\" \/><\/p>\n<p>You now want to populate these fields with your desired values. For me I want to set the server to 6GB Max. So you have to work out the value to enter. 6GB is 6.291.456 KB then you want to divide that number by 32. This gives us a max value of 196608.<\/p>\n<p>I\u2019ve put some values in below pre calculated<\/p>\n<p>8GB = 262144<br \/>\n6GB = 196608<br \/>\n4GB = 131072<br \/>\n2GB = 65536<\/p>\n<p>I then set a minimum size of 4GB.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2114\" src=\"http:\/\/www.blackforce.co.uk\/wp-content\/uploads\/2014\/01\/RDSWEB.jpg\" alt=\"RDSWEB\" width=\"404\" height=\"448\" \/><\/p>\n<p>Now restart the Information Store Service and your all good.<\/p>\n<p>After a while you should find the store.exe process hovers between 4 and 6GB memory usage.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2116\" src=\"http:\/\/www.blackforce.co.uk\/wp-content\/uploads\/2014\/01\/Memory-After.jpg\" alt=\"Memory After\" width=\"453\" height=\"47\" \/><\/p>\n<p><strong>\u00a0Update:<\/strong><\/p>\n<p>The problem was still happening so I did the following and we&#8217;ll see what happens:<\/p>\n<p>Edit (via NotePad) the web.config\u00a0file in &#8220;C:\\Program Files\\Windows Small Business Server\\Bin\\WebApp\\RemoteAc<wbr \/>cess<\/p>\n<p>&#8220;<strong>Find the line<\/strong> &lt;serviceHostingEnvironment<wbr \/> aspNetCompatibilityEnabled<wbr \/>=&#8221;true&#8221; \/&gt; (near the bottom)<\/p>\n<p><strong>Change it to be (all one line) <\/strong>&lt;serviceHostingEnvironmen<wbr \/>t aspNetCompatibilityEnabled<wbr \/>=&#8221;true&#8221; minFreeMemoryPercentageToA<wbr \/>ctivateSer<wbr \/>vice=&#8221;0&#8243; \/&gt;<\/p>\n<p>Restart the World Wide Web Publishing service (which will in turn bounce the RDG service).<\/p>\n<p>(h\/t <a href=\"http:\/\/social.technet.microsoft.com\/Forums\/en-US\/bf09abb7-ad7b-4d65-a993-6fa9d53d6235\/remote-access-button-stops-working-sbs-2011-standard-event-id-3-and-1309?forum=smallbusinessserver\" target=\"_blank\">ema_sge<\/a>)<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem: You log into Remote Web Workplace and you try accessing shared folders. You get the following error: The page at https:\/\/remote.yourdomain.com says: An unexpected error occurred. Please try again. If the problem continues, contact the person who manages your <a class=\"more-link\" href=\"https:\/\/www.torontohelpdesk.ca\/blog\/rww-shared-folders-not-accessible\/\">Continue reading <span class=\"screen-reader-text\">  RWW &#8211; Shared folders not accessible<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-sbs-2011"],"_links":{"self":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":3,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":117,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts\/114\/revisions\/117"}],"wp:attachment":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/categories?post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/tags?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}