Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nic Cordingley 9 posts 80 karma points
    Aug 12, 2018 @ 12:38
    Nic Cordingley
    0

    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?

    enter image description here

  • Ben Palmer 176 posts 842 karma points c-trib
    Aug 12, 2018 @ 13:03
    Ben Palmer
    0

    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

  • Nic Cordingley 9 posts 80 karma points
    Aug 12, 2018 @ 13:25
    Nic Cordingley
    0

    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, 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.

  • Nic Cordingley 9 posts 80 karma points
    Aug 12, 2018 @ 13:28
    Nic Cordingley
    1

    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

    enter image description here

  • Ben Palmer 176 posts 842 karma points c-trib
    Aug 12, 2018 @ 13:45
    Ben Palmer
    1

    Thanks Nic, very helpful :)

    I'd say this looks to be the culprit:

    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.

  • Nic Cordingley 9 posts 80 karma points
    Aug 12, 2018 @ 15:48
    Nic Cordingley
    0

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Aug 13, 2018 @ 05:24
    Jan Skovgaard
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft