November Happy Hour will be moved to Thursday December 5th.

File Manager 404 error when uploading large file

Vote:
 

Hello,


I have two sites that are CMS 6 R2 with one being Relate+ and the other standard CMS

On the Relate+ site I can upload a file to the file manager that is 38mb in size however the other site fails with a 404 error. Using Fiddler it states the 404 error is on /CMSRoot/CMS/Edit/ActionWindow.aspx?id=10&plugin=36 but pasting this into the browser works ok and loads the correct action window.

I've checked the request limits in the the web.config files and they are the same on both sites and all other possible config values appear to be the same as well.

I've checked IIS and the values of Request Filtering > Request limits are set to 4294967295 on both sites (this matches the max request limits in web.config).

Finally I enabled logging on the site that produces the error and the action generates the following in the log file:

2013-08-22 15:22:29,194 DEBUG [8] EPiServer.Web.UrlRewriteModuleBase.BeginRequestEventHandler - Starting request with Url http://pathtocms/CMS/Edit/ActionWindow.aspx?id=10&plugin=36
2013-08-22 15:22:29,194 DEBUG [8] EPiServer.Web.UrlRewriteModule.HttpUrlRewriteToInternal - Url is not valid for rewrite. Returning URL http://pathtocms/CMS/Edit/ActionWindow.aspx?id=10&plugin=36
2013-08-22 15:22:29,194 DEBUG [8] EPiServer.Web.UrlRewriteModuleBase.BeginRequestEventHandler - Exiting with no rewrite, Url is http://pathtocms/CMS/Edit/ActionWindow.aspx?id=10&plugin=36

I've uploaded a small file on the site that produces the error successfully so this suggests the size of the file is the issue for some reason.

Can anyone think of what I am missing or anything else I can do to try and identify the cause?

Thanks in advance,

Mark

#74239
Aug 22, 2013 16:40
Vote:
 

Do you have some request limits on <location> elements for VPP folders?

#74245
Aug 22, 2013 17:29
Vote:
 

Hi Valdis,

The <location> element in web.config for the VPP folder concerned is the same on both sites and set as follows on both:

  <location path="Global">
    <system.webServer>
      <handlers>
        <add name="webresources" path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" />
        <add name="wildcard" path="*" verb="*" type="EPiServer.Web.StaticFileHandler, EPiServer" />
      </handlers>
    </system.webServer>
    <staticFile expirationTime="-1.0:0:0" />
  </location>

Mark

#74272
Aug 23, 2013 9:29
Vote:
 

If you are uploading files in CMS Admin UI - try to set request limits to "/{your cms path}/CMS/Admin/" location. If you upload in CMS Editor UI - set limits for "/{your cms path}/CMS/Edit" location.

#74318
Aug 23, 2013 14:32
Vote:
 

Hi Validis,

Well, I've checked this and I don't have locations for CMS/Admin or CMS/Edit but I do have a location section for "{my cms path}" which should cover both admin and edit. This is set the same on both sites, the site that works and the site that doesn't so I don't think that this is the cause...

Mark

#74385
Aug 27, 2013 10:54
Vote:
 

In case anyone is interested a colleague helped resolve this as follows:

 - Values added to <http request> executionTimeout="7200" maxRequestLength="204800"

 - maxAllowedContentLength value increased on web server

 <security>

    <requestFiltering>

        <requestLimits maxAllowedContentLength="5024000000" />

    </requestFiltering>

</security>

#75087
Sep 17, 2013 12:58
Vote:
 

thanks!

IMPORTANT NOT TO FORGET THE FOLLOWING:

<security>

    <requestFiltering>

        <requestLimits maxAllowedContentLength="5024000000" />

    </requestFiltering>

</security>

#120446
Apr 17, 2015 10:10
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.