“An error occurred accessing a data source.”
Generally it is due to database or webservice connection. If you are getting this error
Then
1. First make sure the user has sufficient permission to access the database/web service.
Tag: sharepoint
Sharepoint search in document library/list programmatically (using C#)
In sharepoint, it is generally required to limit search to a particular list or document library and display metadata properties. The example below shows an example FullTextSql query using the PATH managed property to limit your search to a particular list, and then the results are used to create the list item. You can bind results to gridview and can show metadata properties.You need to pass document library url and search text in the following method:
The search request was unable to connect to the Search Service: MOSS Error
Here are the steps to fix this problem:
Step 1:
Right click on My Computer and Goto Computer management…
Select Services and applications
Start indexing service If not started.