I'm seeing lots of errors in the error logs for my sites - just wondering what is causing them, whether they're a real problem, and how to fix them.
The error message is:
System.Net.WebException: The remote server returned an error: (404) Not
Found.
at System.Net.HttpWebRequest.GetResponse()
at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri,
ICredentials credentials, IWebProxy proxy, RequestCachePolicy
cachePolicy)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role,
Type ofObjectToReturn)
at System.Xml.XmlReaderSettings.CreateReader(String inputUri,
XmlParserContext inputContext)
at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings
settings, XmlParserContext inputContext)
at System.Xml.XmlReader.Create(String inputUri)
at uBlogsy.Common.Helpers.RssReader.Execute()
There was indeed a problem with the feed from the blog roll - actually another uBlogsy feed where the folder names aren't correctly removed from the url. So I've adjusted uBlogsyRSS.cshtml to strip out the surplus folder names. The RSS is now correct and, after a little while, has fed through correctly to the page causing the error, and the links work correctly now for the blog posts.
However, the error is still arising in the error log (every 10 minutes) - it's happened twice since the feed was corrected. Is this likely to be a cache issue?
Error logs
Hi
I'm seeing lots of errors in the error logs for my sites - just wondering what is causing them, whether they're a real problem, and how to fix them.
The error message is:
System.Net.WebException: The remote server returned an error: (404) Not Found. at System.Net.HttpWebRequest.GetResponse() at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext) at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext) at System.Xml.XmlReader.Create(String inputUri) at uBlogsy.Common.Helpers.RssReader.Execute()
Thanks
Allan
uBlogsy.Common.Helpers.RssReader is to do with the blog roll
Check that all the blogs you're pulling in are ok.
Thanks Anthony
There was indeed a problem with the feed from the blog roll - actually another uBlogsy feed where the folder names aren't correctly removed from the url. So I've adjusted uBlogsyRSS.cshtml to strip out the surplus folder names. The RSS is now correct and, after a little while, has fed through correctly to the page causing the error, and the links work correctly now for the blog posts.
However, the error is still arising in the error log (every 10 minutes) - it's happened twice since the feed was corrected. Is this likely to be a cache issue?
Thanks
Allan
Possibly.
Try refreshing your cache, including on the server (or servers if distributed) which had the bad url,
Possibly even try bumping the config.
is working on a reply...