Asp.net mvc 间歇性找不到Sitecore呈现

Asp.net mvc 间歇性找不到Sitecore呈现,asp.net-mvc,sitecore,rendering,sitecore-mvc,Asp.net Mvc,Sitecore,Rendering,Sitecore Mvc,我们有一个页面上的各种渲染。此页面间歇性加载良好。总有一天它会毫无问题地工作,而总有一天它会完全停止工作。当它完全停止工作时,问题是 Exception: System.InvalidOperationException Message: The view 'renderingname.cshtml' or its master was not found or no view engine supports the searched locations. The following

我们有一个页面上的各种渲染。此页面间歇性加载良好。总有一天它会毫无问题地工作,而总有一天它会完全停止工作。当它完全停止工作时,问题是

 Exception: System.InvalidOperationException
    Message: The view 'renderingname.cshtml' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/News/renderingname.aspx
~/Views/News/renderingname.ascx
~/Views/Shared/renderingname.aspx
~/Views/Shared/renderingname.ascx
~/Views/News/renderingname.cshtml
~/Views/News/renderingname.vbhtml
~/Views/Shared/renderingname.cshtml
~/Views/Shared/renderingname.vbhtml
在OOTB路由之前已正确注册该路由。页面上的其他视图从未出现过此问题,它们与renderingname.cshtml位于同一目录中

以下是运行此组件的控制器代码,没有型号代码-

public ActionResult GetComponent()
{
    //code to populate the model

    return View("renderingname", model);
}

有关如何解决此问题的任何想法?

提供渲染的完整路径:

public ActionResult GetComponent()
{
    //code to populate the model
    return View("~/Views/Your_View_Folder/renderingname.cshtml",model);
}

您正在使用控制器渲染吗?您能给我看一下返回视图的操作代码吗?是的,使用控制器渲染。稍后我将发布代码。我更新了代码。看起来无法找到渲染。控制器的名称是什么?如果您没有为视图指定路径,它将根据控制器的名称或在共享视图中尝试查找路径。@Ian。。渲染位于已注册的路径下。所有其他渲染在使用同一控制器的同一渲染中工作正常。