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
Sunny