Umbraco 13 → 17 upgrade: All pages returning 404 despite published content and valid templates

I’m currently upgrading a project from Umbraco 13 to Umbraco 17 and I’ve completed most of the migration work (including updates to Block Grid, Media Picker, and other components).

However, I’m facing an issue where all URLs return 404, even though everything appears to be correctly configured.

:magnifying_glass_tilted_left: What I’ve verified so far:

  • :white_check_mark: Physical view exists: /Views/Home.cshtml

  • :white_check_mark: Template is correctly assigned under Document Type → Home

  • :white_check_mark: Content node (Home) is:

    • Created

    • Saved & Published

  • :white_check_mark: Cache cleared

  • :white_check_mark: Examine indexes rebuilt

  • :white_check_mark: Tried to create template but not working with new template also .

:red_exclamation_mark: Issue:

  • Any request to the site (including the homepage) results in a 404 Not Found

  • Backoffice works fine

  • No obvious errors in logs related to routing/templates

:magnifying_glass_tilted_right: Additional context:

  • This is a migrated project, not a fresh Umbraco 17 install

  • Models have been regenerated after upgrade

  • I’ve already updated deprecated editors (Block Grid, Media Picker, etc.)

    Note:
    Current Version : .Net 10
    Umbraco Version: 17.4.2

Hi @Jaics262

We had this on a migration recently and it was due to the Smidge references still present in the_ViewImports.cshtml file.

See if these are present and remove them:

@addTagHelper *, Smidge
@inject Smidge.SmidgeHelper SmidgeHelper

You may also want to turn on compile on publish/build for views to catch any other compile errors in the views.

<PropertyGroup>
<RazorCompileOnBuild>true</RazorCompileOnBuild>
<RazorCompileOnPublish>true</RazorCompileOnPublish>
</PropertyGroup>

Justin

Hi @justin-nevitech
I tried to remove those reference and I have added the settings RazorCompile options . Still its not working.

Jayakumar

Hi @Jaics262

Do you get anything in the logs that may indicate what the problem is?

Justin

Hi @Jaics262

Can you also check the content is published in Umbraco and shows a routable URL in the Info tab?

If not, you may need to rebuild the database and/or memory cache.

Justin

Hi @Jaics262

Another thing worth checking: we ran into issues using the older-style Program.cs/Startup.cs split on v17 and had to migrate over to the minimal hosting model (top-level statements in a single Program.cs). Might be worth seeing if that’s the cause for you too.

Justin

Hi @justin-nevitech

Thanks for Suggestion ,
We are already using Programs.cs( Minimal Hosting Model) . There is one log stating No physical document present . But I verified the location /Views/Home.cshtml and /Views/About.cshtml both are available .

Thanks in advance

Is that a typo in the forum or is the template extension wrong on disk?

Justin

Sorry Its typo error . Actual name is Home.cshtml only

Hi @Jaics262

The Home page is published with a routable URL, so content and routing are fine. The problem must be in the view rendering.

Since a new template 404s too, run the site in Development mode (or set Umbraco:CMS:Hosting:Debug to true) and you should get the real Razor error instead of a 404. I’d put money on something in _ViewStart.cshtml or your layout not migrating cleanly - that’d break every page at once.

Can you switch that on and grab the error off the homepage?

Justin

Thanks for your quick reply . I will change the debug flag and verify it . Will reply with the detailed message .

i would check alias a small but sometimes i do all other investigation but acutally is alias mismatch or typo

dont think this is the case pls share logs tnx

@justin-nevitech @BishalTimalsina12
I tried taking a fresh copy of a Version 13 database and upgraded it directly to Version 17, without using uSync or uSync Migrations.

During the upgrade, I’m seeing the following warnings:

  • No migration data was found for the data editor split for data type Media Picker (Umbraco.MediaPicker - 1048). Please make sure you’re upgrading from the latest V13. The affected data type may not work correctly.

  • No migration data was found for the data editor split for data type Registration Guidance - Content Blocks - Nested Content (Umbraco.NestedContent - 1369). Please make sure you’re upgrading from the latest V13. The affected data type may not work correctly.

I will attempt to convert or reconfigure these data types in the Version 17 backoffice and will share an update once verified.

Once again thanks for your help .