Freezing upload?

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
2/4/2011 4:19:45 AM
Total Posts 65

Freezing upload?


We have setup MojoPortal in a fulltrust environment and the upload have worked grate with over 5 GB of data but now, without any change the upload have stoped working.

When selecting a file and hit upload the status window will open up and show the progress but most of the time(9/10) the progress pile will disappear and the counter stops. If we leave it the status window will be closed but no file is uploded? Sometime the status windows shows but the progress do never start?

This has worked grate before and I can´t see that there have been any changes in the configuration for MojoPortal. There is still about 4GB left of storage.

In the SystemLog I can find :

2011-02-04 10:13:11,015 ERROR mojoPortal.Web.Global - - /NeatUpload/MultiRequestUploadHandler.ashx?NeatUpload_PostBackID=D935317B5A85A93C3B021F70F3DF038712968143934035&NeatUpload_MultiRequestControlID=ctl01%24mainContent%24ctl01%24multiFile&NeatUpload_ArmoredCookies=FBLb1qGXFjj4E7H7V3QOfCwHWGe6EHS%2B1H8S%2FZpDZmwR0w%2F9pqC3IWnR1vKGSjJ%2FJ8bSaa904FE3HpieTGxo1tTp7lxpOMLF4lNL2lAlFzmrAtAKbwTPGMRKKDKOJWwJcxGIPi0Ags%2FGne0nNiCLJ6FpGfqvUWvOaF7ET460CBA5T3IYxFuUOdwXU1KnTdOTjkfltL4YHTrUMl1JdNkkjgeKNxAcHVLD29xvC8RKU8zgu83H%2B19JUyKGGe0fg9VrmUvk7gKAZSPqNQp3%2Bj83AlFveQuWWSIHIpSOM4FPfUw4PlhiVEi45O2W2Zdaj2eIYi5AlXGxS9rF8F%2BjZMUCPTTl04%2FxK5WAH5bxZ23LIbbDO4kfTgYi8Iv6y%2F%2FtUyI1yG%2Fmn5zEiBNNF5sLUhyfXPlie76vtHlxfKWc2axowfQmHmGRjKlCeOfph7mV1cuZZVx6T5PoJdAPmFVTdsgedP0b8p2y%2FlRDKEm9qFwB4vC8JApIvNGTD%2Fz46HgVlVaq66jfx1S%2BFUnWib%2Bk9u4kOvRi7D6OJqVIrJBtAUdw0u4VJscFr0sQE0IJxLwoJLM9Uz%2F2%2F1bgsHNkANzqKMwacmVB74q85uReNIbH5NPX6i3sGZHjmSycpVr7Npkrf42%2BqJrpw%2FUqC4uRH%2BfSdRw3P84XBA7hmMexOadOh16uIaFy1HCS%2BurxPPOZd3dgq7IYgq8yqRO8
System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
   at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
   at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
   at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
   at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing)
   at System.IO.Stream.Close()
   at Brettle.Web.NeatUpload.ObjectProtector.Unprotect(String secureString, Byte[] encryptionKey, Byte[] unused, String encryptionAlgorithm, String validationAlgorithm, Deserializer deserializer, SignatureChecker sigChecker)
   at Brettle.Web.NeatUpload.ObjectProtector.Unprotect(String secureString, Byte[] encryptionKey, Byte[] validationKey, String encryptionAlgorithm, String validationAlgorithm)
   at Brettle.Web.NeatUpload.ObjectProtector.Unprotect(String secureString)
   at Brettle.Web.NeatUpload.UploadHttpModule.GetCookiesFromQueryString(String qs)
   at Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Any Idea?


Edit: I have tried diffrent filesizes (1MB - 200MB) and the bigger the file is the bigger the risk is of getting problem.

2/4/2011 12:08:09 PM
Total Posts 18439

Re: Freezing upload?

Sometimes in web hosting you may have free space but the free space is not allocated so it cannot be used and the effect is the same as running out of space. You may need to allocate the available space to the site, look around in your web control panel for a way to allocate the space.

I would recommend also clear the log, then sign out then clear your browser cookies then sign in again and see if the error appears immediately after trying to upload.

Hope it helps,


2/7/2011 4:03:37 AM
Total Posts 65

Re: Freezing upload?


