Use existing “MasterPage1.Master” page in Razor page (MVC3 .net) RRS feed

  • Question

  • Hi,

    I am trying to use MVC3 Razor pages in my project.
    Project already have master page called “MasterPage1.Master”.
    I am trying to use existing “MasterPage1.Master” in Razor page.
    But it throws me exception. “The file "~/Views/Shared/MasterPage1.Master" could not be rendered, because it does not exist or is not a valid page.”
    I know we need to use Layout pages as master page for Razor.
    But is there a way to use existing “MasterPage1.Master” page in Razor page, because i don't want to maintain two master pages in my project.

    Thanks in Advance


    Wednesday, March 14, 2012 9:58 PM


  • Is this a Live Connect question?
    If not, please ask this here instead:

    Wednesday, March 14, 2012 10:43 PM