Copied to clipboard

Flag this post as spam?

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


  • Fahad Ayub 71 posts 238 karma points
    Apr 18, 2016 @ 10:56
    Fahad Ayub
    0

    System.Exception: No physical template file was found for template SkinCare

    Hi, I am getting the error :

    System.Exception: No physical template file was found for template SkinCare
    

    In Umbraco backend I have DocumetType SkinCare and template SkinCare. The template SkinCare inherits from the parent template.

    @{
    Layout = "ParentPage.cshtml";
    }
    

    in SkinCareController I have the following code:

    public class SkinCareController :  RenderMvcController
    {
        // GET: SkinCare
        public ActionResult SkinCare(RenderModel model)
        {
    
    
            return base.Index(model);
        }
    }
    

    But when I try browse the page SkinCare I am getting the above mentioned error.

    What I am doing wrong here ?

    Thanks

  • Niels Lynggaard 190 posts 548 karma points
    Apr 18, 2016 @ 13:12
    Niels Lynggaard
    0

    If you create the documenttype without a template and then later create the template, you still need to "match" the two..

    Check to see that your documenttype has a default template chosen on your documenttype: enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft