[V12] No physical template found on Azure App Serv...
# help-with-umbraco
i
Hi all, I have recently moved to a new app service plan in a new subscription in Azure. So I'm starting from scratch again. I moved my Umbraco apps, and all my v12 apps are failing on every page with 'page not found'. Looking in the logs the error is 'No physical template found'. I am running all my apps in the production runtime mode. I removed the 2 lines from the csproj which the docs recommend. Can anybody help? The exact same configuration was working in my previous app plan. I think it maybe has to do with rights.
Okay, I seem to have fixed it. Altough I used Kudu to inspect if the view files were actually present on the server. I have now run a ZIP Deploy from VS, and that seemed to have worked. Subsequent Web Deploys also work fine now. So I guess there is something the Linux web apps don't like about a web deploy and file permissions(uneducated guess). So for anyone running into this. Try that!
a
Linux azure app should run fine
Only thing they have is case sensitivity
i
Yeah it did work before as I said
It was only this vague error since i switched asp
d
> I am running all my apps in the production runtime mode Presumably you are refering to this configuration setting: https://docs.umbraco.com/umbraco-cms/fundamentals/setup/server-setup/runtime-modes You will get this issue if the views are not compiled, i.e. there is not a DLL present containing the compiled views. If you use a disassembler like dotPeek, you will be able to see if there is a namespace and view classes in your main DLL. When running in Production mode you have to precompile your views on publish. This can be tricky because: 1. The views need to be comepletely free of errors, and; 2. I don't think the build or publish process fails if the views don't compile. So locally, it's difficult to see if your views are publish-ready. You also need to ensure that the views are published as files for the backoffice, even if they are not used by the front end.
i
Thats a good shout actually. I might check with dotpeek later to see if that was the case!
c
Thanks for that. I'd been struggling with no templates for a day or so. The wording on that document is awful though. I might PR a change. I always do the Dev and Prod scenario, but not everyone does. If you do things the Dev/Prod way then you need to remove or comment out the RazorCompileOnBuild & RazorCompileOnPublish nodes in the csproj file. Otherwise when you push to a Production env you don't find the templates. It's an interesting Gotcha 🙂
i
Yeah, whats weird is that I followed all the steps. But when zip deploying to my web app it worked, while a web deploy did not. Now everything works fine still
p
I've tried to remove or comment out the RazorCompileOnBuild and RazorCompileOnPublish nodes in my csproj. but when I do that my application won't even build. I know this is an old thread but thought I could make it come alive again
Im on V13
Im realizing now that the build thingy is an actual build error
ignore more, for now
but don't ignore me forever
Okay, pay attention again. I've fixed my build errors. but IM still getting "no physical template found" in my environment. any ideas on how to fix it?
i've tried turning Mode to Development, and now my site won't even start
k
Hmm, I've had exactly this. What was the reason again?
Did the template settings for the doctype migrate correctly? I mean if you check in the backoffice UI on a page, is the selected template correct?
We never zip deploy Azure web apps. Not sure that even works with Umbraco.
p
the node it's trying to load doesn't have a template, but regardless, any other node/page im trying to visit it cannot find the template of, and in the backoffice i can see it's correctly set
this works "as is" in Azure
but right now we're deploying to an on-prem solution
k
~~Öh, did you hijack the post? It seems to pertain to Azure only? ~~ So Azure is not causing your problem, but you are getting the same error? What OS is the on-prem running?
Can the Umbraco backoffice template editor read/write the template files?
p
the on-prem is running windows, we have the application setup in IIS, and the applicationpool/user has full access to all files
i've no idea if it's related
it might be
im really just grasping and trying to find any documentation that I might have missed that applies to running umbraco onpremise
as, when just running in azure, everything just works
but that page is loading correctly
i've no idea why the template isn't showing up in the template editor though
the guy who left me with this mess of a project is gone
oh yeah I did, sorry. I just thought the issue might be same
but I can create a new post
k
No problem, hence the strikethrough 🙂
The template editor should not be empty in development!
If you write something and save, where does it end up?
Does it even persist?
9 Views