Skip to content

DTD is prohibited in this XML document #19

Description

@vascofernandes

Hi,

Thanks for the cool library.

Sometimes I get the following error message:

"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. "

With this stack trace:

System.Xml.XmlException:
   at System.Xml.XmlTextReaderImpl.Throw (System.Private.Xml, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51)
   at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl (System.Private.Xml, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent (System.Private.Xml, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51)
   at System.Xml.XmlReader.MoveToContent (System.Private.Xml, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51)
   at System.ServiceModel.Channels.StreamedMessage..ctor (System.Private.ServiceModel, Version=4.9.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   at System.ServiceModel.Channels.Message.CreateMessage (System.Private.ServiceModel, Version=4.9.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   at Data8.PowerPlatform.Dataverse.Client.ADAuthClient.Execute (Data8.PowerPlatform.Dataverse.Client, Version=2.1.1.0, Culture=neutral, PublicKeyToken=null)
   at Data8.PowerPlatform.Dataverse.Client.ADAuthClient.RetrieveMultiple (Data8.PowerPlatform.Dataverse.Client, Version=2.1.1.0, Culture=neutral, PublicKeyToken=null)
   at Data8.PowerPlatform.Dataverse.Client.OnPremiseClient.RetrieveMultiple (Data8.PowerPlatform.Dataverse.Client, Version=2.1.1.0, Culture=neutral, PublicKeyToken=null)
   at MyCrmApi.Extensions.OrganizationServiceExtensions.RetrieveMultipleComplete (Crmp.Kverneland.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

Could this https://stackoverflow.com/a/28459398 be relevant?

Regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions