File Upload to E-Commerce error?

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.
9/21/2011 12:35:48 PM
Gravatar
Total Posts 383
Thanks Squire Dude

File Upload to E-Commerce error?

Hi guys,

I have addressed this issue before but for some reason, usually because I am missing a step, the solution does NOT work!

I am trying to upload a .ZIP file to the Ships Chandlery (E-Commerce) section of the site.

  1. Click on Ships Chandlery on the menu
  2. Click on Edit
  3. Click on Product Administration
  4. Select item and click Edit
  5. Select Fulfillment Type tab
  6. Click on the Browse button
  7. Select file to be uploaded to site
  8. Click on the Upload button
  9. Path appears in Footer of browser/nor Neat upload percent bar shows

I followed the instructions on http://www.mojoportal.com/supporting-large-file-uploads.aspx on how ti increase the upload maxfile size... I changed the following line <neatUpload useHttpModule="true" maxNormalRequestLength="4096" maxRequestLength="9000000" multiRequestUploadHandlerUrl="~/NeatUpload/MultiRequestUploadHandler.ashx" maxUploadRate="300" xmlns="http://www.brettle.com/neatupload/config/2008">

-------------------------------------------------------------------------------------------------

I am still getting an error, I clear the log file and ran the upload again... here is the log file lines...

