Not able to bind Rich Text field to Model if I am embedding an ECL image in a RTF field. Getting below error:
Unable to map field 'description' to property of type 'Sdl.Web.Common.Models.RichText'. ---> Sdl.Web.Common.DxaException: No semantic mapping found between Schema 295 (http://www.sdl.com/web/schemas/core:ExternalContentLibraryStubSchemamm) and model type 'Sdl.Web.Common.Models.MediaItem' Sdl.Web.Common.DxaException: Unable to map field 'description' to property of type 'Sdl.Web.Common.Models.RichText'. ---> Sdl.Web.Common.DxaException: No semantic mapping found between Schema 295 (http://www.sdl.com/web/schemas/core:ExternalContentLibraryStubSchemamm) and model type 'Sdl.Web.Common.Models.MediaItem' at DynamicModule.ns.Wrapped_IRichTextProcessor_6356ea62ef3f4433b0f047b3f93feb12.ProcessRichText(String xhtml, Localization localization) at Sdl.Web.Tridion.Mapping.DefaultModelBuilder.MapFieldValues(IField field, Type modelType, Boolean multival, MappingData mapData) in D:\Repository\LocalDevstage27March\master\source code\web application\Sdl.Web.Tridion\Mapping\DefaultModelBuilder.cs:line 622 --- End of inner exception stack trace --- at Sdl.Web.Tridion.Mapping.DefaultModelBuilder.MapFieldValues(IField field, Type modelType, Boolean multival, MappingData mapData) in D:\Repository\LocalDevstage27March\master\source code\web application\Sdl.Web.Tridion\Mapping\DefaultModelBuilder.cs:line 653 at Sdl.Web.Tridion.Mapping.DefaultModelBuilder.CreateViewModel(MappingData mappingData) in D:\Repository\LocalDevstage27March\master\source code\web application\Sdl.Web.Tridion\Mapping\DefaultModelBuilder.cs:line 400 at Sdl.Web.Tridion.Mapping.DefaultModelBuilder.BuildEntityModel(EntityModel& entityModel, IComponent component, Type baseModelType, Localization localization) in D:\Repository\LocalDevstage27March\master\source code\web application\Sdl.Web.Tridion\Mapping\DefaultModelBuilder.cs:line 191 at Sdl.Web.Tridion.Mapping.DefaultModelBuilder.BuildEntityModel(EntityModel& entityModel, IComponentPresentation cp, Localization localization) in D:\Repository\LocalDevstage27March\master\source code\web application\Sdl.Web.Tridion\Mapping\DefaultModelBuilder.cs:line 144 at Sdl.Web.Tridion.Mapping.ModelBuilderPipeline.CreateEntityModel(IComponentPresentation cp, Localization localization) in D:\Repository\LocalDevstage27March\master\source code\web application\Sdl.Web.Tridion\Mapping\ModelBuilderPipeline.cs:line 100 at Sdl.Web.Tridion.Mapping.DefaultModelBuilder.BuildPageModel(PageModel& pageModel, IPage page, IEnumerable`1 includes, Localization localization) in D:\Repository\LocalDevstage27March\master\source code\web application\Sdl.Web.Tridion\Mapping\DefaultModelBuilder.cs:line 76
DynamicModule.ns.Wrapped_IRichTextProcessor
line in the stack trace is about (I would expectDefaultRichTextProcessor
there)?