MvcContrib.Samples.PortableArea error on logon

11 views
Skip to first unread message

rj

unread,
Dec 9, 2009, 1:52:43 PM12/9/09
to mvccontrib-discuss
Hi

I've tried running the Portable Area sample but an error (listed
below) is raised when clicking the "Log On" link. After a bit of
searching my best guess is that the use of a generic type is tripping
up the parser. Using a code behind file looks to resolve the issue. Is
this a known issue with the beta or have I not setup my development
environment correctly?

Thanks

-------------
Parser Error Message: Could not load type
'System.Web.Mvc.ViewPage<LoginInput>'.

Source Error:

Line 1: <%@ Page Title="" Language="C#" MasterPageFile="~/Views/
Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<LoginInput>" %>
Line 2: <%@ Import Namespace="LoginPortableArea.Login.Models"%>
Line 3: <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%>

Eric Hexter

unread,
Dec 9, 2009, 3:06:35 PM12/9/09
to mvccontri...@googlegroups.com
This is a bit of a pain point.  You need to create a Areas folder in your application and copy the web.config from your views folder into the areas folder.  I have an idea of how to overcome this in the future but this is required in order to make this work.
 
Thanks,
Eric

Eric Hexter

Principal Consultant | Headspring Systems | www.HeadspringSystems.com
email | ehe...@HeadspringSystems.com
blog | http://Hex.LosTechies.com
info | http://www.linkedin.com/in/erichexter





--
Contact Jeffrey Palermo or Eric Hexter with specific questions about the MvcContrib project.  Or go to http://mvccontrib.org

To unsubscribe from this group, send email to mvccontrib-disc...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mvccontrib-discuss?hl=en

Eric Hexter

unread,
Dec 10, 2009, 1:04:15 PM12/10/09
to mvccontrib-discuss, rj
Actuall, that is exactly what I am thinking of doing.  I already have the VPP that is searching for the portable area views and the input builder views.  I just need to add some startup configuration to tell the VPP where to look for the web.config if one is needed.  I am thinking of doing this for both the Areas/web.config and the Views/web.config. That way if you are using the MvcContrib viewengine there are less files that you need to maintain in your application.


 
On Thu, Dec 10, 2009 at 11:50 AM, Rivaaj Jumna <riv...@gmail.com> wrote:
Is it possible for a VirtualPathProvider to supply a web.config? I tried unsuccessfully to alter the parser filter programatically but it would be great to provide a web.config as a virtual file.


On Fri, Dec 11, 2009 at 12:59 AM, Eric Hexter <eric....@gmail.com> wrote:
I am thinking of adding the embedded file into mvccontrib and letting the virtual path provider supply the web.config, when one does not exist.  



Eric Hexter

Principal Consultant | Headspring Systems | www.HeadspringSystems.com
email | ehe...@HeadspringSystems.com
blog | http://Hex.LosTechies.com
info | http://www.linkedin.com/in/erichexter




On Thu, Dec 10, 2009 at 10:41 AM, rj <riv...@gmail.com> wrote:
Hi Eric

It works a treat! Do you perhaps have any notes on overcoming this
limitation?

Thanks
Rivaaj


On Dec 10, 4:06 am, Eric Hexter <eric.hex...@gmail.com> wrote:
> This is a bit of a pain point.  You need to create a Areas folder in your
> application and copy the web.config from your views folder into the areas
> folder.  I have an idea of how to overcome this in the future but this is
> required in order to make this work.
>
> Thanks,
> Eric
>
> Eric Hexter
>
> Principal Consultant | Headspring Systems |www.HeadspringSystems.com
> email | ehex...@HeadspringSystems.com
> On Wed, Dec 9, 2009 at 12:52 PM, rj <riv...@gmail.com> wrote:
> > Hi
>
> > I've tried running the Portable Area sample but an error (listed
> > below) is raised when clicking the "Log On" link. After a bit of
> > searching my best guess is that the use of a generic type is tripping
> > up the parser. Using a code behind file looks to resolve the issue. Is
> > this a known issue with the beta or have I not setup my development
> > environment correctly?
>
> > Thanks
>
> > -------------
> > Parser Error Message: Could not load type
> > 'System.Web.Mvc.ViewPage<LoginInput>'.
>
> > Source Error:
>
> > Line 1:  <%@ Page Title=""  Language="C#" MasterPageFile="~/Views/
> > Shared/Site.Master"  Inherits="System.Web.Mvc.ViewPage<LoginInput>" %>
> > Line 2:  <%@ Import Namespace="LoginPortableArea.Login.Models"%>
> > Line 3:  <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%>
>
> > --
> > Contact Jeffrey Palermo or Eric Hexter with specific questions about the
> > MvcContrib project.  Or go tohttp://mvccontrib.org
Reply all
Reply to author
Forward
0 new messages