Model object is null on some razor macros in 7.0.1
We're having an issue with 2 or 3 macros while accessing the model object. After upgrading to 7.0.0, this issue affected all of our macros that attempted to use the Model object. Now, at 7.0.1, most of our macros work but there are still a couple that don't. When attempting to access the model object on a broken macro, we get the following exception
An exception of type 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' occurred in App_Web_productpagerenderblockcontent.cshtml.70df5e80.kcpv0jez.dll but was not handled in user code
I've tried cleaning all razor macros in the /Temp/Razor but that didn't seem to do anything.
So it seems the problem only exists for non-inline razor macros. Any macro that has a CSHTML file in "Scripting Files" cannot access the model object properly. Any thoughts?
Model object is null on some razor macros in 7.0.1
We're having an issue with 2 or 3 macros while accessing the model object. After upgrading to 7.0.0, this issue affected all of our macros that attempted to use the Model object. Now, at 7.0.1, most of our macros work but there are still a couple that don't. When attempting to access the model object on a broken macro, we get the following exception
An exception of type 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' occurred in App_Web_productpagerenderblockcontent.cshtml.70df5e80.kcpv0jez.dll but was not handled in user code
I've tried cleaning all razor macros in the /Temp/Razor but that didn't seem to do anything.
The line in question is this:
DrawColumn is just a helper function defined at the top of the cshtml file as such
It seems to me that this problem is only affecting macros with helper functions but I havent been able to confirm that yet.
So it seems the problem only exists for non-inline razor macros. Any macro that has a CSHTML file in "Scripting Files" cannot access the model object properly. Any thoughts?
Hi, I've replied to you here: http://issues.umbraco.org/issue/U4-2967
If you can please create another issue and assign to me with details I'll have a look.
is working on a reply...