Mono MasterPage Issues in MonoDevelop

I was trying to get a MonoDevelop MVC application up and running and came across this little snag.The error was:

"The view 'Index' or its master could not be found"

The Index.aspx view existed, but it was linked to a MasterPage like this:

<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Views/Shared/MasterPage.master" %>

I added this to the Web.config file:

<pages pageBaseType="System.Web.UI.Page">

And the issue went away.