Sign in to follow this  
athono

[.net] Please tell me what this silverlight warning message means.

Recommended Posts

athono    132
Please tell me what this silverlight warning message means.

Warning 1 For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse
and pass the settings into XmlReader.Create method.

What do I do to fix this issue?


Share this post


Link to post
Share on other sites
SimonForsman    7642
[quote name='athono' timestamp='1314004086' post='4852190']
Please tell me what this silverlight warning message means.

Warning 1 For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse
and pass the settings into XmlReader.Create method.

What do I do to fix this issue?



[/quote]

Exactly what it says:

1) create a XmlReaderSettings object if you havn't allready.
2) Set its DtdProcessing property to Parse
3) Pass the XmlReaderSettings object to the XmlReader.Create method when you create your xmlreader.

alternativly, don't use DTD processing.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this