2011-09-21 13:21:17,093 ERROR mojoPortal.Web.mojoBasePage - 75.83.84.81-en-US - /WebStore/AdminProductEdit.aspx?pageid=6&mid=9&prod=2abfe010-2ac4-4a0d-b855-4b1e0045f563
System.Web.HttpException (0x80004005): Maximum request length exceeded.
   at System.Web.HttpRequest.GetEntireRawContent()
   at System.Web.HttpRequest.GetMultipartContent()
   at System.Web.HttpRequest.FillInFormCollection()
   at System.Web.HttpRequest.get_Form()
   at System.Web.HttpRequest.get_HasForm()
   at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
   at System.Web.UI.Page.DeterminePostBackMode()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2011-09-21 13:21:17,203 ERROR mojoPortal.Web.Global - 75.83.84.81-en-US - /WebStore/AdminProductEdit.aspx?pageid=6&mid=9&prod=2abfe010-2ac4-4a0d-b855-4b1e0045f563- Referrer(http://www.yachtlogsoftware.com/WebStore/AdminProductEdit.aspx?pageid=6&mid=9&prod=2abfe010-2ac4-4a0d-b855-4b1e0045f563)
System.Web.HttpException (0x80004005): Maximum request length exceeded.
   at System.Web.HttpRequest.GetEntireRawContent()
   at System.Web.HttpRequest.GetMultipartContent()
   at System.Web.HttpRequest.FillInFormCollection()
   at System.Web.HttpRequest.get_Form()
   at System.Web.HttpRequest.get_HasForm()
   at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
   at System.Web.UI.Page.DeterminePostBackMode()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2011-09-21 13:21:31,312 ERROR mojoPortal.Web.mojoBasePage - 75.83.84.81-en-US - /WebStore/AdminProductEdit.aspx?pageid=6&mid=9&prod=2abfe010-2ac4-4a0d-b855-4b1e0045f563
System.Web.HttpException (0x80004005): Maximum request length exceeded.
   at System.Web.HttpRequest.GetEntireRawContent()
   at System.Web.HttpRequest.GetMultipartContent()
   at System.Web.HttpRequest.FillInFormCollection()
   at System.Web.HttpRequest.get_Form()
   at System.Web.HttpRequest.get_HasForm()
   at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
   at System.Web.UI.Page.DeterminePostBackMode()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2011-09-21 13:21:31,343 ERROR mojoPortal.Web.Global - 75.83.84.81-en-US - /WebStore/AdminProductEdit.aspx?pageid=6&mid=9&prod=2abfe010-2ac4-4a0d-b855-4b1e0045f563- Referrer(http://www.yachtlogsoftware.com/WebStore/AdminProductEdit.aspx?pageid=6&mid=9&prod=2abfe010-2ac4-4a0d-b855-4b1e0045f563)
System.Web.HttpException (0x80004005): Maximum request length exceeded.
   at System.Web.HttpRequest.GetEntireRawContent()
   at System.Web.HttpRequest.GetMultipartContent()
   at System.Web.HttpRequest.FillInFormCollection()
   at System.Web.HttpRequest.get_Form()
   at System.Web.HttpRequest.get_HasForm()
   at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
   at System.Web.UI.Page.DeterminePostBackMode()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2011-09-21 13:32:53,828 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2011-09-21 13:34:56,656 INFO mojoPortal.Web.Global - Application Started.

9/22/2011 8:20:07 AM
Gravatar
Total Posts 18439

Re: File Upload to E-Commerce error?

Hi Phill,

How large are the files? maybe MaxRequestLength needs to be even larger. You might also try increasing the MaxNormalRequestLength and you might try also setting a high maxRequestLength on the <httpRuntime element and see if that makes any difference.

Hope that helps,

Joe

9/22/2011 10:38:30 AM
Gravatar
Total Posts 383
Thanks Squire Dude

Re: File Upload to E-Commerce error?

Good morning Joe A,

Hope today is a bright and uneventful day for you.

Let me try to answer your questions in order...

  1. File Size = 8,696 KB
  2. MaxRequestLength = "9000000"
  3. MaxNormalRequestLength = "8192"
  4. maxRequestLength = "9000000"

If memory serves me correctly 9000000 = 9 MB which is slightly larger than the actual file size.

What am I missing?

There is another config file "Web.fulltrust.config", I have tried to make the same changes to this file without and change in result.

UPDATE:

When I run the Upload I only see a message in the status bar saying...

"Sending request to www.yachtlogsoftware.com..."  I never get to see the percent bar etc...

Grrr How can I have screwed this one up?

9/22/2011 10:57:27 AM
Gravatar
Total Posts 18439

Re: File Upload to E-Commerce error?

Hi Phill,

Doesn't sound like you tried my suggestions, please try them. Keep increasing the allowed values well beyond what you think they should be.

NeatUpload is only enabled if using the Web.fulltrust.config. If you don't see the progress bar then you are not using NeatUpload and therefore need to configure the <httpRuntime settings rather than neatupload settings.

Best,

Joe

 

9/22/2011 1:19:03 PM
Gravatar
Total Posts 383
Thanks Squire Dude

Re: File Upload to E-Commerce error?

Hi Joe A,

Thnks, I thought I was changing the lines you suggested but I guess not.

I think I have gone overboard with the changes.  Here are the new values in the web.config file...

<httpRuntime maxRequestLength="9000000000000000000000" executionTimeout="3600" useFullyQualifiedRedirectUrl="true" />

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

These are really out of whack.  I must be missing something else?  But what?

--------------------------------------------------

The new valued lines in the web.fulltrust.config

<httpRuntime maxRequestLength="90000000000000" executionTimeout="3600" useFullyQualifiedRedirectUrl="true"/>

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

-------------------------------------------------

System Log - still shows "Maximum request length exceeded"... "ggrrrr unprinatable words of frustration"

2011-09-22 14:15:27,093 ERROR mojoPortal.Web.mojoBasePage - 75.83.84.81-en-US - /WebStore/AdminProductEdit.aspx?pageid=6&mid=9&prod=42d2f03a-7f1c-412c-a6b0-39b7c9fa98d1
System.Web.HttpException (0x80004005): Maximum request length exceeded.
   at System.Web.HttpRequest.GetEntireRawContent()
   at System.Web.HttpRequest.GetMultipartContent()
   at System.Web.HttpRequest.FillInFormCollection()
   at System.Web.HttpRequest.get_Form()
   at System.Web.HttpRequest.get_HasForm()
   at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
   at System.Web.UI.Page.DeterminePostBackMode()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2011-09-22 14:15:27,203 ERROR mojoPortal.Web.Global - 75.83.84.81-en-US - /WebStore/AdminProductEdit.aspx?pageid=6&mid=9&prod=42d2f03a-7f1c-412c-a6b0-39b7c9fa98d1- Referrer(http://www.yachtlogsoftware.com/WebStore/AdminProductEdit.aspx?pageid=6&mid=9&prod=42d2f03a-7f1c-412c-a6b0-39b7c9fa98d1)
System.Web.HttpException (0x80004005): Maximum request length exceeded.
   at System.Web.HttpRequest.GetEntireRawContent()
   at System.Web.HttpRequest.GetMultipartContent()
   at System.Web.HttpRequest.FillInFormCollection()
   at System.Web.HttpRequest.get_Form()
   at System.Web.HttpRequest.get_HasForm()
   at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
   at System.Web.UI.Page.DeterminePostBackMode()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

-------------------------------------------------------------

UPDATE:

Should there be any sort of display to I can tell if the transfer is occurring and how much left?

I have tried shortening the file name - no change in results.  What the #$%@

I tried a small txt file from the root and it worked fine... I tried to move the .ZIP files to the root - FAILED, so it's NOT the path but the file itself somehow?  I tried a shortened version of the file name and it failed too.

9/22/2011 1:37:59 PM
Gravatar
Total Posts 18439

Re: File Upload to E-Commerce error?

Hi Phill,

Only the Web.config file is used. In order to use the Web.fulltrust.config file you would need to rename the current Web.config  file like Web.mediumtrust.config then rename Web.fulltrust.config to just Web.config and make sure you have the same machine key as your other Web.config file.

If you don't see a popup window with a progress bar then you don't have NeatUpload enabled.

Look under Administration > System Information and tell me whether it says you have full trust and what version of .NET

Best,

Joe

9/22/2011 1:39:57 PM
Gravatar
Total Posts 18439

Re: File Upload to E-Commerce error?

ps please go lightly on all these post edits you keep making, every time you edit it resends email to all subscribers of this forum and there are a lot of subscribers so its sending a lot of extra emails.

Thanks,

Joe

9/22/2011 1:46:01 PM
Gravatar
Total Posts 383
Thanks Squire Dude

Re: File Upload to E-Commerce error?

Hi Joe A,

Sorry to be such a pain for what was such a simple job last time!

Here are the settings from the System Information page...

System Information                         mojoPortal Version 2.3.6.6 MSSQL
Operating System                            Microsoft Windows NT 5.2.3790 Service Pack 2
ASP.NET Info                                   v4.0.30319 Running in Full Trust
Server Time Zone                            Eastern Daylight Time
Server Local Time (GMT -4)              9/22/2011 2:40:37 PM
Greenwich Mean Time (GMT/UTC)     9/22/2011 6:40:37 PM

I notice that I am running "Full Trust" also while on this page it says that my local time is GMT-4 in reality it is GMT -8 (Pacific time as noted in the Site Setting page)

Thanks

9/22/2011 1:52:16 PM
Gravatar
Total Posts 18439

Re: File Upload to E-Commerce error?

That just means the server is configured for Eastern Daylight time, it doesn't affect your site time zone which is set from site settings. The only thing you care about is that the clock on the server is accurate for its own time zone so that times can be adjusted correctly.

So with .NET 4 full trust I would use the Web.fulltrust.config renaming it and putting your machine key in there as I mentioned before.

Then try a smaller upload and verify that NeatUpload is working and that you see the progress bar. If you aren't sure what it should look like try the demo site.

Once you are sure NeatUpload is working, clear the log, then try a larger file, then if it fails check the log again and post one copy of the error here.

9/22/2011 2:21:54 PM
Gravatar
Total Posts 383
Thanks Squire Dude

Re: File Upload to E-Commerce error?

Hi Joe A,

The man is a certified genius.  I don't know how you can keep all these solutions straight in your mind.  I've been a programmer and developer for over 20 years now and I can't keep up with your retention level.

Anyway; 1st I will be more mindful of the Edits/Updates to the Forum.

2nd I changed the Config files as you suggested

3rd I tried to upload a smaller text file to make sure that NeatUpload was working - it was!

4th I went back for my original file and tried to upload it - IT WORKED

Thank you so much for your patience and huge knowledge retention.

Thanks

9/22/2011 2:29:51 PM
Gravatar
Total Posts 18439

Re: File Upload to E-Commerce error?

Glad to hear its working Phill!

and many thanks for the beers!

Cheers,

Joe

 

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