We have no tried the following :

  1. Restart IIS
  2. Restart MojoPortal
  3. Tried from both IE and FireFox
  4. Tried both files on 10 MB as well ass files on 50 MB
  5. Checked the disk space (also asked the host) and there is alot left to use.
  6. Information from the Host : Virtual Mem : 515 Mb, Private Mem 72 MB, Asp Timeout : 120 sec. This have also been significant increased to see that the problem is not this part.
  7. Tried a couple of other file upload controls on the same site with the same result
  8. The log do not state any problems with the upload, only time there is an exception about fileupload is when I reload the main MojoPortal browser window(in a middel of a fileupload) or when I cancel a upload.

This is the problem :

  1. Open page with fileshare control on
  2. Ad a file(10MB - 50 MB)
  3. Hit upload button
  4. A smaller window opens up and show the progress bar
  5. After random progress the progress bar disappear
  6. Wait around as long as the progress bar stated to be left in time (before the progressbar disappeared).
  7. The small windows states that the upload is done (even when there is no progressbar) and says that it took 00:00
  8. The main browser window with MojoPortal reload and then the upload dialog window closes.
  9. The fileshare control will be loaded in default path
  10. When browsing to the folder where we placed the file there is no file

This is done with an administrator user.

The procedure have worked grate over 5GB of data, but now it only success to upload around 1 of 20 files.

This is a really big problem for us, our customer is not able to download our new software, is there anyother way of uploading files to the shared file controls in the mean time?



2/7/2011 7:01:24 AM
Total Posts 65

Re: Freezing upload?

I have now also tested the following :

  • Upload file using the regular file windows (from admin menu to the left of the New Page), this resultet in the following exception in the log :

    2011-02-07 12:49:57,187 ERROR mojoPortal.Web.Global - - /Services/FileService.ashx?cmd=upload
    Brettle.Web.NeatUpload.NonfilePortionTooLargeException: Nonfile portion > 4194304 bytes
       at mojoPortal.Web.UrlRewriter.UrlRewriter_BeginRequest(Object sender, EventArgs e) in C:\MojoSource\mojoportal\Web\Components\UrlRewriter.cs:line 88
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
  • Upload the files to the same folder with ftp, this works fine but the problem is the files will be public and not just for the users so this is not a working walkaround for us.

Pleas Advice

2/7/2011 8:55:18 AM
Total Posts 65

Re: Freezing upload?

Hi again,

This is how the important settings about filesize is set :

system.web> httpRuntime@maxRequestLength is set to 2097151 kb (2047 MB)

<neatUpload useHttpModule="true" maxNormalRequestLength="4096" maxRequestLength="2097151" multiRequestUploadHandlerUrl="~/NeatUpload/MultiRequestUploadHandler.ashx" xmlns="">

When running "appcmd list config 'Default Web Site/MySite'" on the host server this is the important part that returns :

<requestLimits maxAllowedContentLength="1073741824">

This means that the overrideModeDefault in applicationHost.config is set correctly to allow.

I really don´t see how I could solve this? And I do not understand how this can just stop working?


Edit : when the fileupload is "finished" the neatUplod window will state that its finished and that it has uploaded 24,9 in x Kb/s took 00:00. There is however now file shown in the filesharer control?

2/7/2011 10:22:05 AM
Total Posts 65

Re: Freezing upload?

We and our host have now invested 1 day of troubleshooting without getting anywhere with this.

The last change is to disable the Neat upload and use the regular, this woks fin with a file that is 37 MB but a file that is 75 MB will result in a "communication aborted" after a couple of minutes (the executionTimeout is set to 3600 (1 hour)) ?

2/7/2011 1:57:25 PM
Total Posts 18439

Re: Freezing upload?

Things I would check/try:

  • make sure that the permissions on the App_Data folder are still correct, that is where it will upload temporary files until the upload completes by default, but if it is not writable then it uses Windows\TEMP and this could be outside your allocated disk space and may have different limits
  • try increasing the setting for maxNormalRequestLength in the NeatUpload settings.

Understand that if you disable NeatUpload then those settings no longer apply and the settings from the <httpRuntime element are used instead as mentioned in the documentation.

If it was working for a while then this problem began to occur and no changes to the installation have been made then something has changed in server configuration. These settings can be controlled by machine.config and can override settings in Web.config, there could also have been a request filtering module enabled on the server and that may implement its own limits on requests separate from the normal settings.

Hope it helps,



2/7/2011 2:21:38 PM
Total Posts 83

