SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 3 different components: 1) a file server with different shares 2) SharePoint 2010 Server, Enterprise license 3) a custom .NET 3.5 web site

What I want to be able to do is have SharePoint index the necessary share on my file server (easy, set up a content source for it), and then from the web site, perform a query against the SharePoint search indexer, and return the results to the web site for processing and display.

Is it possible to do this, or does the query have to be done from within a SharePoint site?

share|improve this question
up vote 0 down vote accepted

It is possible, you can use SharePoint Search Web Service for the task. Only tricky part is the authentication but if you're using Windows authentication in your custom .NET site and on SharePoint you should be able to run these queries without explicitly having to pass any usernames/passwords to SharePoint.

Example here.

You can use e.g., this tool to test your search queries.

share|improve this answer
Perfect. Having some trouble with the indexer failing on TIFF files at the momment (Access denied errors), but once I get that sorted, I'll look to putting this in, and I'll mark you up. – Evan M. Feb 1 '12 at 21:47

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.