Runtime error after installing 2sxc 18.04.00 in Oqtane version 6 #3514
-
hi - I have watched the various videos today about 2sxc and am very excited to try it out. E.g. I've just done a clean install of Oqtane 9, and then went to Module Management and installed the 2sxc 18.04.00 module from there. I restarted Oqtane 9, and then created two new pages. For the first of these I added a Content module, for the second I added an App module. Can't find uiRoot - something went wrong, pls contact 2sxc.org When I click on F5 to continue I then get a second error (perhaps not surprisingly given the first one): Can't load pageid, moduleid, etc. and $ is not available. Any idea how I can solve this please? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
@patrickjlee glad that you want to try it out ;) Are you running in Visual Studio or on an IIS? If Visual Studio, did you disable hot reloading as is explained in the warnings & docs? |
Beta Was this translation helpful? Give feedback.
-
I'm repeating this comment from #3515 for others. A month ago, I created a YouTube video that demonstrates all the steps to install and run the Oqtane source version with the 2sxc module, including the 2sxc Content and App templates, all using Visual Studio. Install Oqtane and 2sxc in Microsoft Visual Studio Please make sure to exclude the following folders from the Oqtane.Server project in Visual Studio before building and running Oqtane:
These steps are demonstrated in the video around the 6:40 mark: Exclude Folders in Visual Studio. You can also see an example of the build error that occurs if you skip these steps. Alternatively, you can manually add the following to the <ItemGroup>
<!-- Exclude all files in directory and its subdirectories from being compiled. -->
<Compile Remove="2sxc\**" />
<Compile Remove="App_Data\**" />
<Compile Remove="Content\**" />
<Compile Remove="wwwroot\Modules\ToSic.Sxc.Oqtane\**" />
<!-- Exclude all content files (like .html, .css, .js) from being included in the build output. -->
<Content Remove="2sxc\**" />
<Content Remove="App_Data\**" />
<Content Remove="Content\**" />
<Content Remove="wwwroot\Modules\ToSic.Sxc.Oqtane\**" />
<!-- Exclude all files from being embedded as resources in the assembly. -->
<EmbeddedResource Remove="2sxc\**" />
<EmbeddedResource Remove="App_Data\**" />
<EmbeddedResource Remove="Content\**" />
<EmbeddedResource Remove="wwwroot\Modules\ToSic.Sxc.Oqtane\**" />
<!-- Exclude files that are not otherwise included in any other item group (e.g., documentation files). -->
<None Remove="2sxc\**" />
<None Remove="App_Data\**" />
<None Remove="Content\**" />
<None Remove="wwwroot\Modules\ToSic.Sxc.Oqtane\**" />
<!-- Exclude all files from being watched by the dotnet watch tool. -->
<Watch Remove="2sxc\**" />
<Watch Remove="App_Data\**" />
<Watch Remove="Content\**" />
<Watch Remove="wwwroot\Modules\ToSic.Sxc.Oqtane\**" />
<!-- Exclude all TypeScript files in this directory and subdirectories -->
<TypeScriptCompile Remove="2sxc\**" />
<TypeScriptCompile Remove="App_Data\**" />
<TypeScriptCompile Remove="Content\**" />
<TypeScriptCompile Remove="wwwroot\Modules\ToSic.Sxc.Oqtane\**" />
</ItemGroup> This configuration explicitly defines exclusions for the These folders contain additional assets that are part of the 2sxc apps and templates. While they are used at runtime, they are not intended to be included as source files in the Oqtane.Server project and should not be compiled as part of it. Visual Studio will automatically include them after 2sxc Content or App templates are downloaded, installed, or created. Including them may cause issues during the build process. Therefore, please exclude them before compiling and running the Oqtane development environment. |
Beta Was this translation helpful? Give feedback.
-
Thanks, that fixed it. I suggest that the need to add those exclusions to the csproj file be added to the installation instructions to save anyone else from wasting time encountering this issue. |
Beta Was this translation helpful? Give feedback.
I'm repeating this comment from #3515 for others.
A month ago, I created a YouTube video that demonstrates all the steps to install and run the Oqtane source version with the 2sxc module, including the 2sxc Content and App templates, all using Visual Studio.
Install Oqtane and 2sxc in Microsoft Visual Studio
Please make sure to exclude the following folders from the Oqtane.Server project in Visual Studio before building and running Oqtane:
2sxc
App_Data
Content
wwwroot\Modules\ToSic.Sxc.Oqtane
These steps are demonstrated in the video around the 6:40 mark: Exclude Folders in Visual Studio. You can also see an example of the build error that occurs if you skip these steps.
Alternatively,…