Click here to Skip to main content
15,919,245 members
Home / Discussions / C#
   

C#

 
AnswerRe: Crc32 Help Pin
Luc Pattyn17-Apr-07 0:23
sitebuilderLuc Pattyn17-Apr-07 0:23 
QuestionHow can I get the Mouse POsition on click? Pin
Khoramdin16-Apr-07 15:25
Khoramdin16-Apr-07 15:25 
AnswerRe: How can I get the Mouse POsition on click? Pin
kkun16-Apr-07 15:33
kkun16-Apr-07 15:33 
QuestionRe: How can I get the Mouse POsition on click? Pin
Khoramdin16-Apr-07 20:04
Khoramdin16-Apr-07 20:04 
AnswerRe: How can I get the Mouse POsition on click? Pin
kkun16-Apr-07 21:28
kkun16-Apr-07 21:28 
QuestionXML reader issues.... Pin
Super Lloyd16-Apr-07 14:32
Super Lloyd16-Apr-07 14:32 
AnswerRe: XML reader issues.... [modified] Pin
Patrick Klug16-Apr-07 15:08
Patrick Klug16-Apr-07 15:08 
QuestionXml - DTD processing Pin
Patrick Klug16-Apr-07 14:23
Patrick Klug16-Apr-07 14:23 
Hello!

I am trying to read an XML file that specifies an external DTD source, namely http://www.apple.com/DTDs/PropertyList-1.0.dtd

When I execute the reader.MoveToContent() in the code below
System.Xml.XmlReaderSettings settings = new System.Xml.XmlReaderSettings();
settings.ProhibitDtd = false;
	using (System.Xml.XmlReader reader = System.Xml.XmlReader.Create(uri, settings))
	{
		reader.MoveToContent();

customers sometimes get this exception:

Exception : System.Xml.XmlException
Message   : An error has occurred while opening external DTD 'http:// 
www.apple.com/DTDs/PropertyList-1.0.dtd': Unable to connect to the remote server
Source    : System.Xml
Help      :
OSVersion : Microsoft Windows NT 5.1.2600 Service Pack 2
Thread    :
Stack    :
    at System.Xml.XmlTextReaderImpl.Throw(Exception e)

...
Exception : System.Net.Sockets.SocketException
Message   : A socket operation was attempted to an unreachable host


Weird is that the customers have internet access because the XmlReader is created from an uri... but the DTD seem to be not available.

Can I somehow deactivate the DTD processing completely? Confused | :confused: Mad | :mad:

Any hints would be greatly appreciated.

TIA

Pakl
AnswerRe: Xml - DTD processing Pin
Russell Jones16-Apr-07 21:08
Russell Jones16-Apr-07 21:08 
AnswerRe: Xml - DTD processing Pin
Super Lloyd16-Apr-07 21:08
Super Lloyd16-Apr-07 21:08 
Questioncryptography and Steganography ... Pin
Software_Specialist16-Apr-07 13:10
Software_Specialist16-Apr-07 13:10 
JokeRe: cryptography and Steganography ... Pin
Luc Pattyn16-Apr-07 13:29
sitebuilderLuc Pattyn16-Apr-07 13:29 
GeneralRe: cryptography and Steganography ... Pin
Software_Specialist17-Apr-07 5:33
Software_Specialist17-Apr-07 5:33 
AnswerRe: cryptography and Steganography ... Pin
sujithkumarsl16-Apr-07 19:56
sujithkumarsl16-Apr-07 19:56 
QuestionComboBox values from lookups table Pin
sailchris2216-Apr-07 12:48
sailchris2216-Apr-07 12:48 
GeneralRe: ComboBox values from lookups table Pin
andre_swnpl16-Apr-07 19:26
andre_swnpl16-Apr-07 19:26 
QuestionA really stupid / simple re. generics and their base type Pin
malharone16-Apr-07 10:38
malharone16-Apr-07 10:38 
AnswerRe: A really stupid / simple re. generics and their base type Pin
Christian Graus16-Apr-07 16:12
protectorChristian Graus16-Apr-07 16:12 
GeneralRe: A really stupid / simple re. generics and their base type Pin
malharone26-Apr-07 20:27
malharone26-Apr-07 20:27 
GeneralRe: A really stupid / simple re. generics and their base type Pin
Christian Graus26-Apr-07 22:11
protectorChristian Graus26-Apr-07 22:11 
QuestionHow to Render a mcms posting page in snother page Pin
MyRunner16-Apr-07 10:22
MyRunner16-Apr-07 10:22 
QuestionCasting in C# Pin
BlitzPackage16-Apr-07 9:29
BlitzPackage16-Apr-07 9:29 
AnswerRe: Casting in C# Pin
MoustafaS16-Apr-07 9:41
MoustafaS16-Apr-07 9:41 
GeneralRe: Casting in C# Pin
Christian Graus16-Apr-07 16:14
protectorChristian Graus16-Apr-07 16:14 
GeneralRe: Casting in C# Pin
MoustafaS17-Apr-07 4:57
MoustafaS17-Apr-07 4:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.