Yes, I am using razor script. There are few razor files which throw errors randomly.
I am working on maintenance project and it seems there are commented added like below, I am not sure this was the issue. Please advise
try{
@*get the URL XML value of the page image*@
imgLink = d.GetPropertyValue("mastHead").ToString();
@*Change value to XML string *@
xml = @Library.ToDynamicXml(imgLink);
@*turn xml from DAMP into string*@
storedValue = d.GetPropertyValue("mastHead").ToString();
@*extract image name and url from DAMP string*@
imageString = XDocument.Parse(storedValue).Descendants("umbracoFile").FirstOrDefault().Value.Replace(" ", "%20");
}
catch
{
}
Error loading Razor Script
Hello All,
I am using umbraco version v 4.9.0. I have used Macros in many pages. Sometime I am getting below error randomly :
"Error loading Razor Script "
When I refresh the page then it will not happen again. Also I didn't see any error log in [dbo].[umbracoLog] table.
Is someone have idea of razor script error? Or where I can see error log for this ?
Thanks in Advance
Hi Deepak,
Are you using Razor script ? Do you know which razor file cause this error?
Thanks, Alex
https://ua.linkedin.com/pub/alexander-skripnik/66/60b/352
Hi Alex,
Thanks for your reply.
Yes, I am using razor script. There are few razor files which throw errors randomly.
I am working on maintenance project and it seems there are commented added like below, I am not sure this was the issue. Please advise
is working on a reply...