Change the Views location
        Posted  
        
            by Vinni
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Vinni
        
        
        
        Published on 2010-04-29T06:40:30Z
        Indexed on 
            2010/04/29
            6:47 UTC
        
        
        Read the original article
        Hit count: 579
        
I am developing a website in MVC 2.0. I want to change the View folder location in my website. I wanted to keep the views folder inside other folders, When I try to do so i am getting following errors
The view 'Index' or its master was not found. The following locations were searched:
~/Views/Search/Index.aspx
~/Views/Search/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
My Views folder will be in ~/XYZ/ABC/Views instead of ~/Views. Please solve my problem. Will I get any problems If I change the default Views folder location. Do I need to change anything in HTML Helper classes because I don't know anything in MVC as this is my starting project i dont want to risk..Please help me out...
© Stack Overflow or respective owner