Shared Files Module

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.
10/16/2009 3:50:37 PM
Gravatar
Total Posts 10

Shared Files Module

OS - Windows Vista Business

DB - MySql

mojoPortal Version - 2.3.1.9

I am trying to get the site shared file upload module to work. I have given myself all of the required roles to edit and use the shared file upload module and can get it working on the page. If I create a new folder using the module it works great and will add. What happens if I try to upload a file however is that the page refreshes to the root of the shared files module and the upload bar just constantly refreshes and doesn't do anything.

Alternatively if I use the site File manager I can upload files but only if I go to the absolute root of the site installation.

Lastly, if I use the html module and use the image insert those files will also upload. Its something to do with the actual shared files module. Any help would be great.

10/20/2009 8:17:28 AM
Gravatar
Total Posts 18439

Re: Shared Files Module

I would look in the logs at Administration > System Log

newest errors are towards the bottom. See if any file upload related errors.

My best guess is file system permissions are not correct. All files and folders beneath /Data need to be writable by the web process, its possible that only some of them are.

See this thread for discussion about why it goes back to the root folder after upload.

10/20/2009 12:44:35 PM
Gravatar
Total Posts 10

Re: Shared Files Module

I checked permissions all the way through the Dada folder and I even went as far as granting Everyone write/modify permissions to Data and all sub folders.   Still no luck.  Below is the error from the log file, please help...

the Error is "System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed."  But I dont know how to fix that.



2009-10-20 10:40:27,635 ERROR mojoPortal.Web.Global - 146.187.130.81-en-US - /asewutest/NeatUpload/MultiRequestUploadHandler.ashx?NeatUpload_PostBackID=5668D51D75E37582E6D5CCB2A063EB0912560604270051&NeatUpload_MultiRequestControlID=ctl01%24mainContent%24ctl00%24multiFile&NeatUpload_ArmoredCookies=FEOx4OLKTmUZNT1L1xtvcw1nlSrIENQsUJhuyZx5VELjNCBYhwvOqCtv%2FExN5jBWF%2FhOu10%2Fj962c53A4yRrLvWLAtMepFdcsJcLk6yNO4mt%2ByUJRkD41JgAzgXbEtesnvPJ8dB0xDfTTu04IrZaiYNifgkrSLU%2BJZoEc6OaltfsZvs0FjAL6%2Fg7kBvRME3UK%2BuL5Xvoym%2F%2FkLHSIO6eoln9jHGRqxfQDPi6lrVxsXdOdFdvTAHMmpISQ7tRiZfxCu1Q9HMhQkl5p3WgYg5WG9X3nPGNBIEXO2HD9Ythh0C9maZsNiEqtbs4qEuNx72%2FsyUCMxXHYEXRZ%2F8S%2BcpyFTEgt2f23w1MOd9Vxwtmh0JEQmodRQsHK4%2Ff%2B5le1yiSYCFD7v88hDOLYGszjGs9VIXJWIWZLrebUPmzEA3%2B%2B99og%2BKkQuqGb6RCG8zbvKJr6ptoaVmJfBbRy3gCvwoAQHYxunzJEg%3D%3D

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)

 

Thanks again....

10/21/2009 10:44:40 AM
Gravatar
Total Posts 116
http://www.zoomicon.com http://birbilis.spaces.live.com http://www.delicious.com/birbilis http://twitter.com/Zoomicon

Re: Shared Files Module

Which version of NeatUpload is mojoPortal using? I read on NeatUpload's page about a fix to a rare issue with hashes or something

10/21/2009 12:12:49 PM
Gravatar
Total Posts 10

Re: Shared Files Module

I dont know exactly what you want but the file version on the Brettle.Web.NeatHtml.dll is 1.0.3373.23565 and we do know that the latest is 1.2.3032.36311.  However 1.0.3373.23565 is the one that is included with MojoPortal build Version 2.3.1.9 MySQL.

Should we update the DLL.

Ross Lanes

10/21/2009 12:32:32 PM
Gravatar
Total Posts 18439

Re: Shared Files Module

Ross,

You are confusing NeatHtml and NeatUpload.

NeatUpload 1.3.18 (the newest version of NeatUpload available) is included with mojoPortal 2.3.1.9, the file version is 1.3.3520.16252.

I'm really not sure about the error you are seeing. I have not encountered that error in relation to NeatUpload.

I wonder if you have a caching proxy server or some other thing about your environment that could be a factor.

Best,

Joe

10/21/2009 1:40:37 PM
Gravatar
Total Posts 116
http://www.zoomicon.com http://birbilis.spaces.live.com http://www.delicious.com/birbilis http://twitter.com/Zoomicon

Re: Shared Files Module

