Image upload problem

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.
6/29/2010 9:28:34 AM
Gravatar
Total Posts 31

Image upload problem

Hi. When I set my site live and try to upload images via the editor, I get a server error. In a test environment it all works fine. Any ideas please?

Thanks

Peter

6/29/2010 10:39:25 AM
Gravatar
Total Posts 2188

Re: Image upload problem

Hi,

Can you tell us what server error you are receiving? You can check the log at Administration>System Log.

Thanks,
Joe D.

7/1/2010 5:11:55 AM
Nux
Gravatar
Total Posts 183

Re: Image upload problem

Hi, have you checked that the "data" folder has write permission?

Greetings

Stef

7/7/2010 6:49:09 AM
Gravatar
Total Posts 31

Re: Image upload problem

Hi. The error I get is below. The small upload status box stays empty too and doesnt progress.

We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.
 

7/7/2010 8:39:02 AM
Gravatar
Total Posts 2188

Re: Image upload problem

Hi Peter,

That is the generic error shown in the browser, it doesn't tell us much. Can you do the following?:

  1. Go to http://YourSite.URL/Admin/ServerLog.aspx
  2. Click the "Clear Log" button.
  3. Try to upload something, causing the error.
  4. Go back to http://YourSite.URL/Admin/ServerLog.aspx
  5. Copy the contents of the log and paste them in a reply here.

Thanks,
Joe D.

7/8/2010 6:34:53 AM
Gravatar
Total Posts 31

Re: Image upload problem

Thanks. Below is the server log just after the error.

2010-07-08 12:33:10,718 ERROR mojoPortal.Web.Global - 192.168.250.1-en-US - /NeatUpload/UploadStateStoreHandler.ashx
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.SimpleWebRemoting.ProcessRemoteCallRequest(HttpContext context, MethodCallHandler methodCallHandler)
at Brettle.Web.NeatUpload.UploadStateStoreHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2010-07-08 12:33:10,921 ERROR mojoPortal.Web.Global - 192.168.250.1-en-GB - /Dialog/FileDialog.aspx?ed=fck&type=image
System.FormatException: Invalid character in a Base-64 string.
at System.Convert.FromBase64String(String s)
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.SimpleWebRemoting.MakeRemoteCall(Uri uri, HttpCookieCollection httpCookies, Byte[] encryptionKey, Byte[] validationKey, String encryptionAlgorithm, String validationAlgorithm, Object[] methodCall)
at Brettle.Web.NeatUpload.SimpleWebRemoting.MakeRemoteCall(Uri uri, Object[] methodCall)
at Brettle.Web.NeatUpload.SessionBasedUploadStateStoreProvider.MakeRemoteCall(Object[] methodCall)
at Brettle.Web.NeatUpload.SessionBasedUploadStateStoreProvider.Load(String postBackID)
at Brettle.Web.NeatUpload.AdaptiveUploadStateStoreProvider.Load(String postBackID)
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.HttpWorkerRequest.HasEntityBody()
at System.Web.HttpRequest.GetEncodingFromHeaders()
at System.Web.HttpRequest.get_ContentEncoding()
at System.Web.HttpRequest.get_QueryStringEncoding()
at System.Web.HttpRequest.get_QueryStringText()
at System.Web.HttpRequest.get_Url()
at mojoPortal.Web.UrlRewriter.RewriteUrl(HttpApplication app) in C:\mojo-newBHD\Web\Components\UrlRewriter.cs:line 96
at mojoPortal.Web.UrlRewriter.UrlRewriter_BeginRequest(Object sender, EventArgs e) in C:\mojo-newBHD\Web\Components\UrlRewriter.cs:line 69
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 

7/8/2010 6:45:57 AM
Gravatar
Total Posts 18439

Re: Image upload problem

That is a strange error. Is this a build you produced yourself from source code? A custom feature using the editor?

The main issues for NeatUpload is it requires full trust hosting, and the /App_Data folder must be writable in addition to /Data because NeatUpload stores files there temporarily.

Hope it helps,

Joe

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