I\'m getting this error when trying to parse through an XML document in a C# application:
\"For security reasons DTD is prohibited in this XML documen
After trying all of the above answers without success I changing the service user from service@mydomain.com to service@mydomain.onmicrosoft.com and now the app works correctly while running in azure.
Alternatively if you run into this problem in an environment you have more control over; you can paste the following into your hosts file:
127.0.0.1 msoid.onmicrosoft.com
127.0.0.1 msoid.mydomain.com
127.0.0.1 msoid.mydomain.onmicrosoft.com
127.0.0.1 msoid.*.onmicrosoft.com