Posted on: 7/30/2014 8:56:37 AM | Views : 444

Hello, i have file at virtual path '/templates/ajax/Forms/FormName.cshtml' with this content:
@inherits BaseClass<_Page_templates_ajax_Forms_FormName_cshtml.DataModel> // BaseClass is defived from System.Web.WebPages.WebPageBase @functions { public class DataModel { public string Field { get; set; } } }@Model.Field This file is rendered in ajax call like this: $.ajax("/ajax", { name: "FormName", model: { Field: "fieldValue" } }); - cshtml Model is filled with data from request
Rescently i renamed folder /templates/ajax/forms to /templates/ajax/Forms (forms to formsX and then to Forms) and after that im getting this error:
The type or namespace name '_Page_templates_ajax_Forms_FormName_cshtml' could not be found 
in file:  c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\141a6a74\63aa03e6\App_Web_formname ...

Go to the complete details ...