Getting an application error whilst doing the setup section
Hi,
Have been getting a few issues whilst following the guides. Just followed the section on setting up Open Graph by creating the new partial view with the following code.
@inherits Umbraco.Web.Mvc.UmbracoViewPage
This looks like it should work but am now getting the following error. Any suggestions?
Log Data Detail
2018-08-12T12:31:13.851
Next
Date Sun, 12 Aug 2018, 12:31:13
Level ERROR
Logger Umbraco.Core.UmbracoApplicationBase
Process 22688
Thread 32
App Domain 15
Message
An unhandled exception occurred
System.InvalidOperationException: The partial view 'openGraph' was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/RenderMvc/openGraph.aspx
~/Views/RenderMvc/openGraph.ascx
~/Views/Shared/openGraph.aspx
~/Views/Shared/openGraph.ascx
~/Views/RenderMvc/openGraph.cshtml
~/Views/RenderMvc/openGraph.vbhtml
~/Views/Shared/openGraph.cshtml
~/Views/Shared/openGraph.vbhtml
~/Views/Partials/openGraph.cshtml
~/Views/MacroPartials/openGraph.cshtml
~/Views/openGraph.cshtml
at System.Web.Mvc.HtmlHelper.FindPartialView(ViewContext viewContext, String partialViewName, ViewEngineCollection viewEngineCollection)
at System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection)
at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData)
at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName)
at ASP.PageViewsMastercshtml.Execute() in c:\inetpub\temp\DWASFiles\sites\efa10cb2-f07a-44ab-9381-2b62b8591ce0\VirtualDirectory0\site\wwwroot\Views\Master.cshtml:line 25
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at System.Web.WebPages.WebPageBase.<>cDisplayClass3.2(TextWriter writer)
at System.Web.WebPages.HelperResult.WriteTo(TextWriter writer)
at System.Web.WebPages.WebPageBase.Write(HelperResult result)
at System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action1 body)
at System.Web.WebPages.WebPageBase.PopContext()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer)
at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>cDisplayClass21.<>cDisplayClass2b.
The guide is as shown below. On the free trial there is a list of help guides for certain content creation that appears in the left hand nav of the back office
The partial view 'openGraph' was not found or no view engine supports the searched locations`
Looks like the partial hasn't been created, did you create the partial view as highlighted in step 2. (assuming this should be called Open Graph)? I'd maybe just check that the file exists and if not, try creating it again.
But I'm not sure it even says anything about saving the file and naming it "opengraph" - Am I reading it all wrong? Or will one need to have read the previous 3 steps to make sense of it? Asking because I would like to help out fixing / making the documentation on this much clearer so others won't have the same issues as you have been facing.
Getting an application error whilst doing the setup section
Hi,
Have been getting a few issues whilst following the guides. Just followed the section on setting up Open Graph by creating the new partial view with the following code.
@inherits Umbraco.Web.Mvc.UmbracoViewPage
This looks like it should work but am now getting the following error. Any suggestions?
Hi Nic,
Can you post the error from your log file - found at
~/App_Data/Logs
?Also, what guide are you following and at what point are you at?
Thanks,
Ben
Hi Ben,
Is this what you were after?
Log Data Detail 2018-08-12T12:31:13.851 Next Date Sun, 12 Aug 2018, 12:31:13 Level ERROR Logger Umbraco.Core.UmbracoApplicationBase Process 22688 Thread 32 App Domain 15 Message An unhandled exception occurred System.InvalidOperationException: The partial view 'openGraph' was not found or no view engine supports the searched locations. The following locations were searched: ~/Views/RenderMvc/openGraph.aspx ~/Views/RenderMvc/openGraph.ascx ~/Views/Shared/openGraph.aspx ~/Views/Shared/openGraph.ascx ~/Views/RenderMvc/openGraph.cshtml ~/Views/RenderMvc/openGraph.vbhtml ~/Views/Shared/openGraph.cshtml ~/Views/Shared/openGraph.vbhtml ~/Views/Partials/openGraph.cshtml ~/Views/MacroPartials/openGraph.cshtml ~/Views/openGraph.cshtml at System.Web.Mvc.HtmlHelper.FindPartialView(ViewContext viewContext, String partialViewName, ViewEngineCollection viewEngineCollection) at System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName) at ASP.PageViewsMastercshtml.Execute() in c:\inetpub\temp\DWASFiles\sites\efa10cb2-f07a-44ab-9381-2b62b8591ce0\VirtualDirectory0\site\wwwroot\Views\Master.cshtml:line 25 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at System.Web.WebPages.WebPageBase.<>cDisplayClass3.2(TextWriter writer) at System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) at System.Web.WebPages.WebPageBase.Write(HelperResult result) at System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action
1 body) at System.Web.WebPages.WebPageBase.PopContext() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList
1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList
1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList
1 filters, ActionResult actionResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>cDisplayClass21.<>cDisplayClass2b.The guide is as shown below. On the free trial there is a list of help guides for certain content creation that appears in the left hand nav of the back office
Thanks Nic, very helpful :)
I'd say this looks to be the culprit:
Looks like the partial hasn't been created, did you create the partial view as highlighted in step
2.
(assuming this should be calledOpen Graph
)? I'd maybe just check that the file exists and if not, try creating it again.Aaah found it..... in the instructions is says to name it 'open graph'...changed it to 'opengraph' and now the error has gone.
Many thanks Ben
Hi Nic
Aaah I never considered that you were following the build in tours! Now the other post where we found another error makes a lot of sense to me too :)
Regarding this specific issue the documentation for this is also found here and I believe that it's the same file that's being used in the tours - https://our.umbraco.com/documentation/Tutorials/Starter-kit/Lessons/3-Add-Open-Graph/step-4
But I'm not sure it even says anything about saving the file and naming it "opengraph" - Am I reading it all wrong? Or will one need to have read the previous 3 steps to make sense of it? Asking because I would like to help out fixing / making the documentation on this much clearer so others won't have the same issues as you have been facing.
Cheers, Jan
is working on a reply...