mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
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 <gabor.apati-nagy@citrix.com>
This commit is contained in:
parent
a22c00ff31
commit
23e474dbe2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user