PnP/Samples/Core.SitePermissions fails to authenticate

%3CLINGO-SUB%20id%3D%22lingo-sub-16627%22%20slang%3D%22en-US%22%3EPnP%2FSamples%2FCore.SitePermissions%20fails%20to%20authenticate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-16627%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FOfficeDev%2FPnP%2Ftree%2Fmaster%2FSamples%2FCore.SitePermissions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FOfficeDev%2FPnP%2Ftree%2Fmaster%2FSamples%2FCore.SitePermissions%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EO365%2FSharePoint%20Online%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20Program.cs%2C%20at%20List%3CUSERENTITY%3E%20admins%20%3D%20cc.Web.GetAdministrators()%3B%3CBR%20%2F%3EI%20get%3A%3C%2FUSERENTITY%3E%3C%2FP%3E%3CP%3E%22An%20unhandled%20exception%20of%20type%20'System.Xml.XmlException'%20occurred%20in%20System.Xml.dll%3C%2FP%3E%3CP%3EAdditional%20information%3A%20For%20security%20reasons%20DTD%20is%20prohibited%20in%20this%20XML%20document.%20To%20enable%20DTD%20processing%20set%20the%20DtdProcessing%20property%20on%20XmlReaderSettings%20to%20Parse%20and%20pass%20the%20settings%20into%20XmlReader.Create%20method.%22%3C%2FP%3E%3CP%3EI%20think%20it%20is%20failing%20to%20authenticate.%20I%20think%20it%20isn't%20even%20sending%20an%20authentication%20header%20(according%20to%20what%20I%20see%20in%20Fiddler).%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

https://github.com/OfficeDev/PnP/tree/master/Samples/Core.SitePermissions

 

O365/SharePoint Online

 

In Program.cs, at List<UserEntity> admins = cc.Web.GetAdministrators();
I get:

"An unhandled exception of type 'System.Xml.XmlException' occurred in System.Xml.dll

Additional information: 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."

I think it is failing to authenticate. I think it isn't even sending an authentication header (according to what I see in Fiddler).

0 Replies