DtdProcessing does not exists in the current context

Ask general questions here.
ReutersDev
Posts: 2
Joined: Mon Jan 07, 2013 4:33 pm

DtdProcessing does not exists in the current context

Post by ReutersDev » Wed Feb 20, 2013 4:56 pm

Hi, i'm trying to write a method that will upload step results to my QC test runs as well as uploading the report.

I keep getting the error 'Does not exists in the current context' when i am trying to assign DTdprocessing to parse DTDs. I have no idea why this is, but any advice would be extremely appreciated!!

the code that fails:

Code: Select all

XmlReaderSettings settings = new XmlReaderSettings();
settings.DtdProcessing = DtdProcessing.Parse;

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: DtdProcessing does not exists in the current context

Post by Support Team » Thu Feb 21, 2013 11:57 am

That C# compiler error means that you are either missing a "using" statement for the namespace in which that type is in or you are missing a assembly reference to the assembly containing the type.

See the documentation of the type in order to know what to add:
http://msdn.microsoft.com/en-us/library ... 00%29.aspx

Regards,
Alex
Ranorex Team
.
Image