Just passed this link to David Brettle (http://www.brettle.com), the NeatUpload author in case he wants to comment

10/21/2009 1:58:27 PM
Gravatar
Total Posts 148

Re: Shared Files Module

That error usually means that the application instance that is receiving the upload is using a different key than the application instance that displayed the upload page. By default, NeatUpload generates a random key each time the application starts.

That could occur if either you are using a web farm or web garden, or your application is being restarted.  See Supporting Web Gardens and Web Farms  for how to always use the same key.

If your app is getting restarted, it would be better to fix that.  FYI, your app might be getting restarted if ASP.NET detects new files/folders being created in your app.

--Dean

10/21/2009 7:50:10 PM
Gravatar
Total Posts 10

Re: Shared Files Module

This is a single IIS server; however, it does have several hundred virtual directories all in one site.  The University is working on a new build of this server where this installation will have its own site but for now this is how things work.  So no Web Gardens and Web Farms.  However, the server did restart the application several times today, don't know why. 

So I added 32-hex-digit decryptionKey attribute in the <neatUpload> section of each server's Web.config...No change. 

Then I added changed to neatUpload tag to read:



<neatUpload xmlns="http://www.brettle.com/neatupload/config/2008"

useHttpModule="true"

maxNormalRequestLength="4096"

maxRequestLength="2097151"

multiRequestUploadHandlerUrl="~/NeatUpload/MultiRequestUploadHandler.ashx"

maxUploadRate="300"

decryptionKey="352d404f697b2f2f65257d3e4b27297a34774b775c203522366e4a502a4a3b70"

defaultStateStoreProvider="sbStateStoreProvider" >

<add name="sbStateStoreProvider"

type="Brettle.Web.NeatUpload.SessionBasedUploadStateProvider"

/>

</neatUpload>

I get the following error:

2009-10-21 17:44:01,326 ERROR mojoPortal.Web.Global - 146.187.130.66-en-US - /asewutest/NeatUpload/Progress.aspx?barID=ctl00_mainContent_progressBar&postBackID=914D52580DFDBECF4E3BAF3D4C2136C412561722413341&refresher=client&canScript=true&canCancel=true

System.NullReferenceException: Object reference not set to an instance of an object.

at Brettle.Web.NeatUpload.UploadStateStore.OpenReadOnly(String postBackID)

at Brettle.Web.NeatUpload.UploadHttpModule.Brettle.Web.NeatUpload.IUploadModule.BindProgressState(String postBackID, String controlUniqueID, IUploadProgressState progressState)

at Brettle.Web.NeatUpload.UploadModule.BindProgressState(String postBackID, String controlUniqueID, IUploadProgressState progressState)

at Brettle.Web.NeatUpload.ProgressPage.SetupContext()

at Brettle.Web.NeatUpload.ProgressPage.OnLoad(EventArgs e)

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

2009-10-21 17:44:01,357 ERROR mojoPortal.Web.Global - 146.187.130.66-en-US - /asewutest/NeatUpload/MultiRequestUploadHandler.ashx?NeatUpload_PostBackID=914D52580DFDBECF4E3BAF3D4C2136C412561722413341&NeatUpload_MultiRequestControlID=ctl00%24mainContent%24multiFile&NeatUpload_ArmoredCookies=FPHsdBAuKehWvXvKZen65Q21dlymEFhQAeTHih9Vyxf7OHkNMdoHxTj27HybqEAo1nRbj8VaXyvFvPhQrONjXfUtQFtOcZF3jtH3uHPPyyz60YrV%2FJUs99rGlDDV77BOzjzDLVraiowVHMeRkwVOWRt7W69iMtuay2ykfxHhiuXgnNDpx3sZXktT2e2FNagC5MXYMZzGC5d%2B7muufWT%2FAsND%2BTm2JKxCv18EhX7TtR07xu%2F4IUZ5gNAqaSDQnxh8cF%2BqHJNwh8jl9xG6OhXWChtTxaPbj2c%2BcsO%2BDz%2BxYfdDu3RDtzLE82EKW%2FyBdpc5QCcjivW7Zx4Y6ZQZIwP3%2FdSr9OhTMfmLWMCk9fuY6cFS6ESe%2Fh9%2FO8BSebZWlocl6FM%2BglVvGf%2FVJtS9O6cX861HAc3OUZqV%2FbGSLcAVdhr1olNqnHYLr6Quje%2FWIe4KUitC2Lq8sCyUim5nTroLHrW08XVYaA%3D%3D

System.NullReferenceException: Object reference not set to an instance of an object.

at Brettle.Web.NeatUpload.UploadStateStore.OpenReadWrite(String postBackID)

at Brettle.Web.NeatUpload.UploadStateStore.OpenReadWriteOrCreate(String postBackID)

at Brettle.Web.NeatUpload.UploadHttpModule.get_CurrentUploadState()

at Brettle.Web.NeatUpload.MultiRequestUploadHandler.ProcessRequest(HttpContext context)

at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

2009-10-21 17:44:01,404 ERROR mojoPortal.Web.Global - 146.187.130.66-en-US - /asewutest/NeatUpload/MultiRequestUploadHandler.ashx?NeatUpload_PostBackID=914D52580DFDBECF4E3BAF3D4C2136C412561722413341&NeatUpload_MultiRequestControlID=ctl00%24mainContent%24multiFile&NeatUpload_ArmoredCookies=FPHsdBAuKehWvXvKZen65Q21dlymEFhQAeTHih9Vyxf7OHkNMdoHxTj27HybqEAo1nRbj8VaXyvFvPhQrONjXfUtQFtOcZF3jtH3uHPPyyz60YrV%2FJUs99rGlDDV77BOzjzDLVraiowVHMeRkwVOWRt7W69iMtuay2ykfxHhiuXgnNDpx3sZXktT2e2FNagC5MXYMZzGC5d%2B7muufWT%2FAsND%2BTm2JKxCv18EhX7TtR07xu%2F4IUZ5gNAqaSDQnxh8cF%2BqHJNwh8jl9xG6OhXWChtTxaPbj2c%2BcsO%2BDz%2BxYfdDu3RDtzLE82EKW%2FyBdpc5QCcjivW7Zx4Y6ZQZIwP3%2FdSr9OhTMfmLWMCk9fuY6cFS6ESe%2Fh9%2FO8BSebZWlocl6FM%2BglVvGf%2FVJtS9O6cX861HAc3OUZqV%2FbGSLcAVdhr1olNqnHYLr6Quje%2FWIe4KUitC2Lq8sCyUim5nTroLHrW08XVYaA%3D%3D

System.NullReferenceException: Object reference not set to an instance of an object.

at Brettle.Web.NeatUpload.UploadStateStore.OpenReadWrite(String postBackID)

at Brettle.Web.NeatUpload.UploadStateStore.OpenReadWriteOrCreate(String postBackID)

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)

