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 November, the Splunk Threat Research Team had one release of new security content via the Enterprise ...

Index This | Divide 100 by half. What do you get?

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

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

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...