Daily Technology News, Tips, and Reviews | Subscribe to Jason Slater Technology BlogTechnology Feed | Join Jason Slater on TwitterTwitter | Thursday 2nd September 2010

MOSS: Fixing trouble with the Search webpart

By Jason Slater
  • DiggThis
  • Share

I’ve talked about the search feature of MOSS before and one of the recent things we’ve been looking at is to include a search box on the main page so users can search the shared folders on the system. There is a handy way of categorising various area so users can search shared drives, MOSS, people, and their own drives separately or perform a combined search. In our scenario, getting the search component to work and provide a useful searching facility in our thin client environment is key to establishing MOSS as a viable platform. I previously talked about configuring the search part in the post MOSS: Configuring Search.

MOSS: Fixing trouble with the Search webpart

The search on the search tab worked flawlessly but would be more useful as a central part of the main page so the next step is to include a web part on the main page that the user sees:

MOSS: Fixing trouble with the Search webpart

Once implemented the page is saved and ready to go, so a keyword is entered into the search box and the search button clicked. This is where we run into a little trouble.

MOSS: Fixing trouble with the Search webpart

Including a search web page on the first page of MOSS returns a "Error on Page." message in Internet Explorer after typing a keyword and clicking on the search button. Nothing happens after that however clicking on the search tab and performing the same action yields the expected results.

 MOSS: Fixing trouble with the Search webpart

Double-clicking on the error message returns a stark warning.

MOSS: Fixing trouble with the Search webpart

The problem was finally tracked down to the text in the Query box prompt string – the phrase Search the ‘S’ Drive contained the apostrophe symbol:

MOSS: Fixing trouble with the Search webpart

Removing this symbol resolved the problem. Avoiding the use of the apostrophe symbol in other areas may be a sensible thing to do.

MOSS: Fixing trouble with the Search webpart

Related

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.