since this morning I keep getting this error when trying to launch my MVC 3 application:
Required attribute 'pageBaseType' not found.
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?
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">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With