Steven
Steven

Reputation: 18859

MVC can't find my Areas page

I created an Area in my application named Admin. It's pretty basic, looks like this:

When I try to view my Index page by going to /Admin/Companies, I get a "The resource cannot be found" message. I find it weird that I don't get any sort of error message.

I'm not sure what's going on here, has anyone come across this?

Upvotes: 0

Views: 622

Answers (1)

Jonas T
Jonas T

Reputation: 3077

If you newly created Index.aspx, you need to "REBUILD" the solution or your web project. Build only compile your last changes and rebuild build everything from the scratch. I faced that problem when I started writing Asp.net MVC project.

Does it solve your problem?

Upvotes: 3

Related Questions