Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am looking for a "cheap" option to find out if a site exists, given a URL.

I have no control over the server environment, so I am not able to add web services or code to it.

Is there a way to find out whether a site exists on the specified URL without resorting to catching ClientRequestException?

share|improve this question
add comment

1 Answer 1

I know these are not client object model related, but wouldn't these be quicker?

  1. Try pinging it? (if you get a response, there a good chance it exists).
  2. Use a http tool such as fiddler
share|improve this answer
I am looking for answers involving code... I know I can use WebRequest and see if I get a 404, but really interested in a "proper" SharePoint way of doing this. –  Oded Jun 11 '12 at 13:46
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.