2

I'm currently testing Sc10 with ASP.NET Core Rendering Host from the following Getting Started documentation.

So far the rendering host works fine but whenever I want to access the Experience Editor I get an internal server error 500. I tried to debug the rendering host which works but throws errors in some code I can't locate. (Without any customizations). Does anyone had the same issues?

Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: The remote server returned an error: (500) Internal Server Error.
   at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)
   at System.Net.WebClient.UploadString(Uri address, String method, String data)
   at Sitecore.JavaScriptServices.ViewEngine.Http.RenderEngine.Invoke[T](String moduleName, String functionName, Object[] functionArgs)
   at Sitecore.JavaScriptServices.ViewEngine.Presentation.JssRenderer.PerformRender(TextWriter writer, IRenderEngine renderEngine, String moduleName, String functionName, Object[] functionArgs)
   at Sitecore.JavaScriptServices.ViewEngine.Presentation.JssRenderer.Render(TextWriter writer)
   at Sitecore.Mvc.Pipelines.Response.RenderRendering.ExecuteRenderer.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args)
1
  • Please include the exception as plain text. Search Engines can't scan your screencaps.
    – Mark Cassidy
    Commented Aug 20, 2020 at 4:35

1 Answer 1

3

This was an issue in the initial release of the ASP.NET Core SDK (14.0.0). It is resolved in 14.0.1, which is referenced in version 1.0.1 of Sitecore.DevEx.Templates.

To install latest template:

dotnet new -i Sitecore.DevEx.Templates --nuget-source https://sitecore.myget.org/F/sc-packages/api/v3/index.json

If you have an existing template instance, you can upgrade the packages in the RenderingHost.csproj manually, or by doing something like this:

([xml](gc .\RenderingHost.csproj -Raw)).GetElementsByTagName("PackageReference") | ? { $_.Include.StartsWith("Sitecore") } | % { dotnet add package $_.Include }

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.