I'm trying to write a C# program to use the PerfMon API. I am having trouble with the web service authentication. I've used the test tool SoapUI to test out the Perfmon API using my login credentials with no problems. But when I try a simple C# program I always get an exception with the message: Could not establish trust relationship for the SSL/TLS secure channel with authority '<myhost>:8443'.
I'm using the commonly recommended code to set the user name and password:
client.ClientCredentials.UserName.UserName = userName;
client.ClientCredentials.UserName.Password = password;
As anyone else run into this problem?