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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...