When using MvcContrib Portable Areas I can't get the strongly typed views to work.
I get the error message
'Could not load typeSystem.Web.Mvc.ViewPage<blah>
I've tried with built in types to check if it's an error with my type.
When using MvcContrib Portable Areas I can't get the strongly typed views to work.
I get the error message
'Could not load typeSystem.Web.Mvc.ViewPage<blah>
I've tried with built in types to check if it's an error with my type.
Copyright © 2021 Jogjafile Inc.
I also ran into this problem. Consuming applications need to have the following configuration in their
web.config
I found you actually need these settings in a
web.config
within your PortableArea's project. Without these settings, your PortableArea won't be able to resolveSystem.Web.Mvc.ViewPage<>
and causes all sorts of crazy things to happen in the IDE. The first thing that tipped me off was that I had no intellisense for<%= Html
. Then, I ran my consuming project and got a yellow screen of death:alt text http://www.freeimagehosting.net/uploads/55542d2c51.png
Found the answer to this problem on Ben Hall's blog. Hope that helps.