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?
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?
is working on a reply...