Thursday, January 27, 2011

Enabling Search Server in 2010


Starting Search Service on SP2010
Application Management
Manage Service applications
New Search Service application from ribbon
Connect from Ribbon

Error Screen after I have done above steps and started respective services from manage services list:
And the log files exception section is as:

01/27/2011 14:04:35.10 w3wp.exe (0x0EBC)                       0x1144 SharePoint Server Search       Query                         fm9a Unexpected CoreResultsWebPart::OnInit: Exception initializing: Microsoft.Office.Server.Search.Query.SearchServiceNotFoundException: The search request was unable to connect to the Search Service.     at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.GetProxy(SPServiceContext ServiceContext)     at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.SetPropertiesOnQueryReader()     at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e) 58adda03-425a-4074-be6f-a13f3bf3a3bd
01/27/2011 14:04:35.10 w3wp.exe (0x0EBC)                       0x1144 SharePoint Server Search       Query                         dn4s High     FetchDataFromURL start at(outside if): 1 param: start 58adda03-425a-4074-be6f-a13f3bf3a3bd
01/27/2011 14:04:35.10 w3wp.exe (0x0EBC)                       0x1144 SharePoint Server Search       Query                         fm9a Unexpected CoreResultsWebPart::OnInit: Exception initializing: Microsoft.Office.Server.Search.Query.SearchServiceNotFoundException: The search request was unable to connect to the Search Service.     at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.GetProxy(SPServiceContext ServiceContext)     at Microsoft.Office.Server.Search.WebControls.SearchResultsBaseWebPart.GetSearchServiceApplicationInfo()     at Microsoft.Office.Server.Search.WebControls.SearchResultsBaseWebPart.get_DefaultSearchProvider()     at Microsoft.Office.Server.Search.WebControls.SearchResultsBaseWebPart.get_DefaultSearchLocation()     at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnInit(EventArgs e) 58adda03-425a-4074-be6f-a13f3bf3a3bd
01/27/2011 14:04:35.10 w3wp.exe (0x0EBC)                       0x1144 SharePoint Server Search       Query                         dm2p High     Exception while trying to create RemoteScopes. Returning scope cache as null. ex Microsoft.Office.Server.Search.Query.SearchServiceNotFoundException: The search request was unable to connect to the Search Service.     at Microsoft.Office.Server.Search.Administration.RemoteScopes.Initialize(SPServiceContext serviceContext)     at Microsoft.Office.Server.Search.Query.ScopeCache.GetScopeCache(SPServiceContext serviceContext) 58adda03-425a-4074-be6f-a13f3bf3a3bd
01/27/2011 14:04:35.11 w3wp.exe (0x0EBC)                       0x1144 SharePoint Server Search       Query                         dm2p High     Exception while trying to create RemoteScopes. Returning scope cache as null. ex Microsoft.Office.Server.Search.Query.SearchServiceNotFoundException: The search request was unable to connect to the Search Service.     at Microsoft.Office.Server.Search.Administration.RemoteScopes.Initialize(SPServiceContext serviceContext)     at Microsoft.Office.Server.Search.Query.ScopeCache.GetScopeCache(SPServiceContext serviceContext) 58adda03-425a-4074-be6f-a13f3bf3a3bd
01/27/2011 14:04:35.11 w3wp.exe (0x0EBC)                       0x1144 SharePoint Server Search       Query                         dm2p High     Exception while trying to create RemoteScopes. Returning scope cache as null. ex Microsoft.Office.Server.Search.Query.SearchServiceNotFoundException: The search request was unable to connect to the Search Service.     at Microsoft.Office.Server.Search.Administration.RemoteScopes.Initialize(SPServiceContext serviceContext)     at Microsoft.Office.Server.Search.Query.ScopeCache.GetScopeCache(SPServiceContext serviceContext) 58adda03-425a-4074-be6f-a13f3bf3a3bd
01/27/2011 14:04:35.11 w3wp.exe (0x0EBC)                       0x1144 SharePoint Server Search       Query                         dn1m High     RefinementManager is called to get refinements before it's fully configured. 58adda03-425a-4074-be6f-a13f3bf3a3bd
01/27/2011 14:04:35.11 w3wp.exe (0x0EBC)                       0x1144 SharePoint Foundation         Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (GET:http://msct:900/_layouts/OSSSearchResults.aspx?k=hi&cs=This%20Site&u=http%3A%2F%2Fmsct%3A900)). Execution Time=30.9854701714549 58adda03-425a-4074-be6f-a13f3bf3a3bd


Thursday, January 20, 2011

SharePoint 2010 FBA

After windows2008 server R2 got crashed with no point of return, I am trying to make the system come alive again with the development environment how it was, but unfortunately, I am trying this for nearly 8 days but the problems popping up again and again.

After going through various steps and procedures, I still cant get a working set of system.

Updated system with automatic updates on.
Found there .net framekwork 4 needs repair. It took some to get repaired.
After restart, when I tried to browse sharepoint site with required credentials it gave web.config error, on searhcing related to that error, it was found to apply a patch.
Downloaded patch and updated the system with it, after that its giving error of security token service is not working [securitytoken.svc couldnot be activated].
Trying to browse that service directly so as could find out whats going on.
When browse directly its saying 404 couldn't found.
When checked central admin there was a warning, which says, security token service is not available.
There is an error in eventviewer which says, port::80 cannot be shared
After restarting the system, error came as cannot find the certificate.

Disconnected the Farm using Sharepoint 2010 configuration tool.
Reconnected the Farm using Sharepoint 2010 configuration tool.

After reconfiguring and everything, the error is back at same point, security token service is not working
Uninstalled SharePoint
Uninstalled SQL Server 2008 R2.

Installed SQL Server 2008 R2.
Installed Service Pack1. { As it is mandatory. }
Applied patch KB 976761 { As Required }
Applied patch KB 970315 { As Required but not updated with this patch as it shown some error. }


Resuming on 21st Jan 2011:
Installed SharePoint 2010 perquisites
Installed SharePoint 2010
Run Configuration Wizard to create SPFarm as standalone is installing SQL Server Express, which was giving problems as we wont be having any control on FBA and our database is going to be different and we have implemented our own FBA module.

Problem occurred during configuration as the system is standalone and can't have domain account.
Prob:



Run SharePoint 2010 management shell as administrator.
Execute Command: PSCONFIG.EXE -cmd configdb -create -server neilhw2k8r2 -database sharepoint_2010_config -user neilhw2k8r2\administrator -password ******** -passphrase ******** -admincontentdatabase sharepoint2010_admincontent


Succeeded.


Resuming Configuration:
Step 1:
 Step 2:
 Step 3
 Step 4
 Step 5
 Step 6
Completed:

After Installations:
Step 1

 Step 2
 Step 3
Step 4