+1-888-365-2779
Try Now
More in this section

Forums / Designing with Sitefinity / Error when masterpage is externally deleted

Error when masterpage is externally deleted

6 posts, 0 answered
  1. Bob Howard
    Bob Howard avatar
    22 posts
    Registered:
    06 Jan 2008
    08 Jan 2008
    Link to this post
    I found an interesting situation if you delete a masterpage that belongs to a template.  It will give you the following error "/App_Master/Inner.master" does not exist. There doesn't seem to be a way in the admin to resolve this situation.  I also found there is no way of renaming an existing template to fool sitefinity to use another template.

    The file '/App_Master/Inner.master' does not exist.' 


  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    28 Oct 2016
    09 Jan 2008
    Link to this post
    Hi Bob,

    The described behavior is by design. Every template is associated with a given .master page located in ~/App_Master folder. Normally, after deleting the .master page, an exception should be thrown. The workaround is to delete the corresponding template using the deleted .master page as well.

    Regarding the second issue, you can rename the template, but you cannot associate it with a different .master page.

    For more information on this matter, please, refer to the User Manual, chapter Working with Page Templates.

    Hope this is helpful for you.

    Best wishes,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Bob Howard
    Bob Howard avatar
    22 posts
    Registered:
    06 Jan 2008
    10 Jan 2008
    Link to this post
    I can't exactly remember in which order, but I deleted both of them.
  4. Pepi
    Pepi avatar
    981 posts
    Registered:
    28 Oct 2016
    10 Jan 2008
    Link to this post
    Hi Bob,

    Unfortunately, we cannot find any problems or unexpected behavior. So it will be very helpful if you describe in details the steps for reproducing this in order to figure out what is wrong.

    Thanks for your cooperation in advance.

    Sincerely yours,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    04 Feb 2008
    Link to this post
    i had this problem

    simply add any master page back in called
    Inner.master

    Then make your changes and delete the master page when nothing is associated to it
  6. Nikifor
    Nikifor avatar
    232 posts
    Registered:
    18 May 2013
    05 Feb 2008
    Link to this post
    Hello Quade,

    Thank you for the elaboration.

    As we mentioned earlier, this behavior is by design. Normally, when the application is started, Sitefinity checks all master page files located under YourProject\App_Master folder. For every .master file, it creates a page template with a name taken from the corresponding file. Thus, if you have a master page file with name Test.master, on application start, a page template Test will be created.

    Let us know if there is some misunderstanding.

    All the best,
    Nikifor Hristov
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
6 posts, 0 answered