AppHarbour won't render views which are in a folder containing other views
When my application renders a view which is the only view in its parent folder, everything works fine.
But when it tries to render a view whose parent contains other views, I get the following error:
The view 'Tech\Index' or its master was not found or no view
engine supports the searched locations. The following locations
were searched:
~/Views/Page/Tech\Index.aspx ~/Views/Page/Tech\Index.ascx
~/Views/Shared/Tech\Index.aspx ~/Views/Shared/Tech\Index.ascx
~/Views/Page/Tech\Index.cshtml ~/Views/Page/Tech\Index.vbhtml
~/Views/Shared/Tech\Index.cshtml
~/Views/Shared/Tech\Index.vbhtml
I'm unable to replicate this issue on my local instance of IIS.
Any ideas what might be causing this?
Discussions are closed to public comments.
If you need help with AppHarbor please
start a new discussion.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
Support Staff 1 Posted by friism on 25 Apr, 2011 04:39 PM
It might be because the
Build Actionfor the view file is not set correctly (it should beContent). Please let us know whether this resolves your issue.2 Posted by jonathanconway on 25 Apr, 2011 05:00 PM
@Michael Friis, thanks for your help, that's exactly what it was.
friism closed this discussion on 25 Apr, 2011 05:06 PM.