From 23e474dbe2d1e70d0db07c34add6f14bf2fe4130 Mon Sep 17 00:00:00 2001 From: Gabor Apati-Nagy Date: Fri, 6 Dec 2013 17:33:44 +0000 Subject: [PATCH] CAR-100: Upgrade to .NET 4.0 instead of 3.5 -- Upgrading to .Net 4.0: ProhibitDtd=false is obsolete in .Net 4.0, replaced Signed-off-by: Gabor Apati-Nagy --- XenOvfApi/Utilities/Utilities.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XenOvfApi/Utilities/Utilities.cs b/XenOvfApi/Utilities/Utilities.cs index 34fb28b55..888716911 100644 --- a/XenOvfApi/Utilities/Utilities.cs +++ b/XenOvfApi/Utilities/Utilities.cs @@ -397,7 +397,7 @@ namespace XenOvf.Utilities xmlStream = new FileStream(ovfname, FileMode.Open, FileAccess.Read, FileShare.Read); XmlReaderSettings settings = new XmlReaderSettings(); - settings.ProhibitDtd = false; + settings.DtdProcessing = DtdProcessing.Parse; //Upgrading to .Net 4.0: ProhibitDtd=false is obsolete, this line is the replacement according to: http://msdn.microsoft.com/en-us/library/system.xml.xmlreadersettings.prohibitdtd%28v=vs.100%29.aspx XmlSchema schema = new XmlSchema(); bool useOnlineSchema = Convert.ToBoolean(Properties.Settings.Default.useOnlineSchema); if (useOnlineSchema)