08 Oct 2019
I recently had this issue where i was getting an error message complaining that it couldn't find the assets file
MyProject.Core\obj\project.assets.json
I searched for a solution and people were saying I needed to use dotnet resore but that didn't solve anything
There was something causing the issues. It was the space in the git repository name which was coming through as %20 when it was cloned into windows.
This was causing confusion because in some cases it was recognised as a space and some it was just recognised as the characters %20.
So the fix was to rename the repository to take the %20 out of the name.
You might get away with just renaming the folder on your machine to take the %20 out of the name.
System.NullReferenceException: Object reference not set to an instance of an object. at ASP._Page_Views_Partials_Grid_Editors_DocTypeGridEditor_cardsRowGridEditor_cshtml.Execute() in E:\HostingSpaces\CodeSharePaul\codeshare.co.uk_ffXSTxNs\wwwroot\Views\Partials\Grid\Editors\DocTypeGridEditor\cardsRowGridEditor.cshtml:line 35 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.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) at Umbraco.Web.Mvc.ProfilingView.Render(ViewContext viewContext, TextWriter writer) in D:\a\1\s\src\Umbraco.Web\Mvc\ProfilingView.cs:line 25 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 Our.Umbraco.DocTypeGridEditor.Web.Extensions.HtmlHelperExtensions.RenderDocTypeGridEditorItem(HtmlHelper helper, IPublishedElement content, String editorAlias, String viewPath, String previewViewPath, Boolean isPreview) at ASP._Page_app_plugins_doctypegrideditor_render_DocTypeGridEditor_cshtml.Execute() in E:\HostingSpaces\CodeSharePaul\codeshare.co.uk_ffXSTxNs\wwwroot\app_plugins\doctypegrideditor\render\DocTypeGridEditor.cshtml:line 28 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.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) at Umbraco.Web.Mvc.ProfilingView.Render(ViewContext viewContext, TextWriter writer) in D:\a\1\s\src\Umbraco.Web\Mvc\ProfilingView.cs:line 25 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, Object model) at ASP._Page_Views_Partials_grid_editors_Base_cshtml.Execute() in E:\HostingSpaces\CodeSharePaul\codeshare.co.uk_ffXSTxNs\wwwroot\Views\Partials\grid\editors\Base.cshtml:line 20