How to check if web service is available without using credentials
How to check if web service is available without using credentials I have a WPF app written in c# and it is supposed to work in offline and online both. I have a class that checks for connectivity to web service using following skeleton code :- var url = "https://somesite.com/mywebservice.svc"; var myRequest = (HttpWebRequest)WebRequest.Create(url); var response = (HttpWebResponse)myRequest.GetResponse(); if (response.StatusCode == HttpStatusCode.OK) { Debug.Write(string.Format("{0} Available", url)); } else { // error } The issue is the web service requires authentication and hence an "unauthorized" exception is always thrown. Although the exception means the service is available but it is logged at network level and causes security alarm as the check is every 10 seconds. Is there a way to check the authenticated service availability without u...