{"id":967,"date":"2015-11-10T01:15:13","date_gmt":"2015-11-09T23:15:13","guid":{"rendered":"https:\/\/www.vioreliftode.com\/?p=967"},"modified":"2016-04-14T13:18:25","modified_gmt":"2016-04-14T11:18:25","slug":"how-to-make-sharepoint-2013-to-not-fail-long-running-uploads","status":"publish","type":"post","link":"https:\/\/www.vioreliftode.com\/index.php\/how-to-make-sharepoint-2013-to-not-fail-long-running-uploads\/","title":{"rendered":"How to make SharePoint 2013 to not fail long running uploads"},"content":{"rendered":"<input class=\"fooboxshare_post_id\" type=\"hidden\" value=\"967\"\/><p>You can upload files to SharePoint <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/gg134031.aspx\" target=\"_blank\">using different protocols<\/a>. In this article I will focus only on the classical web based upload (either Drag and Drop, or Upload Document option). \u000bThe out of the box settings SharePoint comes with does not affect for example long running uploads performed via OneDrive for Business client, but for sure <span style=\"text-decoration: underline;\">a long running upload will fail if is performed via browser<\/span>.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Why?<\/strong><\/span><br \/>\nBecause out of the box IIS &amp; SharePoint are not tuned properly!<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>What do I mean by long running uploads?<\/strong><\/span> Let&#8217;s suppose the network connectivity one user has with the SharePoint 2013 server is 1 Mbps, is constant and stable. He is trying to upload a 730 MB file using the web based upload. With the out of the box settings, the upload will fail after 25 minutes.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>And here is in pictures what I am talking about:<\/strong><\/span><br \/>\n<span style=\"text-decoration: underline;\">The drag &amp; drop upload (\/_layouts\/15\/upload.aspx)<br \/>\n<a href=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_01.png\"><img loading=\"lazy\" class=\"alignleft wp-image-969 size-full\" src=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_01.png\" alt=\"How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_01\" width=\"1024\" height=\"592\" srcset=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_01.png 1024w, https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_01-300x173.png 300w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><br \/>\n<\/span><\/p>\n<p><a href=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_02.png\"><img loading=\"lazy\" class=\"alignleft size-full wp-image-970\" src=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_02.png\" alt=\"How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_02\" width=\"1028\" height=\"461\" srcset=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_02.png 1028w, https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_02-300x135.png 300w, https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_02-1024x459.png 1024w\" sizes=\"(max-width: 1028px) 100vw, 1028px\" \/><\/a><br \/>\n<em>Sorry, for some reason this document couldn&#8217;t upload. Try again later or contact you administrator.<\/em><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\">The classical Upload Document (\/_layouts\/15\/uploadEx.aspx)<br \/>\n<a href=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_03.png\"><img loading=\"lazy\" class=\"alignleft size-full wp-image-971\" src=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_03.png\" alt=\"How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_03\" width=\"1022\" height=\"674\" srcset=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_03.png 1022w, https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_03-300x198.png 300w\" sizes=\"(max-width: 1022px) 100vw, 1022px\" \/><\/a><br \/>\n<\/span><\/p>\n<p><a href=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_04.png\"><img loading=\"lazy\" class=\"alignleft size-full wp-image-972\" src=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_04.png\" alt=\"How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_04\" width=\"850\" height=\"561\" srcset=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_04.png 850w, https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_04-300x198.png 300w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><br \/>\n<em>Sorry, something went wrong. The security validation for this page has timed out. Click Back in your Web browser, refresh the page, and try your operation again.<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>How to fix it?<\/strong><\/span><br \/>\nOK &#8211; this article is not talking about how to modify the &#8220;Maximum Upload Size&#8221;. Let\u2019s be serious, I will not cover such basic setting. This article is for those who tried almost everything and are ready to give up.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\">1. Properly configure the IIS web site connection time-out setting.<br \/>\n<\/span>\u000bGo into the IIS console and for each affected web site modify the <em>Connection Time-out (seconds)<\/em> settings &#8211; set it to 120. Perform this for each Web Front End server part of your SharePoint farm. In case you published your SharePoint farm through an ARR NLB, make sure the IIS part of the ARR is also configured with same settings.<\/p>\n<p>Start -&gt; Administrative Tools -&gt; Internet Information Services (IIS) Manager -&gt; select the web site you want to configure -&gt; click Advanced Settings\u2026 (right side of the console) -&gt; Connection Time-out (seconds) -&gt; set it to 120 -&gt; click OK.<br \/>\n<a href=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_05.png\"><img loading=\"lazy\" class=\"alignleft size-full wp-image-973\" src=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_05.png\" alt=\"How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_05\" width=\"449\" height=\"550\" srcset=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_05.png 449w, https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_05-245x300.png 245w\" sizes=\"(max-width: 449px) 100vw, 449px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\">2. Adjust the Web Page Security Validation associated to you SharePoint Web Application.<br \/>\n<\/span>\u000bCentral Administration -&gt; Manage web applications -&gt; select the affected SharePoint Web Application -&gt; click General Settings -&gt; Web Page Security Validation -&gt; Security validation expires: Never.<br \/>\n<a href=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_06.png\"><img loading=\"lazy\" class=\"alignleft size-full wp-image-974\" src=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_06.png\" alt=\"How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_06\" width=\"642\" height=\"288\" srcset=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_06.png 642w, https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_06-300x135.png 300w\" sizes=\"(max-width: 642px) 100vw, 642px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\">3. Adjust the C:\\Program Files\\Common Files\\microsoft shared\\Web Server Extensions\\15\\TEMPLATE\\LAYOUTS\\web.config settings.<br \/>\n<\/span>The web.config located on C:\\Program Files\\Common Files\\microsoft shared\\Web Server Extensions\\15\\TEMPLATE\\LAYOUTS controls the behavior of the drag &amp; drop upload. \u000bLocate all the entries where <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/system.web.configuration.httpruntimesection.executiontimeout(v=vs.110).aspx\" target=\"_blank\">executionTimeout<\/a> is defined and adjust the value to 86400. Yes, I recommend for all entries. In case you deal with low bandwidth clients, all the SharePoint features should take in consideration long running operations. Perform this for each Web Front End server part of your SharePoint farm.<br \/>\n<a href=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_07.png\"><img loading=\"lazy\" class=\"alignleft size-full wp-image-975\" src=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_07.png\" alt=\"How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_07\" width=\"905\" height=\"467\" srcset=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_07.png 905w, https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_07-300x155.png 300w\" sizes=\"(max-width: 905px) 100vw, 905px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\">4. Adjust the SharePoint Web Site web.config.\u000b<\/span><br \/>\nLocate the web.config part of each SharePoint site affected by the long running uploads\/downloads and adjust all settings where <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/system.web.configuration.httpruntimesection.executiontimeout(v=vs.110).aspx\" target=\"_blank\">executionTimeout<\/a> is defined. Set the new value to 86400. Perform this for each Web Front End server part of your SharePoint farm.<br \/>\n<a href=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_08.png\"><img loading=\"lazy\" class=\"alignleft size-full wp-image-976\" src=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_08.png\" alt=\"How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_08\" width=\"906\" height=\"696\" srcset=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_08.png 906w, https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_08-300x230.png 300w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\">5. Adjust the IIS App Pool Recycling and Process Model settings.<\/span><br \/>\nStart -&gt; Administrative Tools -&gt; Internet Information Services (IIS) Manager -&gt; Application Pools -&gt; select the application pool associated to the SharePoint site -&gt; right click Advanced Settings\u2026 -&gt; Regular Time Interval (minutes) -&gt; set it to 0 -&gt; click OK.<br \/>\nStart -&gt; Administrative Tools -&gt; Internet Information Services (IIS) Manager -&gt; Application Pools -&gt; select the application pool associated to the SharePoint site -&gt; right click Advanced Settings\u2026 -&gt; Idle Time-Out (minutes) -&gt; set it to 0 -&gt; click OK.<\/p>\n<p>0 is the default setting for the IIS App Pool part of the SharePoint IIS Web Sites, but it is good to verify these values especially if you published your SharePoint farm through an ARR NLB.<a href=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_09.png\"><img loading=\"lazy\" class=\"alignleft size-full wp-image-977\" src=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_09.png\" alt=\"How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_09\" width=\"454\" height=\"721\" srcset=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_09.png 454w, https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_09-189x300.png 189w\" sizes=\"(max-width: 454px) 100vw, 454px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>PS: Yes, the SharePoint 2013 drag &amp; drop upload has issues with the long running uploads -&gt; when the upload finishes, the progress bar is filled and the file is shown with the spinning wheel. It may look as &#8220;upload in progress&#8221;, but actually the upload is completed. If you refresh the page you will see the file\/files being uploaded. This is a software bug and I will open a Microsoft Support Call and request to have it fixed.<br \/>\n<a href=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_10.png\"><img loading=\"lazy\" class=\"alignleft size-full wp-image-978\" src=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_10.png\" alt=\"How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_10\" width=\"1026\" height=\"729\" srcset=\"https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_10.png 1026w, https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_10-300x213.png 300w, https:\/\/www.vioreliftode.com\/wp-content\/uploads\/2015\/11\/How_To_Make_SharePoint_2013_To_Not_Fail_Long_Running_Uploads_10-1024x728.png 1024w\" sizes=\"(max-width: 1026px) 100vw, 1026px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can upload files to SharePoint using different protocols. In this article I will focus only on the classical web based upload (either Drag and Drop, or Upload Document option). \u000bThe out of the box settings SharePoint comes with does not affect for example long running uploads performed via OneDrive for Business client, but for &hellip; <a href=\"https:\/\/www.vioreliftode.com\/index.php\/how-to-make-sharepoint-2013-to-not-fail-long-running-uploads\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to make SharePoint 2013 to not fail long running uploads<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"How to make SharePoint 2013 to not fail long running uploads https:\/\/wp.me\/p4NfDd-fB","jetpack_is_tweetstorm":false},"categories":[29],"tags":[48,46,9],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4NfDd-fB","_links":{"self":[{"href":"https:\/\/www.vioreliftode.com\/index.php\/wp-json\/wp\/v2\/posts\/967"}],"collection":[{"href":"https:\/\/www.vioreliftode.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vioreliftode.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vioreliftode.com\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vioreliftode.com\/index.php\/wp-json\/wp\/v2\/comments?post=967"}],"version-history":[{"count":0,"href":"https:\/\/www.vioreliftode.com\/index.php\/wp-json\/wp\/v2\/posts\/967\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vioreliftode.com\/index.php\/wp-json\/wp\/v2\/media?parent=967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vioreliftode.com\/index.php\/wp-json\/wp\/v2\/categories?post=967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vioreliftode.com\/index.php\/wp-json\/wp\/v2\/tags?post=967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}