Getting “The ‘WhatEver’ view or its master could not be found” when going to a login page

12 views
Skip to first unread message

Brunofig

unread,
Jul 2, 2009, 6:51:47 AM7/2/09
to Spark View Engine Dev
Uff...long title.

As it states, when the asp.net mvc redirects to the login page, it
adds the ?RequestUrl=/pathToSome/Action to the url. When this happens
I get that YSOD :"The view '/PathToSome/Action' or its master could
not be found. The following locations were searched:"

This doesn't make any sense since the requesturl is a parameter...

Any thoughts on why?

Thanks Bruno

Louis DeJardin

unread,
Jul 2, 2009, 10:50:48 AM7/2/09
to Spark View Engine Dev
Should be fine - if you start with a stock "new ASP.NET MVC project"
and convert the views to spark it has the same type of url in the
login page and works fine.

In the login action when you return View(x); could the request url be
passed in accidentally as x?

Brunofig

unread,
Jul 2, 2009, 1:23:02 PM7/2/09
to Spark View Engine Dev
Bingo...For some reason I was passing the requestUrl to the view :(
stupid me.

Thanks :D
Message has been deleted

Louis DeJardin

unread,
Jul 2, 2009, 1:52:43 PM7/2/09
to spar...@googlegroups.com
They don't call me the organic F1 key for nothing. :)

On Thu, Jul 2, 2009 at 6:01 AM, Brunofig <bruno.r.f...@gmail.com> wrote:

Uff...long title.

As it states, when the asp.net redirects to the login page, it adds

the ?RequestUrl=/pathToSome/Action to the url. When this happens I get
that YSOD :"The view '/PathToSome/Action' or its master could not be
found. The following locations were searched:"

Reply all
Reply to author
Forward
0 new messages