From 3e56fe947ad98242b044e360382d29338bf9fdce Mon Sep 17 00:00:00 2001 From: psterling Date: Mon, 21 Feb 2011 05:38:03 +0800 Subject: [PATCH] Add catch for no internet connection on final Installer screen --- umbraco/presentation/install/utills/p.aspx.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/umbraco/presentation/install/utills/p.aspx.cs b/umbraco/presentation/install/utills/p.aspx.cs index 2962d701dc..db53b051fc 100644 --- a/umbraco/presentation/install/utills/p.aspx.cs +++ b/umbraco/presentation/install/utills/p.aspx.cs @@ -39,7 +39,16 @@ namespace umbraco.presentation.install.utills if (feed == "developervids") url = "http://umbraco.org/feeds/videos/developer-foundation-html"; - Response.Write(library.GetXmlDocumentByUrl(url).Current.OuterXml); + string XmlResponse = library.GetXmlDocumentByUrl(url).Current.OuterXml; + + if(!XmlResponse.Contains("System.Net.WebException")) + { + Response.Write(library.GetXmlDocumentByUrl(url).Current.OuterXml); + } + else + { + Response.Write("We can't connect to umbraco.org right now. Click 'Set up your new website' above to continue."); + } } }