I have just upgraded to Umbraco 6, and a couple of pages are throwing errors which have inline Razor.
The following line now gives an error ..
var d1 = new List<string>();
it is not a specific error, but it seems to be interpreting the <string> as markup rahter than the generic argument that went before, and so now it gives an error complaining there is no { to end the code segment, but I tracked it down to this line which is generating it.
If you could just more of your script (or the entire script) we may have a better idea of what's going on ... The razor script probably cannot be parsed because it cannot determine where the HTML begins and the script ends.
Umbraco 6 problem
I have just upgraded to Umbraco 6, and a couple of pages are throwing errors which have inline Razor.
The following line now gives an error ..
var d1 = new List<string>();
it is not a specific error, but it seems to be interpreting the <string> as markup rahter than the generic argument that went before, and so now it gives an error complaining there is no { to end the code segment, but I tracked it down to this line which is generating it.
I would be grateful if anyone has any ideas.
Thanks
Tom
If you could just more of your script (or the entire script) we may have a better idea of what's going on ... The razor script probably cannot be parsed because it cannot determine where the HTML begins and the script ends.
Thank you for your reply... in simplifying the code to fulfil your request, I haev solved my problem.
In the code above the line in question i had things like
var image = Model.NodeById(@item.InnerText);
and removing the @ from the item seems to have fixed it , though as I said this all worked fine in 4.11.1 , but there we go.
Tom
is working on a reply...