HTML Content feature - error when inserting images and flash

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
7/9/2010 3:49:41 AM
Gravatar
Total Posts 4

HTML Content feature - error when inserting images and flash

Hi there

The HTML content feature doesn't allow me to insert images or flash files within the content. I've gone through the process of choosing/upload a picture and when done it doesn't show on the content window, when i click "update" i get the following message.

 

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/9/2010 7:21:49 AM
Gravatar
Total Posts 116

Re: HTML Content feature - error when inserting images and flash

I'm a bit of a newbie myself but that looks like a permissions issue to me - check that the Data folder (and subfolders) has the correct permissions settings as instructed by Joe here - http://www.mojoportal.com/iiswebsetup.aspx.  If that is all fine then you'll have to wait for someone with more knowledge/expeiance comes along I'm afraid wink

7/9/2010 9:12:47 AM
Gravatar
Total Posts 2239

Re: HTML Content feature - error when inserting images and flash

Hi,

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 insert an image or flash, 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.

This does sound like a permissions problem if you are uploading the image using the WYSIWYG but to be sure, please get the log contents.

Thanks,
Joe D.

7/9/2010 9:25:49 AM
Gravatar
Total Posts 4

Re: HTML Content feature - error when inserting images and flash

HI there, herewith the log details:

2010-07-09 16:22:55,812 ERROR mojoPortal.Web.mojoBasePage - 192.168.200.205-en-US - /gobeyond/HtmlEdit.aspx?mid=31&pageid=11
System.Web.HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (ctl00$mainContent$edContentinnerEditor="<p>
    <img alt="" sr...").
   at System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
   at System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, RequestValidationSource requestCollection)
   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)
2010-07-09 16:22:55,812 ERROR mojoPortal.Web.Global - 192.168.200.205-en-US - /gobeyond/HtmlEdit.aspx?mid=31&pageid=11
System.Web.HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (ctl00$mainContent$edContentinnerEditor="<p>
    <img alt="" sr...").
   at System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
   at System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, RequestValidationSource requestCollection)
   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)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.htmledit_aspx.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 

7/9/2010 12:28:16 PM
Gravatar
Total Posts 18439

Re: HTML Content feature - error when inserting images and flash

Hi,

My guess is you upgraded from an older version and tried to keep your existing Web.config file. You should use the new one and restore any customizations to the new one. It will solve this problem.

Hope it helps,

Joe

7/12/2010 3:07:28 AM
Gravatar
Total Posts 4

Re: HTML Content feature - error when inserting images and flash

HI Joe

Well I didn't upgrade the platform, however the .NET was set to version 4 after I installed mojoportal. Could this also cause such error?

 

Unfortunately I cant set the IIS to .NET 2.0 because the intranet platform only works on Ver.4

7/13/2010 6:42:25 AM
Gravatar
Total Posts 18439

Re: HTML Content feature - error when inserting images and flash

I would recommend install the latest mojoportal .NET 4 package and make sure you use the new Web.config, don't try to keep your old one. Currently it sounds like you are running the 3.5 .NET version of mojoPortal under .NET 4. Using the mojoportal .NET 4 package should solve it.

Hope it helps,

Joe

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