Security

C# SDK - System.Xml.XmlException for LogOnAsync

kriggs
New Member

I compiled the SDK and tried logging on but when I set the service object, I get a System.Xml.XmlException because the page starts with

<!

instead of

<!--

so line 1, pos 3 (where I would expect the two tacs to follow the exclamation point) causes Xml to throw an exception.

svc = new Service(new Uri("https://servername:8888/"));
await svc.LogOnAsync(username, password);

Short of editing the comment to include the tacs, anyone have another resolution?

Tags (1)
0 Karma

kriggs
New Member

I had to set the port to 8089 for the service to resolve this exception.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...