Error

Das Seitenlayout konnte nicht geladen werden: PATH Fehler: PATHANDFILE(22): error CS1061: 'ToSic.Sxc.Blocks.IBlockBuilder' does not contain a definition for 'Render' and no extension method 'Render' accepting a first argument of type 'ToSic.Sxc.Blocks.IBlockBuilder' could be found (are you missing a using directive or an assembly reference?)

 

Somewhere in the file which is mentioned in the error description contains somethin like this: 

ToSic.SexyContent.Environment.Dnn7.Factory.SxcInstanceForModule

 

2sxc 14.xx.xx dont support this method to add 2sxc parts in the skin.

Solution

  1. Add Imports
    1. <%@ Import Namespace="ToSic.Sxc.Dnn" %>
    2. <%@ Import Namespace="ToSic.Sxc.Services" %>
  2. Change Code
    1. <%=ToSic.SexyContent.Environment.Dnn7.Factory.SxcInstanceForModule(ModuleId, PageId).Render()%>
    2. to
    3. <%= this.GetScopedService<IRenderService>().Module(PageId, ModuleId)%>