找不到类型 x 的构造函数 - Glass Mapper Language

Constructor on type x not found - Glass Mapper Language

我得到了一个用 glass mapper 构建的 sitecore 微型网站,并且在英文版上运行良好。

www.website.com/?sc_lang=zh-CN

但是,如果我去法文版的网站。

www.website.com/?sc_lang=fr

我遇到了一个错误

Constructor on type 'xxxxx.INest_Landing_Page' not found.

Description: An unhandled exception occurred.

Exception Details: System.MissingMethodException: Constructor on type 'xxxx.INest_Landing_Page' not found.

Source Error:

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.

Stack Trace:

[MissingMethodException: Constructor on type 'xxx.INest_Landing_Page' not found.] System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +14259449
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +200 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
Sitecore.Mvc.Presentation.ModelLocator.GetModelFromTypeName(String typeName, String model, Boolean throwOnTypeCreationError) +99
Sitecore.Mvc.Pipelines.Response.GetModel.GetFromLayout.GetFromField(Rendering rendering, GetModelArgs args) +336
Sitecore.Mvc.Pipelines.Response.GetModel.GetFromLayout.Process(GetModelArgs args) +102 (Object , Object[] ) +83
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +365
Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +186
Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args, Func`2 resultGetter) +197
Sitecore.Mvc.Presentation.Rendering.GetModel() +337
Sitecore.Mvc.Presentation.Rendering.get_Model() +27
Sitecore.Mvc.Presentation.ViewRenderer.get_Model() +167
Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +158

[InvalidOperationException: Error while rendering view: '/views/shared/xxxst/xxx.cshtml'. ]

如有任何建议,我们将不胜感激。

确保您拥有所选语言的所有项目,并且安装的语言 (fr-FR) 而不仅仅是 (fr)

我想这应该有所帮助