Solved

Broken Sharepoint 2010 Foundation Search "Object reference not set to an instance of an object"

Posted on 2013-01-15
3
812 Views
Last Modified: 2013-01-20
We renamed our Sharepoint server which I followed the Technet articles on with no real issues.  However, I discovered that the search was not returning any results and in the event logs it was still referencing the old Sharepoint name.

So I followed the instructions at http://plexhosted.blogspot.ca/2011/11/how-to-fix-sharepoint-foundation-2010.html but nothing changed, search results were still completely empty.

I decided to stop the SharePoint Foundation search from within the SharePoint Central Administration which is supposed to delete the search database and recreate it which it prompted me it was going to do and I hit ok.

Now I am trying to restart the Search service within Central Administration and it throws up the "Object reference not set to an instance of an object" error, I get the same error when I click on the actual service name link itself too.  When I try and do a search in SharePoint now it comes back with, "Your search cannot be completed because this site is not assigned to an indexer".  When I go to the content database, the search server is blank but it is grey'ed out and I can't choose a server.  The Foundation Search timer job is also gone now.

I can stop and restart the service fine in the Windows services console no problem however it only works now with the Local System account and not the spSearch account I created earlier.

There's no errors in the event logs except for the service stopping and restarting so I have very little to reference.  I'd really appreciate any help as I've trawled through numerous websites to no avail.
0
Comment
Question by:convergint
  • 2
3 Comments
 
LVL 9

Assisted Solution

by:Mohit Nair
Mohit Nair earned 500 total points
ID: 38780814
Dont try stopping or starting the search service from windows services console as it should automatically start once you start the service from central admin. Keep the service in stopped state and then try unprovisioning and then reprovisioning search service through stsadm command.

Try psconfig wizard if it doesnt helps.
0
 
LVL 10

Accepted Solution

by:
convergint earned 0 total points
ID: 38781421
Figured it out, had to run the stsadm command to restart and rebuild the search database.  Syntax is:

stsadm -o spsearch -action start -farmserviceaccount [domain_account] -farmservicepassword [domain_account_password]
0
 
LVL 10

Author Closing Comment

by:convergint
ID: 38798129
Did more research online and found a blog explaining the procedure.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dynamic content on SharePoint 2013 13 91
SharePoint 2013 Blog Template 2 47
JavaScript waiting 14 80
SharePoint Foundation 2013 Search 11 49
A question that is asked often, is how to generate sequential numbers in InfoPath Forms. The best way to achieve this is to use a SQL database, along with a stored procedure and a web service to connect Forms Services to the DB. The first thing t…
The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question