Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fredrik Esseen 594 posts 830 karma points
    Nov 30, 2012 @ 13:09
    Fredrik Esseen
    0

    Browse cshtml file

    Im downgrading a site that loads info from a partial view made in Umbraco 5 like this:

    $('#div').load('/folder/the_chtml_file.cshtml');

    We're trying to load a div with info dynamically from the partial view.

    It works in the Umbraco 5 solution but when I create a cshtml file in Umbraco 4.11 and try to browse it the resource cant be found. I would at least want it to return this error that I get in 5:

    Unable to cast object of type 'ASP._Page_Views_produkter_Index_cshtml' to type 'System.Web.IHttpHandler'.

    Ive noticed that runAllManagedModulesForAllRequests="true" already is in the web.config so that not the problem.

    Except that there is a separate web.config in the Views folder. Ive added the same there but no difference.

    Is it a configuration I have to do in IIS or is there another solution?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies