2

I am working on Sitecore JSS and created a sample application. When I am trying access with the new hostname, configured in the app patch file, I got below error.

35472 12:00:27 ERROR Failed to render rendering
Exception: System.MissingMethodException
Message: Method not found: 'System.String Sitecore.JavaScriptServices.ViewEngine.Pipelines.GetRenderEngineFactory.GetRenderEngineFactoryArgs.get_RenderEngineType()'.
Source: Sitecore.JavaScriptServices.ViewEngine.Http
   at Sitecore.JavaScriptServices.ViewEngine.Http.Pipelines.GetRenderEngineFactory.GetHttpEngineFactory.Process(GetRenderEngineFactoryArgs args)
   at (Object , Object )
   at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
   at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists)
   at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)
   at Sitecore.JavaScriptServices.ViewEngine.Pipelines.GetRenderEngineFactory.GetRenderEngineFactoryPipeline.GetFactory(GetRenderEngineFactoryArgs args)
   at Sitecore.JavaScriptServices.ViewEngine.Presentation.JssRenderer.ResolveRenderEngine()
   at Sitecore.JavaScriptServices.ViewEngine.Presentation.JssRenderer.Render(TextWriter writer)
   at Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args)

Method name prefixed with "get_" is something not common. I decompiled the dll Sitecore.JavaScriptServices.ViewEngine and Sitecore.JavaScriptServices.ViewEngine.Http and I do find where it is being called but not found the implementation of this method. Not sure, from where this method request is coming from.

Any clue?

4
  • When you see get_RenderEngineType, it means that RenderEngineType { get { ... } } property is called
    – Marek Musielak
    Commented Nov 21, 2019 at 15:27
  • Thanks for the quick response, but i even didn't find the said method in class GetRenderEngineFactoryArgs and even in base class PipelineArgs. Commented Nov 21, 2019 at 15:35
  • Can you share the app config? Commented Nov 21, 2019 at 16:33
  • Its a default app config what we are getting from nuget package for jss react native. Commented Nov 22, 2019 at 11:17

1 Answer 1

1

You appear to have an inconsistent JSS installation. Ensure all Sitecore.JavaScriptServices assemblies are of the same version. If you are referencing JSS assemblies via NuGet, ensure you are referencing the correct version and not deploying the wrong version into your solution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.