Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andy Walker 7 posts 41 karma points
    Oct 20, 2023 @ 14:40
    Andy Walker
    0

    Umbraco 12 - Pubilsh to IIS - {{another}} - Page Not Found - No physical template was found for template

    New to umbraco yet have almost 20 years in web development and working with IIS.

    I'm working w/ the BlockGridExample starter kit - works fine locally - and just want to publish this thing. Failed going to our live servers - so I am trying to work on my local machines IIS (on Windows 10) to figure out the proper steps quickly. The hurdles are large when you're not overly familiar w/ Umbraco - but I've whittled my way down over the last 48 hours - but am at a loss.

    NOTE: All I am doing is trying to publish the default Block Grid Example template with Sql Server so my employees can review it and prove we can do the minimum necessary to host Umbraco.

    Every response I find in the forums and searching online regarding the "No physical template was found for template" states that either the template is missing from the views folder or permissions.

    • Template - EXISTS
    • Permissions - SET
    • SSL - setup and pointed for local development
    • Umbraco Backoffice WORKS!!
    • Re-saved and Published - CHECK

    I'm at a hard loss and frustrated on something that should be simple. What am I not understanding or missing? Any additional suggestions from anyone?

    Here's some pictures to show what I do have setup.

    IIS Path

    IIS Path

    Folder Permissions - IIS_IUSRS has the same Full Control

    Folder Permissions

    File in Folder

    File in Folder

    Backoffice Works and Template

    Backoffice Works and Template

  • Yakov Lebski 591 posts 2346 karma points
    Oct 21, 2023 @ 21:52
    Yakov Lebski
    0

    do you set hostname on homepage?

  • Andy Walker 7 posts 41 karma points
    Oct 23, 2023 @ 13:37
    Andy Walker
    0

    Great suggestion Yakov - I didn't think of that. But unfortunately adding that didn't change anything even after a hard restart.

    my root /logs folder for stdout creates a file - but it's empty.

    My /umbraco/logs file still states that the file BlockGrid doesn't exist - yet I see it in the /Views/ folder.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Oct 23, 2023 @ 13:51
    Huw Reddick
    0

    what is the exact error you are receiving?

  • Andy Walker 7 posts 41 karma points
    Oct 23, 2023 @ 14:00
    Andy Walker
    0

    Hello Huw, Here's the records from my last request - the first 6 just look to be info logs - and the last is the No Physical Template Warn

       {"@t":"2023-10-23T13:53:49.8545983Z","@mt":"Creating the content store, localContentDbExists? {LocalContentDbExists}","LocalContentDbExists":true,"SourceContext":"Umbraco.Cms.Infrastructure.PublishedCache.PublishedSnapshotService","RequestId":"800003cf-0001-ee00-b63f-84710c7967bb","RequestPath":"/","ProcessId":48988,"ProcessName":"w3wp","ThreadId":9,"ApplicationId":"63626280b5a9f0ed23a9c85e384a4d9d2757ab36","MachineName":"CIO-001","Log4NetLevel":"INFO ","HttpRequestId":"ea78d489-a9f2-4a59-9791-e1270363d3dc","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2023-10-23T13:53:49.8555317Z","@mt":"Creating the media store, localMediaDbExists? {LocalMediaDbExists}","LocalMediaDbExists":true,"SourceContext":"Umbraco.Cms.Infrastructure.PublishedCache.PublishedSnapshotService","RequestId":"800003cf-0001-ee00-b63f-84710c7967bb","RequestPath":"/","ProcessId":48988,"ProcessName":"w3wp","ThreadId":9,"ApplicationId":"63626280b5a9f0ed23a9c85e384a4d9d2757ab36","MachineName":"CIO-001","Log4NetLevel":"INFO ","HttpRequestId":"ea78d489-a9f2-4a59-9791-e1270363d3dc","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2023-10-23T13:53:50.1566813Z","@mt":"{StartMessage} [Timing {TimingId}]","StartMessage":"Loading content from local cache file","TimingId":"a53d387","SourceContext":"Umbraco.Cms.Core.Logging.ProfilingLogger","RequestId":"800003cf-0001-ee00-b63f-84710c7967bb","RequestPath":"/","ProcessId":48988,"ProcessName":"w3wp","ThreadId":9,"ApplicationId":"63626280b5a9f0ed23a9c85e384a4d9d2757ab36","MachineName":"CIO-001","Log4NetLevel":"INFO ","HttpRequestId":"ea78d489-a9f2-4a59-9791-e1270363d3dc","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2023-10-23T13:53:50.1871540Z","@mt":"{EndMessage} ({Duration}ms) [Timing {TimingId}]","EndMessage":"Completed.","Duration":30,"TimingId":"a53d387","SourceContext":"Umbraco.Cms.Core.Logging.ProfilingLogger","RequestId":"800003cf-0001-ee00-b63f-84710c7967bb","RequestPath":"/","ProcessId":48988,"ProcessName":"w3wp","ThreadId":9,"ApplicationId":"63626280b5a9f0ed23a9c85e384a4d9d2757ab36","MachineName":"CIO-001","Log4NetLevel":"INFO ","HttpRequestId":"ea78d489-a9f2-4a59-9791-e1270363d3dc","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2023-10-23T13:53:50.1918819Z","@mt":"{StartMessage} [Timing {TimingId}]","StartMessage":"Loading media from local cache file","TimingId":"786c55f","SourceContext":"Umbraco.Cms.Core.Logging.ProfilingLogger","RequestId":"800003cf-0001-ee00-b63f-84710c7967bb","RequestPath":"/","ProcessId":48988,"ProcessName":"w3wp","ThreadId":9,"ApplicationId":"63626280b5a9f0ed23a9c85e384a4d9d2757ab36","MachineName":"CIO-001","Log4NetLevel":"INFO ","HttpRequestId":"ea78d489-a9f2-4a59-9791-e1270363d3dc","HttpRequestNumber":1,"HttpSessionId":"0"}
    {"@t":"2023-10-23T13:53:50.1943187Z","@mt":"{EndMessage} ({Duration}ms) [Timing {TimingId}]","EndMessage":"Completed.","Duration":2,"TimingId":"786c55f","SourceContext":"Umbraco.Cms.Core.Logging.ProfilingLogger","RequestId":"800003cf-0001-ee00-b63f-84710c7967bb","RequestPath":"/","ProcessId":48988,"ProcessName":"w3wp","ThreadId":9,"ApplicationId":"63626280b5a9f0ed23a9c85e384a4d9d2757ab36","MachineName":"CIO-001","Log4NetLevel":"INFO ","HttpRequestId":"ea78d489-a9f2-4a59-9791-e1270363d3dc","HttpRequestNumber":1,"HttpSessionId":"0"}
     {"@t":"2023-10-23T13:53:50.3320129Z","@mt":"No physical template file was found for template {Template}","@l":"Warning","Template":"BlockGrid","SourceContext":"Umbraco.Cms.Web.Common.Controllers.RenderController","ActionId":"c26de1bd-d7d9-47e7-8cc2-6f580597e01b","ActionName":"Umbraco.Cms.Web.Common.Controllers.RenderController.Index (Umbraco.Web.Common)","RequestId":"800003cf-0001-ee00-b63f-84710c7967bb","RequestPath":"/","ProcessId":48988,"ProcessName":"w3wp","ThreadId":9,"ApplicationId":"63626280b5a9f0ed23a9c85e384a4d9d2757ab36","MachineName":"CIO-001","Log4NetLevel":"WARN ","HttpRequestId":"ea78d489-a9f2-4a59-9791-e1270363d3dc","HttpRequestNumber":1,"HttpSessionId":"c3730929-265e-e4fb-908b-7d0355a37a12"}
    

    This is what my Site looks like - Page Not Found (I'm now working locally on my IIS server - the admin section seems to be working fine for the site)

    Page Not Found

    I'm working on trying different Publish commands to try and remove the runtimes folder - but again - I'm just experimenting now as I'm not too familiar w/ Umbraco.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Oct 23, 2023 @ 14:26
    Huw Reddick
    0

    is your home page set to use this BlockGrid Template ?

    Just a thought, but maybe it doesn't like you naming the template BlockGrid due to some internal name clash.

  • Andy Walker 7 posts 41 karma points
    Oct 23, 2023 @ 14:36
    Andy Walker
    0

    Thanks for the reply Huw. Yes - home page is set to use the template. This is the Starter Kit - that works fine when just going on through development/initial setup running via command line and localhost

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Oct 23, 2023 @ 14:41
    Huw Reddick
    0

    if you have full control of the server, you could try temporarily giving "Everyone" full access, that would rule out permissions if it still failed.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Oct 23, 2023 @ 14:46
  • Andy Walker 7 posts 41 karma points
    Oct 23, 2023 @ 15:20
    Andy Walker
    100

    Huw - you're willingness to help and offer suggestions is awesome and truly appreciated!!

    I've picked up a few nuances of Umbraco - and have some questions to go with those - but will save those for another day.

    I mentioned in an earlier post I was going to work with the dotnet publish aspect as I had that huge runtimes folder and wasn't sure if that was part of the issue.

    So I built for my runtime and self-contained being false to get rid of it: dotnet publish -c Release --runtime win-x64 --self-contained false

    Running that on my site gave me an error regarding: umbraco The type 'BlockGrid' exists in both 'ModelsGeneratedAssembly and '{mySite}.Site'

    Which I was able to fix after realizing an assumption I had was wrong. I set "ModelsMode": "SourceCodeManual" for development - and assumed I was wanting to keep it as InMemoryAuto once live - but that's not the case as my VS Solution included those *.generated.cs files in the build. Realizing this - I switched it back to SourceCodeManual in my appSettings.Production.json file - and the front-end of the site is working! YEAH!!!

    I'll continue to play around here to better understand - but I'm assuming right now that my VS solution is auto-adding the references for compiling build - where using VSCode - would give me intellisense - but the *.csproj wouldn't have included the files on build via the command line. So since I'm usually a "Work in Visual Studio" developer - and reading documentation about using both command-line and visual studio - I just need to find my sweet spot here for Umbraco and be consistent.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Oct 23, 2023 @ 15:43
    Huw Reddick
    0

    Glad you are up and running. I believe you can also set the ModelsMode to None (or something similar) in production, so then all changes get done in dev and pushed to production when updated.

  • Andy Walker 7 posts 41 karma points
    Oct 23, 2023 @ 16:41
    Andy Walker
    0

    I do know it was initially set to be "Nothing" - but I still had issues. Of course - being new and getting it to work I know I tweaked around a few items so I don't recall if I was moving that around before or after I started working w/ the dotnet publish aspect.

    Overall - Good to know that's what "Nothing" is supposed to do - so I'll keep that in mind as we play around with Umbraco.

Please Sign in or register to post replies

Write your reply to:

Draft