Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

AppHarbour won't render views which are in a folder containing other views

jonathanconway's Avatar

jonathanconway

25 Apr, 2011 07:13 AM

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?

  1. Support Staff 1 Posted by friism on 25 Apr, 2011 04:39 PM

    friism's Avatar

    It might be because the Build Action for the view file is not set correctly (it should be Content). Please let us know whether this resolves your issue.

  2. 2 Posted by jonathanconway on 25 Apr, 2011 05:00 PM

    jonathanconway's Avatar

    @Michael Friis, thanks for your help, that's exactly what it was.

  3. friism closed this discussion on 25 Apr, 2011 05:06 PM.

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