# Umbraco 17 template missing content if published to server

**URL:** <https://forum.umbraco.com/t/umbraco-17-template-missing-content-if-published-to-server/7479>\
**Category:** Questions\
**Tags:** v17\
**Created:** [February 15, 2026, 9:13pm UTC](https://forum.umbraco.com/t/umbraco-17-template-missing-content-if-published-to-server/7479 "2026-02-15T21:13:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![BishalTimalsina12](https://forum.umbraco.com/user_avatar/forum.umbraco.com/bishaltimalsina12/32/5556_2.png) [@BishalTimalsina12](https://forum.umbraco.com/u/BishalTimalsina12)\
**Post date:** [February 16, 2026, 5:12am UTC](https://forum.umbraco.com/t/umbraco-17-template-missing-content-if-published-to-server/7479/2 "2026-02-16T05:12:48Z")

</div>

Hey Mike,

did u check this discussion? maybe this helps?

> [@Upgrading to V17.0.0 No physical template file was found for template](https://forum.umbraco.com/t/upgrading-to-v17-0-0-no-physical-template-file-was-found-for-template/6838/4):
>
> ensure the following settings are removed from your .csproj file: \<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

…tells the compiler **not** to compile Razor views. : Production\local IIS mode expects compiled views, but these settings prevent compilation. The result is that Umbraco can’t find the templates and returns 404 (Page Not Found) errors [Umbraco](https://docs.umbraco.com/umbraco-cms/fundamentals/setup/server-setup/runtime-modes) - or in your case, template content appears blank/disappears because the runtime can’t locate or persist the `.cshtml` files correctly.

The backoffice editor still _shows_ the editor UI (which is why you can type in it), but when you hit save, the file write either fails silently or the runtime just ignores loose `.cshtml` files entirely because it’s expecting compiled views

---

_[View the full topic](https://forum.umbraco.com/t/umbraco-17-template-missing-content-if-published-to-server/7479)._
