November Happy Hour will be moved to Thursday December 5th.

TinyMCE after update causing errors

H F
H F
Vote:
 

Hello everyone,

I have updated episerver to 11.3.3.0 and installed from nuget tinymce package EpiServer.CMS.TinyMce (version 1.0.0.0).

now everytime I want to see a page properties in the admin panel, if a page has the property of type XhtmlString, for instance (public virtual XhtmlString Footer), I am not able to see any properties at all with the error (any page that does not have such  a property XhtmlString is loading fine):

Unable to find a module by assembly 'EPiServer.DynamicContent, Version=1.0.1.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'
Parameter name: moduleAssembly

I have verified that EpiServer.DynamicContent dll of that version is installed and actually in bin directory for the run time.

I have unistalled and installed again the tinyMce. 

Here is the log for the tinyMCE installation:

Executing script file 'C:\CODE\AirVeriskEpiServer\packages\EPiServer.CMS.TinyMce.1.0.0\tools\Install.ps1'...
Exception calling "Load" with "1" argument(s): "Could not find file
'\Air.Core\web.config'."At
\packages\EPiServer.CMS.TinyMce.1.0.0\tools\Install.ps1:14 char:1
+ $config.Load($configPath)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException

You cannot call a method on a null-valued expression.At
\packages\EPiServer.CMS.TinyMce.1.0.0\tools\Update-AssemblyBinding.psm1:116 char:9
+ $parent.AppendChild($child) | Out-Null
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

Adding binding redirect for EPiServer.Cms.TinyMce .
You cannot call a method on a null-valued expression.At
\packages\EPiServer.CMS.TinyMce.1.0.0\tools\Update-AssemblyBinding.psm1:96 char:9
+ $assemblyBinding.AppendChild($assemblyConfig) | Out-Null
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

Exception calling "Save" with "1" argument(s): "Invalid XML document. The document does not have a root element."At
packages\EPiServer.CMS.TinyMce.1.0.0\tools\Install.ps1:19 char:1
+ $config.Save($configPath)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException

Successfully installed 'EPiServer.CMS.TinyMce 1.0.0' to Air.Core
========== Finished ==========

it says it is insalled successfully.. 

any suggestion how to resolve this issue will be very much appreciated. 
Thanks! 

#188952
Mar 07, 2018 18:20
H F
Vote:
 

forgot to put the stack trace:

Stack Trace: 

