Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
when I click on Subscribe link on landing page. It opens /rss/ page showing following error.
XML Parsing Error: XML or text declaration not at start of entityLocation: http://mydomain.com/rss/Line Number 2, Column 5: <?xml version="1.0" encoding="UTF-8" ?><div style="border: 1px solid #990000">Error loading Razor Script /uBlogsy/uBlogsyRSS.cshtml</br/>String cannot be of zero length.----^
Replace the line with string blogUrl
string blogUrl = Request.Url.AbsoluteUri
blogUrl = blogUrl.Replace(qs, string.Empty).Replace("?", string.Empty);
Going a bit bonkers with this one myself.
I have tried:
The backend razor is different calling differnent libraries.
I am a bit stuck. I can't really use this version unless I can get RSS going.
Firefox shows the error and IE shows a blank page. Its doesn't seem to matter where the RSS object is within the Umbraco heirarchy.
Perhaps Mr Dang if you would like to look at this site online I can supply credentials. I am sure you would fix in a jiffy.
Thank anyway if you can't.
Email me the login details - my twit handle at g m@il d0t c0m
Getting new error with the code change:
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0">--^
<?xml version="1.0" encoding="UTF-8" ?>Error loading MacroEngine script (file: /uBlogsy/uBlogsyRSS.cshtml)--^
Test mail sent
Must be the wrong email address
No email yet.
Thanks again Anthony for fixing.
Not sure what the bug was yet!
What I did...
I also removed any trailing spaces in the rss masterpage by making the markup more compact. Hardly noticable to the human eye but RSS feeds tend to break due to a new line or space (or even an invisible character) which you don't even know is there.
It solved my problem too. replaced string blogUrl line and removed white spaces/line breaks from template.
removing the top line comment@* RSS layout.*@fixed the issue for me, which seems a bit ridiculous.... but if it helps anyone else, try it.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted