Large file upload aborted with NeatUpload solution

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
2/11/2013 6:26:02 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Large file upload aborted with NeatUpload solution

After wrestling yet again with large uploads failing, I thought I'd note the solution this time round.

My site is on Arvixe shared hosting, running in full trust, with Neat Upload enabled, but an upload of 5.5MB was repeatedly failing with "Error: Thread was being aborted", bunging me out to the home page.

What did not work was altering any of the settings in this section of web.config:

    <neatUpload useHttpModule="true"
                maxNormalRequestLength="2097151"
                maxRequestLength="2097151"
                multiRequestUploadHandlerUrl="~/NeatUpload/MultiRequestUploadHandler.ashx"
                maxUploadRate="-1" xmlns="http://www.brettle.com/neatupload/config/2008">
    </neatUpload>

What did work was adding the bold bit to this line in web.config:

<httpRuntime requestValidationMode="2.0" maxUrlLength="560" maxQueryStringLength="2048" executionTimeout="3600" />

making me wonder whether this could be there by default? (because I've stupidly had to find the solution to this about three times now after overwriting web.config with mojoPortal upgrades!).

2/18/2013 1:15:45 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: Large file upload aborted with NeatUpload solution

And there's more... posted for info.

I now want to do really large file uploads (>30MB) and this was not working despite the executionTimeout fix mentioned previously. The NeatUpload progress bar appears, but never does anything after that - no "progress".

I then following the advice in the nether regions of:

http://www.mojoportal.com/supporting-large-file-uploads.aspx

However adding/uncommenting this section in web.config made no difference:

    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="104857600"/>
      </requestFiltering>
    </security>

Next I looked for %SystemRoot%/system32/inetserv/config/applicationHost.config to see if this was blocking the change, but no such files exists on my server C drive.

Next I tried running commandline (replacing "MySite/MyApp" with the name of my site of course): 

appcmd set config "MySite/MyApp" -section:requestFiltering -requestLimits.maxAllowedContentLength:104857600 -commitpath:apphost

and it worked!! A 96MB upload is running fine as we speak.

But, I don't know whether this matters, but running this command:

appcmd list config "My Site/MyApp" -section:requestFiltering 

gave an error:

ERROR: (message:configurationError

Filename: \\?\D:\websites\xxx\web.config

Line Number: 1119

Description: The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration.)

 

5/27/2013 10:43:40 AM
Gravatar
Total Posts 12

Re: Large file upload aborted with NeatUpload solution

Hey Crispin,

Do you know what else you may have tried to get this working? I have the exact same issue and have gone through the same steps as you but I can't make a file upload larger than 20MB work.

Here's my post: https://www.mojoportal.com/Forums/Thread.aspx?pageid=5&t=11753~1#post48889

Any help would be greatly appreciated! I've done everything you've mentioned, I'm just trying to find the setting that's causing all of my grief.

Thanks!

5/27/2013 2:47:28 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: Large file upload aborted with NeatUpload solution

I'd suggest upgrading to 2.3.9.7 to use the new file uploader. With this in place, I find I only need to alter the httpruntime settings in web.config (size and timeout).  It's not ideal having to change settings in web.config, but I make a note in my upgrade instructions, and at least all the settings are now in one place.

 

You must sign in to post in the forums. This thread is closed to new posts.