{"id":198,"date":"2013-02-06T04:24:30","date_gmt":"2013-02-06T03:24:30","guid":{"rendered":"https:\/\/www.em-soft.si\/myblog\/elvis\/?p=198"},"modified":"2013-02-06T04:24:30","modified_gmt":"2013-02-06T03:24:30","slug":"sharepoint-error-in-sbs-2011-console","status":"publish","type":"post","link":"https:\/\/em-soft.si\/myblog\/elvis\/?p=198","title":{"rendered":"SharePoint Error in SBS 2011 Console"},"content":{"rendered":"<p>In some cases, I receive a critical error in SBS Console from SharePoint services. When I look into Event viewer, I find an error with this text:<\/p>\n<p><span style=\"color: #808080;\"><em>The SharePoint Health Analyzer detected an error.\u00a0 Web.config file has incorrect settings for the requestFiltering element.<\/em><\/span><br \/>\n<span style=\"color: #808080;\"><em>The requestFiltering element in web.config must have the allowDoubleEncoding attribute set to true in order to support file names with the + character in them. <\/em><\/span><br \/>\n<span style=\"color: #808080;\"><em>Also, it must have a child requestLimits element with the maxAllowedContentLength attribute set to 2147483647 to avoid interfering with file uploads.<\/em><\/span><br \/>\n<span style=\"color: #808080;\"><em>Ensure the requestFiltering element exists in web.config, that its allowDoubleEncoding attribute is set to true, that it has a child requestLimits element,<\/em><\/span><br \/>\n<span style=\"color: #808080;\"><em>\u00a0and that its maxAllowedContentLength is set to 2147483647. <\/em><\/span><br \/>\n<span style=\"color: #808080;\"><em>For more information about this rule, see &#8220;<a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=163442\">http:\/\/go.microsoft.com\/fwlink\/?LinkID=163442<\/a>&#8220;.<\/em><\/span><\/p>\n<p style=\"text-align: left;\">This is strange, because the element <em><strong>allowDubleEncoding<\/strong><\/em> does not exist, so I investigated how to solve it. The only think that was different in my <em>web.config <\/em>file and in the error was the value of the parameter <em><strong>maxAllowedContentLength<\/strong><\/em>. Therefore, there is the solution of the problem. Everything will be all OK, after you change this value.<br \/>\nYou can change this value directly in <em>web.config <\/em>or true<em> Internet Information Services<\/em>. To change it true IIS, you must first download an <strong><em>IIS Administration Pack <\/em><\/strong>from <a title=\"IIS Administration pack\" href=\"http:\/\/www.iis.net\/download\/AdministrationPack\" target=\"_blank\">here<\/a>.<br \/>\n1. Open the IIS, navigate to <em>SBS SharePoint site<\/em>, and click on <em>Configuration Editor<\/em>.<\/p>\n<p style=\"text-align: left;\"><a href=\"https:\/\/em-soft.si\/myblog\/elvis\/wp-content\/uploads\/2013\/02\/Blog1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-199\" title=\"IIS - SharePoint site\" src=\"https:\/\/em-soft.si\/myblog\/elvis\/wp-content\/uploads\/2013\/02\/Blog1.png\" alt=\"\" width=\"640\" height=\"381\" srcset=\"https:\/\/em-soft.si\/myblog\/elvis\/wp-content\/uploads\/2013\/02\/Blog1.png 823w, https:\/\/em-soft.si\/myblog\/elvis\/wp-content\/uploads\/2013\/02\/Blog1-300x178.png 300w, https:\/\/em-soft.si\/myblog\/elvis\/wp-content\/uploads\/2013\/02\/Blog1-624x371.png 624w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>There you have to navigate to <em>System.webserver &gt; Security &gt; requestFiltering<\/em>.<\/p>\n<p><a href=\"https:\/\/em-soft.si\/myblog\/elvis\/wp-content\/uploads\/2013\/02\/Blog2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-201\" title=\"Selecting section to edit in web.config\" src=\"https:\/\/em-soft.si\/myblog\/elvis\/wp-content\/uploads\/2013\/02\/Blog2.png\" alt=\"\" width=\"610\" height=\"344\" srcset=\"https:\/\/em-soft.si\/myblog\/elvis\/wp-content\/uploads\/2013\/02\/Blog2.png 610w, https:\/\/em-soft.si\/myblog\/elvis\/wp-content\/uploads\/2013\/02\/Blog2-300x169.png 300w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><br \/>\nExpand requestedLimits and change the <em><strong>maxAllowedContentLength<\/strong><\/em> value to <strong><em>2147483647<\/em><\/strong>.<\/p>\n<p><a href=\"https:\/\/em-soft.si\/myblog\/elvis\/wp-content\/uploads\/2013\/02\/Blog3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-202\" title=\"Blog3\" src=\"https:\/\/em-soft.si\/myblog\/elvis\/wp-content\/uploads\/2013\/02\/Blog3.png\" alt=\"\" width=\"608\" height=\"345\" srcset=\"https:\/\/em-soft.si\/myblog\/elvis\/wp-content\/uploads\/2013\/02\/Blog3.png 608w, https:\/\/em-soft.si\/myblog\/elvis\/wp-content\/uploads\/2013\/02\/Blog3-300x170.png 300w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/a><\/p>\n<p>Apply the changes, close IIS and restart IIS from command prompt with <em>IISReset \/restart<\/em>.<\/p>\n<p>After this, the critical alert in the console will disappear.<a style=\"text-decoration:none\" href=\"\/index.php?s=macrobid-online-is-it-safe\">.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In some cases, I receive a critical error in SBS Console from SharePoint services. When I look into Event viewer, I find an error with this text: The SharePoint Health Analyzer detected an error.\u00a0 Web.config file has incorrect settings for the requestFiltering element. The requestFiltering element in web.config must have the allowDoubleEncoding attribute set to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[23,24],"class_list":["post-198","post","type-post","status-publish","format-standard","hentry","category-windows-sbs-server","tag-sharepoint","tag-small-business-server"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=198"}],"version-history":[{"count":0,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/198\/revisions"}],"wp:attachment":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}