-1
우리는 다양한 렌더링이있는 페이지가 있습니다. 이 페이지는 간헐적으로 잘로드됩니다. 언젠가는 아무 문제없이 일할 것이고 다른 날에는 완전히 멈추게 될 것입니다. 문제가 완전히 해결되지 않으면Sitecore 렌더링이 간헐적으로 발견되지 않습니다.
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);
}
어떤 아이디어 - 여기
모델 코드없이이 구성 요소를 실행하는 컨트롤러 코드입니까?
? 보기를 반환하는 작업 코드를 보여 주시겠습니까? –
예 컨트롤러 렌더링을 사용합니다. 나는 나중에 코드를 게시 할 것이다. – Gabbar
코드를 업데이트했습니다. – Gabbar