Re: Freezing upload?


I will check the permissions

The maxNormalRequestLength have already been tested with the same result (not working)

I tested to switch the NeatUploader off just to see if I temporarily could use this to upload the critical files but even when setting the httpRuntime correctly it will not work with our 75MB files? And yes I do understand that NeatUploader´s settings is only for NeatUploader. Is there any other why to get this critical files up to the site (I have tried FTP but I need the files to be available only to members) ?

I am fully aware of that there is allot of factors that can generate this problem and thats why I have stated all tests that we have made. I can´t find anything more in the documentation to check for?

Is there a better log then the SystemLog?


2/7/2011 2:31:21 PM
Total Posts 18439

Re: Freezing upload?

It is a difficult problem with many potential factors but it seems surely a configuration issue of one kind or another. I've given you all the advice and ideas that I have. The most likely cause in my mind is some request filter is causing this, probably added as an extra layer of security on top of IIS standard settings.


are likely candidates



2/8/2011 2:08:44 AM
Total Posts 65

Re: Freezing upload?


If the host runnes the followin command :

C:\Windows\System32\inetsrv>appcmd list config "Default Web Site/" -section:requestFiltering

Then the following will be printed :

      <fileExtensions allowUnlisted="true" applyToWebDAV="true">
        <add fileExtension=".asa" allowed="false" />
        <add fileExtension=".asax" allowed="false" />
        <add fileExtension=".ascx" allowed="false" />
        <add fileExtension=".master" allowed="false" />
        <add fileExtension=".skin" allowed="false" />
        <add fileExtension=".browser" allowed="false" />
        <add fileExtension=".sitemap" allowed="false" />
        <add fileExtension=".config" allowed="false" />
        <add fileExtension=".cs" allowed="false" />
        <add fileExtension=".csproj" allowed="false" />
        <add fileExtension=".vb" allowed="false" />
        <add fileExtension=".vbproj" allowed="false" />
        <add fileExtension=".webinfo" allowed="false" />
        <add fileExtension=".licx" allowed="false" />
        <add fileExtension=".resx" allowed="false" />
        <add fileExtension=".resources" allowed="false" />
        <add fileExtension=".mdb" allowed="false" />
        <add fileExtension=".vjsproj" allowed="false" />
        <add fileExtension=".java" allowed="false" />
        <add fileExtension=".jsl" allowed="false" />
        <add fileExtension=".ldb" allowed="false" />
        <add fileExtension=".dsdgm" allowed="false" />
        <add fileExtension=".ssdgm" allowed="false" />
        <add fileExtension=".lsad" allowed="false" />
        <add fileExtension=".ssmap" allowed="false" />
        <add fileExtension=".cd" allowed="false" />
        <add fileExtension=".dsprototype" allowed="false" />
        <add fileExtension=".lsaprototype" allowed="false" />
        <add fileExtension=".sdm" allowed="false" />
        <add fileExtension=".sdmDocument" allowed="false" />
        <add fileExtension=".mdf" allowed="false" />
        <add fileExtension=".ldf" allowed="false" />
        <add fileExtension=".ad" allowed="false" />
        <add fileExtension=".dd" allowed="false" />
        <add fileExtension=".ldd" allowed="false" />
        <add fileExtension=".sd" allowed="false" />
        <add fileExtension=".adprototype" allowed="false" />
        <add fileExtension=".lddprototype" allowed="false" />
        <add fileExtension=".exclude" allowed="false" />
        <add fileExtension=".refresh" allowed="false" />
        <add fileExtension=".compiled" allowed="false" />
        <add fileExtension=".msgx" allowed="false" />
        <add fileExtension=".vsdisco" allowed="false" />
        <add fileExtension=".rules" allowed="false" />
      <requestLimits maxAllowedContentLength="1073741824">
      <verbs allowUnlisted="true" applyToWebDAV="true">
      <hiddenSegments applyToWebDAV="true">
        <add segment="web.config" />
        <add segment="bin" />
        <add segment="App_code" />
        <add segment="App_GlobalResources" />
        <add segment="App_LocalResources" />
        <add segment="App_WebReferences" />
        <add segment="App_Data" />
        <add segment="App_Browsers" />

Does this say you anything?


2/8/2011 8:07:09 AM
Total Posts 18439

Re: Freezing upload?

No, that does not give me any new ideas to help you, sorry.

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