简体   繁体   中英

Getting “The 'WhatEver' view or its master could not be found” with Spark View Engine when going to the login page

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:"

Any thoughts on why?

Thanks Bruno

(Copied answer from Spark discussion group )

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM