I get the following error when I hit the home page for the site collection where I just deployed my feature with web application scope:
The referenced file '/_Layouts/Website/Master Pages/Default.master' is not allowed on this page
My feature deploys the "Default.master" page to the layouts folder and sets the MasterUrl and CustomMasterUrl to "Default.master" for every site collection in the web application. I found the code to do that here. Why would I be receiving this error and how can I fix it?