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

**URL:** <https://forum.umbraco.com/t/upgrading-to-v17-0-0-no-physical-template-file-was-found-for-template/6838>\
**Category:** Questions\
**Tags:** v17\
**Created:** [November 30, 2025, 11:58pm UTC](https://forum.umbraco.com/t/upgrading-to-v17-0-0-no-physical-template-file-was-found-for-template/6838 "2025-11-30T23:58:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![craigs100](https://forum.umbraco.com/user_avatar/forum.umbraco.com/craigs100/32/3374_2.png) [@craigs100](https://forum.umbraco.com/u/craigs100)\
**Post date:** [November 30, 2025, 11:58pm UTC](https://forum.umbraco.com/t/upgrading-to-v17-0-0-no-physical-template-file-was-found-for-template/6838/1 "2025-11-30T23:58:45Z")

</div>

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:

```json
"ModelsBuilder": {
  "ModelsMode": "SourceCodeManual"
}

```

CSProj has:

```xml
<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.

---

<div class="post-metadata">

**Author:** ![yawkale](https://forum.umbraco.com/user_avatar/forum.umbraco.com/yawkale/32/358_2.png) [@yawkale](https://forum.umbraco.com/u/yawkale)\
**Post date:** [December 1, 2025, 12:37am UTC](https://forum.umbraco.com/t/upgrading-to-v17-0-0-no-physical-template-file-was-found-for-template/6838/2 "2025-12-01T00:37:49Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![greystate](https://forum.umbraco.com/user_avatar/forum.umbraco.com/greystate/32/301_2.png) [@greystate](https://forum.umbraco.com/u/greystate)\
**Post date:** [December 1, 2025, 5:29am UTC](https://forum.umbraco.com/t/upgrading-to-v17-0-0-no-physical-template-file-was-found-for-template/6838/3 "2025-12-01T05:29:01Z")

</div>

Hi Craig 👋

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

---

<div class="post-metadata">

**Author:** ![sebastiaan](https://forum.umbraco.com/user_avatar/forum.umbraco.com/sebastiaan/32/279_2.png) [@sebastiaan](https://forum.umbraco.com/u/sebastiaan)\
**Post date:** [December 1, 2025, 8:54am UTC](https://forum.umbraco.com/t/upgrading-to-v17-0-0-no-physical-template-file-was-found-for-template/6838/4 "2025-12-01T08:54:08Z")

</div>

> ensure the following settings are removed from your `.csproj` file:
> 
> ```auto
> <RazorCompileOnBuild>false</RazorCompileOnBuild>
> <RazorCompileOnPublish>false</RazorCompileOnPublish>
> 
> ```

From: [Version Specific Upgrades | Umbraco CMS](https://docs.umbraco.com/umbraco-cms/fundamentals/setup/upgrading/version-specific#:%5C~:text=ensure%20the%20following%20settings%20are%20removed)

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 |

---

<div class="post-metadata">

**Author:** ![craigs100](https://forum.umbraco.com/user_avatar/forum.umbraco.com/craigs100/32/3374_2.png) [@craigs100](https://forum.umbraco.com/u/craigs100)\
**Post date:** [December 1, 2025, 9:44am UTC](https://forum.umbraco.com/t/upgrading-to-v17-0-0-no-physical-template-file-was-found-for-template/6838/5 "2025-12-01T09:44:11Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://forum.umbraco.com/uploads/default/original/1X/624adeddd330a3d0268a184db47946ca7e82c676.png) [@system](https://forum.umbraco.com/u/system)\
**Post date:** [December 31, 2025, 9:44am UTC](https://forum.umbraco.com/t/upgrading-to-v17-0-0-no-physical-template-file-was-found-for-template/6838/6 "2025-12-31T09:44:22Z")

</div>

Closed on December 31, 2025, 9:44am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
