HBSTech/Kentico13CoreBaseline

Installation errors on fresh install for VS2022

Opened this issue · 8 comments

Hello,

I've followed the installation instructions for a fresh install on VS2022 the best I can but have the following errors when trying to build the CMSApp solution...

The name EmailOAuthCredentialsInfo does not exist in the current context.
Namespace "CMS.MediaLibrary.Internal" does not exist
The type or namespace "IMediaFileUsageSearchResult" could not be found.

Any help appreciated.

Due to the complex installation process is it possible to create an updated YouTube video that shows the installation steps?

regards,
Darren

The errors above were due to installing the latest pre-release of the Kentico.Xperience.Libraries package.
The latest stable release of 13.0.85 resolved the above issues.

Next error to solve:
Invalid licence for kentico13baseline.hbstest.net

Deleting the existing licenses and adding your own should fix this error - this is done in the license keys app in admin site

I've been trying to install the baseline for the past week, still not successful after numerous attempts. Following the video with Baseline v1.0.0 worked fine, following the steps in the readme with later versions v1.4.0 and v1.5.0 results in a 404 error on the MVC site every time - something to do with the change to PTVC pattern? I'm using VS2022 with fresh installs of Kentico for all attempts. Both admin and MVC sites build ok.

Regarding your original issue- RelationshipsExtended installs Xperience 13.0.0, replacing whatever version you had installed, this is why you need to update the Kentico nuget package in the admin site. When updating Kentico, you'll want to make sure all versions match - admin and MVC site, and the database. So, if you've only installed refresh 7 without any updates for example, you'll want the 13.0.83 (refresh 7) nuget package.

Paul

For the license error, you may also need to update the debug launch profiles settings - Debug menu > MVC Debug Properties - change the App URL to your site

Further to the 404 error I'm getting - this happens when I've followed all steps in the readme for a fresh install of baseline v1.5.0 with Xperience 13.0.83. When I view the Home page in the admin site, I get:

InvalidOperationException: The view on path '~/Views/Shared/PageTypes/Generic_Home.cshtml' could not be found and there is no page template registered for selected page

From this page, I gather the site should using the features folder, not the views folder, haven't figured out how to fix this:

https://devnet.kentico.com/articles/enabling-feature-folders-in-xperience-13-mvc-net-core

Paul

Further to the 404 error I'm getting - this happens when I've followed all steps in the readme for a fresh install of baseline v1.5.0 with Xperience 13.0.83. When I view the Home page in the admin site, I get:

InvalidOperationException: The view on path '~/Views/Shared/PageTypes/Generic_Home.cshtml' could not be found and there is no page template registered for selected page

From this page, I gather the site should using the features folder, not the views folder, haven't figured out how to fix this:

https://devnet.kentico.com/articles/enabling-feature-folders-in-xperience-13-mvc-net-core

Paul

I'm having this too. Just tried the latest install last week

It looks like the CMS.AssemblyDiscoverable is missing and needed for PageTemplate to be registered. Add the following to the MVC.csproj file:

<ItemGroup> <AssemblyAttribute Include="CMS.AssemblyDiscoverable" /> </ItemGroup>

Sorry if this assembly was missing from the projects, i'm almost done revising the baseline and i'll make sure this gets in there...