DTD prohibited in xml document exception

前端 未结 4 536
星月不相逢
星月不相逢 2020-11-29 06:00

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

4条回答
  •  一个人的身影
    2020-11-29 06:10

    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
    

提交回复
热议问题