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
- Add Imports
<%@ Import Namespace="ToSic.Sxc.Dnn" %>
<%@ Import Namespace="ToSic.Sxc.Services" %>
- Change Code
- <%=ToSic.SexyContent.Environment.Dnn7.Factory.SxcInstanceForModule(ModuleId, PageId).Render()%>
- to
-
<%= this.GetScopedService<IRenderService>().Module(PageId, ModuleId)%>