I tried creating an empty Macro Partial and It still spits out the same error when I place it anywhere on the grid or the RTE.
Here is the log from the Umbraco Trace.
2016-02-13 00:41:42,132 [P22864/D14/T56] WARN umbraco.macro - Error loading partial view macro (View: ~/Views/MacroPartials/pageheader.cshtml). Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Umbraco.Web.Mvc.UmbracoViewPage`1.SetViewData(ViewDataDictionary viewData)
at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer)
at Umbraco.Web.Mvc.ControllerExtensions.RenderViewResultAsString(ControllerBase controller, ViewResultBase viewResult)
at Umbraco.Web.Macros.PartialViewMacroEngine.Execute(MacroModel macro, IPublishedContent content)
at umbraco.macro.LoadPartialViewMacro(MacroModel macro)
at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)
2016-02-13 00:41:42,134 [P22864/D14/T56] WARN umbraco.macro - Error loading Partial View (file: ~/Views/MacroPartials/pageheader.cshtml). Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Umbraco.Web.Mvc.UmbracoViewPage`1.SetViewData(ViewDataDictionary viewData)
at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer)
at Umbraco.Web.Mvc.ControllerExtensions.RenderViewResultAsString(ControllerBase controller, ViewResultBase viewResult)
at Umbraco.Web.Macros.PartialViewMacroEngine.Execute(MacroModel macro, IPublishedContent content)
at umbraco.macro.LoadPartialViewMacro(MacroModel macro)
at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)
Can you verify, double, tripple check that you copied all new files over and that your web.config looks the same as the one you get in the UmbracoCms.7.4.0.zip file from https://our.umbraco.org/contribute/releases/740
Would you be able to send me the site + database? A Dropbox or WeTransfer link can be sent to [email protected] - that way I can debug this as I'm unable to reproduce this issue myself.
I just did a fresh install and installed Umbraco Via Nuget and created a document type with a grid layout and created a simple Macro and same issue on this version as well.
Not sure - it might be something with the nuget version.
Umbraco 7.4 - Error loading Partial View script (file: ~/Views/MacroPartials/pageheader.cshtml)
Hi guys,
First post here.
I've just upgraded to 7.4 from 7.3.7 and all my macro partials have partially stopped working.
They work in the front-end but in the backoffice I get the error
Error loading Partial View script (file: ~/Views/MacroPartials/pageheader.cshtml)
I tried creating an empty Macro Partial and It still spits out the same error when I place it anywhere on the grid or the RTE.
Here is the log from the Umbraco Trace.
Hope someone can help :)
Someone else reported the same error message here: http://issues.umbraco.org/issue/U4-7950
Can you verify, double, tripple check that you copied all new files over and that your web.config looks the same as the one you get in the
UmbracoCms.7.4.0.zip
file from https://our.umbraco.org/contribute/releases/740Hi,
I actually created a new MVC project and installed a fresh 7.4 via Nuget and then it just upgraded the database.
I copied over the Macro Partials and the necessary templates.
Everything else seems to be working just not the backoffice macro partials
Would you be able to send me the site + database? A Dropbox or WeTransfer link can be sent to [email protected] - that way I can debug this as I'm unable to reproduce this issue myself.
Hi Sebestian,
I just did a fresh install and installed Umbraco Via Nuget and created a document type with a grid layout and created a simple Macro and same issue on this version as well.
Not sure - it might be something with the nuget version.
I will send the demo app over.
Cheers
Sent over.
Only thing I didn't mention is that I'm using 4.6.1
Thanks Mohammed, will have a look at it on Monday!
This happens in a fresh 7.4.0 installation as well using the built-in Gallery macro snippet.
You'll get the error described in the OP, but it'll render properly without error when you view the website.
cheers,
doug.
Yep, this happens with any macro in the RTE currently.
An updated, a fixed dll is now available on that issue ( http://issues.umbraco.org/issue/U4-7950 ) which can be used until 7.4.1 is out.
thanks for fixing this, it helped me a lot ...
This resolved issues for me to with any Macro enabled in RTE
Thanks guys, that solve it. I thought I didn't do the upgrade properly. (Upgrade form 7.4.0-Beta to 7.4.0, using NuGet).
is working on a reply...