Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Required attribute 'pageBaseType' not found - YSOD when launching my MVC 3 application

since this morning I keep getting this error when trying to launch my MVC 3 application:

Required attribute 'pageBaseType' not found.

Error Message

Google did not reveal much useful information and I am not aware of any changes made to web.config other than adding MVCMailer.

Any ideas on how to fix this?

like image 904
b3n Avatar asked Mar 08 '11 05:03

b3n


1 Answers

I received this same error, also after installing MvcMailer. The error was coming not from the root Web.config, but from a web.config under the view folder. I compared this to a new MVC 3 project and found my version, updated by some package, had changed the setting to:

<pages>

from the default:

<pages pageBaseType="System.Web.Mvc.WebViewPage">

Changing this back to the default removed the error.

EDIT:

and adding back in...

<system.web.webPages.razor>
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

and..

<system.web>
<pages
        validateRequest="false"
        pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
        pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
        userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
like image 58
Gene Reddick Avatar answered Sep 23 '22 10:09

Gene Reddick