Upload problems after update.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
3/25/2013 8:37:34 AM
Gravatar
Total Posts 20

Upload problems after update.

Hello Joe,

In October I updated Mojoportal to the following situation :

mojoPortal Versione 2.3.9.0 MSSQL
Sistema Operativo Microsoft Windows NT 6.1.7601 Service Pack 1
Informazioni ASP.NET v4.0.30319 Esecuzione in 'Partial Trust'

To me it semmed all ok, since I checked only the text in the web.
 

I had many a directory to let users download files. I was warned now by users that these files could not be downloaded anymore. By Clicking on the name link, you reach only a partial blank page :

(e.g. http://www.volontarioprotezionecivile.it/SharedFiles/Download.aspx?pageid=18&mid=19&fileid=26)

which does not have any sense.

I am therefore trying to make the folder new by uploading all files again. I have problem uploading >4 Megs files. (They are the very same files I had before).

Example :

http://www.volontarioprotezionecivile.it/area-download.aspx

In the log files I see many errors :

2012-10-08 09:39:19,125 INFO 2012-10-08 09:39:19,531 INFO 2012-10-08 09:39:19,531 INFO 2012-10-08 09:39:19,657 INFO 2012-10-08 09:39:19,657 INFO 2012-10-08 09:39:19,688 ERROR 2012-10-08 09:39:57,194 ERROR 2012-10-08 09:39:57,303 ERROR 2012-10-08 09:39:57,319 ERROR 2012-10-08 09:40:57,727 ERROR 2012-10-08 09:41:04,231 ERROR 2012-10-08 09:41:25,414 ERROR 2012-10-08 09:41:31,354 ERROR 2012-10-08 09:42:13,581 ERROR 2012-10-08 09:42:18,256 ERROR 2012-10-08 09:42:30,936 ERROR 2012-10-08 09:42:44,928 ERROR 2012-10-08 09:42:56,935 ERROR 2012-10-08 09:43:18,008 ERROR 2012-10-08 09:43:31,609 ERROR 2012-10-08 09:45:01,029-10 09:41:38,736 ....

What should I do to upload such files (the biggest is only 11Meg file)?

I tried with : firefox and Iexplorer. Same result. Windows XP as Local OS. 2 different internet connections were used.

 

Thank you in advance

Alessandro

3/25/2013 11:38:54 AM
Gravatar
Total Posts 18439

Re: Upload problems after update.

Hi Alessandro,

First your error log is not showing error details.

See this article which may help you solve the problem with the log, or you might try enabling logging to the database to see if that works better.

The allowed size for uploading files is determined by configuration, nothing about upgrading can change that unless you forgot to migrate custom settings from your old web.config file to the new one. The default file upload size limit for IIS is about 4MB unless you configure it to allow larger. Everything I know about it is in the article Supporting Large File Uploads. You cannot use NeatUpload in medium trust so you need to use settings on the <httpRuntime element in Web.config to allow larger files as indicated in the article. My guess is you previously configured this but did not transfer those settings to the new web.config file when you upgraded.

Hope that helps,

Joe

3/26/2013 9:35:01 AM
Gravatar
Total Posts 20

Re: Upload problems after update.

Hello Joe,

thank you for your answer.

I tried to edit Web.config in the line suggested. I had no affects (it seemed to me). I opened a trouble ticket with the Hosting service (Biggest hosting service in Italy) and the answer received was that I should use Persits ASPupload module...

Does it sound possible?

Alessandro

 

 

 

3/26/2013 10:52:47 AM
Gravatar
Total Posts 20

Re: Upload problems after update.

Hello Joe,

 

this is an update.

I tried again the modification uncommenting one command in web.comfig :

      <!-- This sets the max size of an upload if the UploadHttpModule is not being used (i.e.
            commented out because it can't work in medium trust).  In that case, theentire
            request is stored in memory, so large uploads could be used as a Denial of Service
            attack. Use you own judgement in determining the max size ofa request you want to allow.
      <httpRuntime maxRequestLength="2097151" executionTimeout="3600" useFullyQualifiedRedirectUrl="true" />
            -->

but I then received a 500.19 web error. The error was located in the next line. I tried therefore to put a comment on the next line :

<!--    
      <httpRuntime requestValidationMode="2.0" maxUrlLength="560" maxQueryStringLength="2048"  />
-->
 

Please, do not ban me from this forum ;)  I do not know what this line is for. But making it out I made the CMS working fine . I tested uploads upt to 12Megs.

 

Alessandro

 

 

 

 

3/26/2013 11:17:45 AM
Gravatar
Total Posts 20

Re: Upload problems after update.

Hello Joe,

it is now working fine with this modification :

 

      <!-- This sets the max size of an upload if the UploadHttpModule is not being used (i.e.
            commented out because it can't work in medium trust).  In that case, theentire
            request is stored in memory, so large uploads could be used as a Denial of Service
            attack. Use you own judgement in determining the max size ofa request you want to allow.
 -->

      <httpRuntime maxRequestLength="2097151" executionTimeout="3600" useFullyQualifiedRedirectUrl="true" requestValidationMode="2.0" maxUrlLength="560" maxQueryStringLength="2048" />

Thank you

Alessandro

 

3/26/2013 4:51:39 PM
Gravatar
Total Posts 18439

Re: Upload problems after update.

Glad to hear you got it working.

Best,

Joe

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