tags:

views:

147

answers:

3

i have been working on an asp.net mvc site for a week and out of the blue i cant run the site. suddenly i get this error:

The view 'Index' or its master could not be found. The following locations were searched

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.

Exception Details: System.InvalidOperationException: The view 'Index' or its master could not be found. The following locations were searched:
~/Views/Home/Index.aspx
~/Views/Home/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx

has anyone seen this error before and have any questions?

EDIT: Just to be clear, this has been working fine for weeks and yes, there is a view in Home/Index.aspx

SOLVED: web.config had a typo.

+1  A: 

hmmm. You're trying to return a view from the HomeController I assume? The error message is quite clear. The Index view should be placed in one of those places (convention over configuration)

From where do you want to show the view, and where did you put the view?

Jo-wen
A: 

I figured out the issue. there was a typo in the web.config file and this was a misleading symptom

ooo
A: 

mentioning the details of the typo would be helpful

Jeremy