[ArgumentException: Unable to find a module by assembly 'EPiServer.DynamicContent, Version=1.0.1.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'
Parameter name: moduleAssembly]
   EPiServer.Shell.Paths.ToResource(Assembly moduleAssembly, String moduleRelativeResourcePath) +325
   EPiServer.DynamicContent.EPiServer.UI.UI.EditorDescriptors.DynamicContentEditorDescriptor.ModifyMetadata(ExtendedMetadata metadata, IEnumerable`1 attributes) +145
   EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider.ApplyExtendersToMetadata(ExtendedMetadata metadata, IEnumerable`1 attributes, IEnumerable`1 metadataHandlers) +141
   EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider.GetMetadataForProperties(ExtendedMetadata parent, Object container, Type containerType, IMetadataProvider customProvider) +651
   EPiServer.Shell.ObjectEditing.ExtendedMetadata.get_Properties() +115
   EPiServer.Cms.Shell.UI.ObjectEditing.AllowedTypesMetadataExtender.ModifyMetadata(ExtendedMetadata metadata, IEnumerable`1 attributes) +43
   EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider.ApplyExtendersToMetadata(ExtendedMetadata metadata, IEnumerable`1 attributes, IEnumerable`1 metadataHandlers) +141
   EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider.CreateMetadata(IEnumerable`1 attributes, Type containerType, Func`1 modelAccessor, Type modelType, String propertyName) +588
   System.Web.Mvc.AssociatedMetadataProvider.GetMetadataForType(Func`1 modelAccessor, Type modelType) +133
   EPiServer.Shell.UI.Rest.MetadataStore.Get(String id, String modelAccessor) +409
   lambda_method(Closure , ControllerBase , Object[] ) +191
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +229
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +39
   System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +74
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() +72
   System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +385
   System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +385
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +38
   System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +185
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   EPiServer.Shell.Services.Rest.RestControllerBase.EndExecute(IAsyncResult asyncResult) +60
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +649
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +213
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +131
#188953
Mar 07, 2018 18:39
Vote:
 

https://nuget.episerver.com/en/OtherPages/Package/?packageId=EPiServer.DynamicContent

Install the above nuget package and try.

#188975
Mar 08, 2018 2:05
H F
Vote:
 

tried it.. does not help.. same error.. 

#188976
Mar 08, 2018 6:15
H F
Vote:
 

hmm.. still can't resolve the problem.. 

i just created a simple page type with the property:


Snippet

public class DebugPage : PageData
   {
 
       [CultureSpecific]
       [Display(
           Name = "Main body",
           Description = "The main body will be shown in the main content area of the page, using the XHTML-editor you can insert for example text, images and tables.",
           GroupName = SystemTabNames.Content,
           Order = 1)]
       public virtual XhtmlString MainBody { getset; }
 
   }




and I am not even able to create a page of this type 
any page that has such a property I can not open in the editor with the error above.

I have tried to follow this:

https://world.episerver.com/blogs/Ben-McKernan/Dates/2018/1/issue-with-modules-not-being-found-in-cms-11/

in vain

There are two errors that go together:

first, it shows this:

EPiServer/shell/Stores/metadata/EPiServer.Core.ContentData?modelAccessor=%7B%22contentLink%22%3A%221503_7018%22%7D&dojo.preventCache=1521058222822 500 (Internal Server Error)

and right after this:

Unable to load /EPiServer/shell/Stores/metadata/EPiServer.Core.ContentData?modelAccessor=%7B%22contentLink%22%3A%221503_7018%22%7D&dojo.preventCache=1521058222822 status: 500:

<!DOCTYPE html> ↵<html> ↵ <head> ↵ <title>Unable to find a module by assembly 'EPiServer.DynamicContent, Version=1.0.1.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'<br>Parameter name: moduleAssembly</title> ↵ <meta name="viewport" content="width=device-width" /> ↵ <style> ↵ body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} ↵ p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} ↵ b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} ↵ H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } ↵ H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } ↵ pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt} ↵ .marker {font-weight: bold; color: black;text-decoration: none;} ↵ .version {color: gray;} ↵ .error {margin-bottom: 10px;} ↵ .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } ↵ @media screen and (max-width: 639px) { ↵ pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; } ↵ } ↵ @media screen and (max-width: 479px) { ↵ pre { width: 280px; } ↵ } ↵ </style> ↵ </head> ↵ ↵ <body bgcolor="white"> ↵ ↵ <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1> ↵ ↵ <h2> <i>Unable to find a module by assembly 'EPiServer.DynamicContent, Version=1.0.1.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'<br>Parameter name: moduleAssembly</i> </h2></span> ↵ ↵ <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "> ↵ ↵ <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. ↵ ↵ <br><br> ↵ ↵ <b> Exception Details: </b>System.ArgumentException: Unable to find a module by assembly 'EPiServer.DynamicContent, Version=1.0.1.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'<br>Parameter name: moduleAssembly<br><br> ↵ ↵ <b>Source Error:</b> <br><br> ↵ ↵ <table width=100% bgcolor="#ffffcc"> ↵ <tr> ↵ <td> ↵ <code> ↵ ↵An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code> ↵ ↵ </td> ↵ </tr> ↵ </table> ↵ ↵ <br> ↵ ↵ <b>Stack Trace:</b> <br><br> ↵ ↵ <table width=100% bgcolor="#ffffcc"> ↵ <tr> ↵ <td> ↵ <code><pre> ↵ ↵[ArgumentException: Unable to find a module by assembly &#39;EPiServer.DynamicContent, Version=1.0.1.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7&#39; ↵Parameter name: moduleAssembly] ↵ EPiServer.Shell.Paths.ToResource(Assembly moduleAssembly, String moduleRelativeResourcePath) +325 ↵ EPiServer.DynamicContent.EPiServer.UI.UI.EditorDescriptors.DynamicContentEditorDescriptor.ModifyMetadata(ExtendedMetadata metadata, IEnumerable`1 attributes) +145 ↵ EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider.ApplyExtendersToMetadata(ExtendedMetadata metadata, IEnumerable`1 attributes, IEnumerable`1 metadataHandlers) +141 ↵ EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider.GetMetadataForProperties(ExtendedMetadata parent, Object container, Type containerType, IMetadataProvider customProvider) +651 ↵ EPiServer.Shell.ObjectEditing.ExtendedMetadata.get_Properties() +115 ↵ EPiServer.Cms.Shell.UI.ObjectEditing.AllowedTypesMetadataExtender.ModifyMetadata(ExtendedMetadata metadata, IEnumerable`1 attributes) +43 ↵ EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider.ApplyExtendersToMetadata(ExtendedMetadata metadata, IEnumerable`1 attributes, IEnumerable`1 metadataHandlers) +141 ↵ EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider.CreateMetadata(IEnumerable`1 attributes, Type containerType, Func`1 modelAccessor, Type modelType, String propertyName) +588 ↵ System.Web.Mvc.AssociatedMetadataProvider.GetMetadataForType(Func`1 modelAccessor, Type modelType) +133 ↵ EPiServer.Shell.UI.Rest.MetadataStore.Get(String id, String modelAccessor) +409 ↵ lambda_method(Closure , ControllerBase , Object[] ) +191 ↵ System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +229 ↵ System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35 ↵ System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;BeginInvokeSynchronousActionMethod&gt;b__39(IAsyncResult asyncResult, …lterAsynchronouslyRecursive&gt;b__3d() +72 ↵ System.Web.Mvc.Async.&lt;&gt;c__DisplayClass46.&lt;InvokeActionMethodFilterAsynchronouslyRecursive&gt;b__3f() +385 ↵ System.Web.Mvc.Async.&lt;&gt;c__DisplayClass46.&lt;InvokeActionMethodFilterAsynchronouslyRecursive&gt;b__3f() +385 ↵ System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +42 ↵ System.Web.Mvc.Async.&lt;&gt;c__DisplayClass2b.&lt;BeginInvokeAction&gt;b__1c() +38 ↵ System.Web.Mvc.Async.&lt;&gt;c__DisplayClass21.&lt;BeginInvokeAction&gt;b__1e(IAsyncResult asyncResult) +185 ↵ System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38 ↵ EPiServer.Shell.Services.Rest.RestControllerBase.EndExecute(IAsyncResult asyncResult) +60 ↵ System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +649 ↵ System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +213 ↵ System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +131 ↵</pre></code> ↵ ↵ </td> ↵ </tr> ↵ </table> ↵ ↵ <br> ↵ ↵ <hr width=100% size=1 color=silver> ↵ ↵ <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2558.0 ↵ ↵ </font> ↵ ↵ </body> ↵</html> ↵<!-- ↵[ArgumentException]: Unable to find a module by assembly &#39;EPiServer.DynamicContent, Version=1.0.1.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7&#39; ↵Parameter name: moduleAssembly ↵ at EPiServer.Shell.Paths.ToResource(Assembly moduleAssembly, String moduleRelativeResourcePath) ↵ at EPiServer.DynamicContent.EPiServer.UI.UI.EditorDescriptors.DynamicContentEditorDescriptor.ModifyMetadata(ExtendedMetadata metadata, IEnumerable`1 attributes) ↵ at EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider.ApplyExtendersToMetadata(ExtendedMetadata metadata, IEnumerable`1 attributes, IEnumerable`1 metadataHandlers) ↵ at EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider.GetMetadataForProperties(ExtendedMetadata parent, Object container, Type containerType, IMetadataProvider customProvider) ↵ at EPiServer.Shell.ObjectEditing.ExtendedMetadata.get_Properties() ↵ at EPiServer.Cms.Shell.UI.ObjectEditing.AllowedTypesMetadataExtender.ModifyMetadata(ExtendedMetadata metadata, IEnumerable`1 attributes) ↵ at EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider.ApplyExtendersToMetadata(ExtendedMetadata metadata, IEnumerable`1 attributes, IEnumerable`1 metadataHandlers) ↵ at EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider.CreateMetadata(IEnumerable`1 attributes, Type containerType, Func`1 modelAccessor, Type modelType, String propertyName) ↵ at System.Web.Mvc.AssociatedMetadataProvider.GetMetadataForType(Func`1 modelAccessor, Type modelType) ↵ at EPiServer.Shell.UI.Rest.MetadataStore.Get(String id, String modelAccessor) ↵ at lambda_method(Closure , ControllerBase , Object[] ) ↵ at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) ↵ at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) ↵ at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) ↵ at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) ↵ at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) ↵ at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() ↵ at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() ↵ at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() ↵ at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) ↵ at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() ↵ at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) ↵ at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) ↵ at EPiServer.Shell.Services.Rest.RestControllerBase.EndExecute(IAsyncResult asyncResult) ↵ at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() ↵ at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) ↵ at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ↵-->

any suggestions will be appreciated. 

thank you

#189302
Mar 14, 2018 21:22
H F
Vote:
 

resoloved the issue only by updating bunch of the dlls to the latest 11.3.4 version. 

thank you

#189389
Mar 16, 2018 21:23
Siddharth Gupta - Jul 12, 2019 23:40
@H F could you please mention the packages you upgraded, I am facing the same issue.
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.