1 min read
The Archive

Error: For security reasons DTD is prohibited in this XML document

I was having trouble this evening running some of the Office Dev PnP samples from home.  I was consistently getting the following error when trying to connect to my Office 365 developer tenant.

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.

After assuming that I was entering in the username and password information incorrectly, I decided to try and see if there was some information out there on this error and I came across the following article (http://pryankrohilla.blogspot.co.uk/2014/05/error-resolved-connect-sposervice-for.html), which indicated this was an issue with my ISP (Virgin Media), after changing my DNS settings  to use Googles DNS Servers (8.8.8.8, 8.8.4.4) the sample code started working.

God knows why Virgin have decided to do this, but thanks for wasting my time this evening.

 

Want more cloud insights? Listen to Cloudy with a Chance of Insights podcast:

Spotify | YouTube | Apple Podcasts

Like this article?

Comments

Richard Hogan

Richard Hogan

Author & Host

Richard is a Microsoft-focused architect and consultant with deep expertise in Azure, Microsoft 365, cybersecurity, and enterprise cloud migration. He is the founder of The Microsoft Cloud Blog and co-host of the Cloudy with a Chance of Insights podcast. All views expressed are his own.

In-depth cloud tech discussions from Microsoft experts.

Expert insights on Microsoft Azure, cloud architecture, and enterprise technology.