Search code examples
asp.net-mvc-3c#-4.0asp.net-mvc-3-areas

MVC3 not finding a View in an Area


I have one area in my project (for admin).

I want to be able to use a view called Index.cshtml in the Admin area but my app always displays the Index.cshtml view for the main project (which isn't in a seperate area).

If I change the name of the view in the admin area to a name that doesn't exist anywhere else it works fine.

What am I missing? It must be something simple !

Answer (probably)

Bit of a mystery but it seems that maybe there was some sort of weird caching problem. I restarted the web server and now it works fine.

thanks to all who responded


Solution

  • Answered my own question to remove it from the unanswered list.

    Bit of a mystery but it seems that maybe there was some sort of weird caching problem. I restarted the web server and now it works fine.

    thanks to all who responded