Upgrading to V17.0.0 No physical template file was found for template

Upgraded site from V13.12.0 to V17.0.0. Every page call results in error: “No physical template file was found for template”

Have read the “Upgrading to V17-rc2…..” post but hasn’t helped.

All docTypes have the correct templates assigned.
All templates are available in the back office “Templates” UI.
Appsettings is using:

"ModelsBuilder": {
  "ModelsMode": "SourceCodeManual"
}

CSProj has:

<RazorCompileOnBuild>false</RazorCompileOnBuild>
<RazorCompileOnPublish>false</RazorCompileOnPublish>
<CopyRazorGenerateFilesToPublishDirectory>true</CopyRazorGenerateFilesToPublishDirectory>

I’ve tried with and without the Umbraco.Cms.DevelopmentMode.Backoffice package.

I’ve deleted the Umbraco/Temp folder and rebuilt Examine indexes.

I’ve run out of options. Anyone any idea what else it could be?

Thanks.

of cource you can build project or install Umbraco.Cms.DevelopmentMode.Backoffice

and set Umbraco::CMS::Runtime::Mode= BackofficeDevelopment

Hi Craig :waving_hand:

EDIT: Just saw that you’ve already tried this - sorry…

Summary

You need to add this package to the project: Umbraco.Cms.DevelopmentMode.Backoffice

(I don’t know much about it - just that it fixes the problem with .NET 10 having removed the hot reloading of Razor files).

/Chriztian

ensure the following settings are removed from your .csproj file:

<RazorCompileOnBuild>false</RazorCompileOnBuild>
<RazorCompileOnPublish>false</RazorCompileOnPublish>

From: Version Specific Upgrades | Umbraco CMS

So in short:

Models Builder mode Install Umbraco.Cms.DevelopmentMode.Backoffice Remove <RazorCompileOnBuild> & <RazorCompileOnPublish>
InMemoryAuto Yes No
Source-code modes (SourceCodeAuto, SourceCodeManual, AppData) No Yes

That’s how I always used to do it in V<=13 but following a upgrade course last month, the source showed to include them but to make them false. I didn’t appreciate the difference in ModelsBuilder Mode though, which is key.

Thanks.