Exception thrown when using FCKeditor on 2.3.6.4

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.
4/3/2011 5:58:39 PM
Gravatar
Total Posts 68

Exception thrown when using FCKeditor on 2.3.6.4

Just getting started with a mojoPortal on and new site. The environment is hosted W2K8 .NET 4 Integrated mojo 2.3.6.4 MSSQL Medium Trust.

Everything went well with the install and site is up except for two issues that seem related. When FCKeditor is configured as the content editor the below exception is thrown editing content. Also when the site is configured using any other editor (say CKeditor) the editing content is fine however when visting Administration -> Registration Agreement the same exception is thrown.

Have searched the forums and not found a similar issue reported so its likely my config or environment. Thanks for any ideas/pointers.

System.TypeLoadException: Inheritance security rules violated while overriding member: 'mojoPortal.Web.Editor.FCKeditorConfigurations.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.
   at mojoPortal.Web.Editor.FCKeditor.set_CustomConfigurationsPath(String value)
   at mojoPortal.Web.Editor.FCKeditorAdapter.InitializeEditor()
   at mojoPortal.Web.Editor.FCKeditorAdapter..ctor()
   at mojoPortal.Web.Editor.FCKeditorProvider.GetEditor()
   at mojoPortal.Web.Editor.EditorControl.SetupProvider()
   at mojoPortal.Web.Editor.EditorControl.set_ProviderName(String value)
   at mojoPortal.Web.SiteUtils.SetupEditor(EditorControl editor, Boolean useSkinCss, String preferredProvider, Boolean allowPageOverride, Boolean fullUrl, Page page)
   at mojoPortal.Web.ContentUI.EditHtml.OnPreInit(EventArgs e)
   at System.Web.UI.Page.PerformPreInit()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 

4/4/2011 7:10:33 AM
Gravatar
Total Posts 18439

Re: Exception thrown when using FCKeditor on 2.3.6.4

Hi,

FCKeditor is getting long in the tooth and is not actively developed, so CKeditor is probably a better choice. I know there are some problems now with FCKeditor in IE 9 (not server errors though, just client script errors when using the image browser dialog).

I don't see how it would be possible for CKeditor to throw FCKeditor exceptions, so you should look closely in the log, clear the log, cause the error with CKeditor and then check it.

If you are using a custom build that you compiled and published yourself from source code, please don't forget to mention it. I'm not able to produce this error.

Hope it helps,

Joe

4/4/2011 7:36:52 AM
Gravatar
Total Posts 68

Re: Exception thrown when using FCKeditor on 2.3.6.4

Hi Joe, Thanks.

Yup I had cleared the log and the site is configured to use CKeditor and fine in all aspects of the site setup except for the Admin -> Registration Page. So while the site is configured to use CKeditor the exception throw is as indicated. Had it not been for the Registration link I never would have tried using FCKeditor.

Perhaps I missed something during the initial configuration and setup so I'll give it another try since I have not done extensive customization.

Anyway except for this issue everything is great. Terrific work. Thanks for the quick reply.

 

 

4/4/2011 9:42:54 AM
Gravatar
Total Posts 18439

Re: Exception thrown when using FCKeditor on 2.3.6.4

I would make sure that the file mojoEditor.config did not get corrupted somehow during upload and make sure there is read permissions on the file for the user that is the identity on the application pool.

Hope it helps,

Joe

4/9/2011 8:33:07 AM
Gravatar
Total Posts 27

Re: Exception thrown when using FCKeditor on 2.3.6.4

Hi Joe,

After I updated to version 2.3.6.4, a web page will not work once there is a 'Contact Form' inside, and the error message is the same. In my 'Site Settings', the 'Content Editor' I selected is 'TinyMCE'.

My environment is IIS 7, ASP.NET 4.0 and MySQL 5. I am sure the mojoEditor.config file is not corrupted.

Hope this helps to fix a bug.

4/9/2011 9:16:37 AM
Gravatar
Total Posts 18439

Re: Exception thrown when using FCKeditor on 2.3.6.4

Hi Guys,

Ok I was finally able to reproduce this error under medium trust. I will fix this for the next release, but I do have a workaround for you to get past the error. The workaround will mean that you cannot use FCKeditor, but you will be able to use TinyMCE or CKEditor without errors.

What you need to do is edit the mojoEditor.config file and change this:

<add name="FCKeditorProvider"
    type="mojoPortal.Web.Editor.FCKeditorProvider, mojoPortal.Web"
    description="Allows using the FCKeditor" />

to this:

<add name="FCKeditorProvider"
    type="mojoPortal.Web.Editor.CKEditorProvider, mojoPortal.Web"
    description="Allows using the FCKeditor" />

basically we are just tricking it to use CKeditor instead of FCKeditor provider even when the default provider is configured as FCKeditor. In code FCKeditor is configured as the default only because it was the first editor we ever implemented and it never caused any problem till now.

I will try to get a new release out with a fix for this pretty soon, but that should get you back in business.

Best,

Joe

4/10/2011 9:10:55 PM
Gravatar
Total Posts 27

Re: Exception thrown when using FCKeditor on 2.3.6.4

Thank you, Joe!

4/11/2011 6:57:21 AM
Gravatar
Total Posts 18439

Re: Exception thrown when using FCKeditor on 2.3.6.4

Hi Stone,

Thank you for the beer! Much appreciated.

Cheers,

Joe

4/11/2011 8:07:24 AM
Gravatar
Total Posts 4

Re: Exception thrown when using FCKeditor on 2.3.6.4

Hi i have the same error 

Inheritance security rules violated while overriding member: 'mojoPortal.Web.Editor.FCKeditorConfigurations.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.....

i tried to change settings in mojoeditor.config to this

<add name="FCKeditorProvider"
    type="mojoPortal.Web.Editor.CKEditorProvider, mojoPortal.Web"
    description="Allows using the FCKeditor" />

 

but it dont work. is any idea what can i change or fix tihis eror? in site settings I have TinyMCE editor 

4/11/2011 8:21:39 AM
Gravatar
Total Posts 18439

Re: Exception thrown when using FCKeditor on 2.3.6.4

It should work if you are using the mojoEditor.config file.

Are you sure you have not customized it to use a different file by overriding this setting:

<add key="mojoEditorConfigFileName" value="mojoEditor.config"/>

if you pointed it to a different file then you need to update your custom file.

Hope it helps,

Joe

 

4/11/2011 8:35:44 AM
Gravatar
Total Posts 18439

Re: Exception thrown when using FCKeditor on 2.3.6.4

you may also need to touch Web.config after modifying the mojoEditor.config just to make it clear the cache.

Hope it helps,

Joe

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