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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...