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!

Stay Connected: Your Guide to February Tech Talks, Office Hours, and Webinars!

&#x1f48c;Keep the new year’s momentum going with our February lineup of Community Office Hours, Tech Talks, ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Incident Response: Reduce Incident Recurrence with Automated Ticket Creation

Culture extends beyond work experience and coffee roast preferences on software engineering teams. Team ...