2009-10-21 17:44:01,420 ERROR mojoPortal.Web.UrlRewriter - System.NullReferenceException: Object reference not set to an instance of an object.

at Brettle.Web.NeatUpload.UploadStateStore.OpenReadWrite(String postBackID)

at Brettle.Web.NeatUpload.UploadStateStore.OpenReadWriteOrCreate(String postBackID)

at Brettle.Web.NeatUpload.Internal.Module.FilteringWorkerRequest.ParseOrThrow()

at Brettle.Web.NeatUpload.Internal.Module.FilteringWorkerRequest.ParseMultipart()

at Brettle.Web.NeatUpload.Internal.Module.FilteringWorkerRequest.GetKnownRequestHeader(Int32 index)

at System.Web.HttpRequest.CombineAllHeaders(Boolean asRaw)

at System.Web.HttpRequest.FillInServerVariablesCollection()

at System.Web.HttpServerVarsCollection.Populate()

at System.Web.HttpServerVarsCollection.Get(String name)

at System.Collections.Specialized.NameValueCollection.get_Item(String name)

at mojoPortal.Web.Framework.WebUtils.GetHostName()

at mojoPortal.Business.WebHelpers.CacheHelper.GetSiteSettingsFromCache()

at mojoPortal.Business.WebHelpers.CacheHelper.GetSiteSettingsFromContext()

at mojoPortal.Business.WebHelpers.CacheHelper.GetCurrentSiteSettings()

at mojoPortal.Web.UrlRewriter.GetRedirectUrl(String targetUrl)

at mojoPortal.Web.UrlRewriter.RewriteUrl(HttpApplication app)

 

Any new ideas, I did not do step 3 as step 2 failed.  I rely want to get MojoPortals up and running, everything else works great but I rely need this to work.  I was wondering if this is a problem with NeatUpload, is there a way to not use it and use the built in file up-loader that comes with ASP.net?

 

Again thanks all...

10/21/2009 9:49:51 PM
Gravatar
Total Posts 148

Re: Shared Files Module

You can disable NeatUpload by setting useHttpModule="false" in the <neatUpload> element.  I suspect that the underlying problem is the application restarts.  Once you correct that problem, NeatUpload will probably work properly.

--Dean

10/21/2009 10:06:20 PM
Gravatar
Total Posts 10

Re: Shared Files Module

Thanks to all of you....

I have talked to the server administrator.  Our application pool is restarting by design.  Apparently if he did not restart the application pool every 3 hours the server crashes.  This was back when we where using Joomla as our CMS.  He is going to restart it on more time and then call it good.  We will see if that fixes it.

 

Again thanks all

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