Tuesday, November 20, 2012

Deleting the SharePoint2010 Search service application



Deleting the SharePoint2010 Search service application
Posted July 18, 2011 by Gangadhar Kotu in SharePoint Server 2010. Tagged: Configuration, Delete, Search, SharePoint Server 2010. Leave a Comment
To delete the Search service application, perform the following.
  1. Go to Central Administration
  2. Click on ‘Manage Services applications’ under Application Management.
    http://subhashkotu.files.wordpress.com/2011/07/manageserviceapplications.png?w=570
  3. Select the ‘Enterprise Search Service Application’ from the list of service applications. The name may differ as per your configuration.
  4. Click on ‘X’ Delete button from the Ribbon.
    http://subhashkotu.files.wordpress.com/2011/07/serchserviceapplication.png?w=570&h=234
  5. Check the ‘Delete the content database as well’ option from the diaglog.
  6. Click OK.
While deleting the search service application, the page hangs and keeps showing the same messaging like “Deleting the service application…..”. Even if you leave it untouched for hour or two or three like that… nothing happens, it would just hang on from the Central administration.
In such case, perform the below operations to get them cleaned fully from the Farm.
  1. Get the Search Service application Id – You would get it when you click on the Search Service application from the Manage Service Applications page.
    http://subhashkotu.files.wordpress.com/2011/07/searchserviceapplicationid.png?w=570&h=281
  2. Execute the following STSADM command
Stsadm -o deleteconfigurationobject -id f1d41cf0-50d0-4fcc-9087-344103757277
  1. Connect to the DataBase Server
  2. Delete the Search Service Application Specific databases (CrawlStoreDB, Application_DB and PropertyStore_DB ) manually.
    http://subhashkotu.files.wordpress.com/2011/07/searchservicedatabases.png?w=570
Now that the Service application has been cleaned successfully. You could go ahead and configure the Search service application now.
Note:  STSADM command is still powerful in this case over PowerShell Command. Here is the PowerShell command as an alternative:
$spapp = Get-SPServiceApplication -Name "Enterprise Search Service Application"
Remove-SPServiceApplication $spapp -RemoveData
http://subhashkotu.files.wordpress.com/2011/07/removingsearchserviceappusingpowershell.png?w=570&h=74
This is still taking 15 and more… and executing..

Wednesday, August 15, 2012

Link to JQuery Library

  1. Go to jquery.com and download the latest jQuery library to your desktop. You want to get the compressed production version, not the development version.
  2. Open SharePoint Designer (SPD) and connect to the root level of your site's site collection.
  3. In SPD, open the "Style Library" folder.
  4. Create a folder named "Scripts" inside of the Style Library.
  5. Drag the jQuery library JavaScript file from your desktop into the Scripts folder.
  6. In the Scripts folder, create a new JavaScript file and name it (e.g. "actions.js").
  7. Open your master page file in SPD.
  8. Within the <head> tag of the master page, add a script reference to the jQuery library just above the content place holder named "PlaceHolderAdditonalPageHead" (and above your custom CSS references, if applicable) as follows:
    <script src="/Style%20Library/Scripts/{jquery library file}.js" type="text/javascript"></script>
  9. Immediately after the jQuery library reference add a script reference to your custom scripts file as follows:
    <script src="/Style%20Library/Scripts/actions.js" type="text/javascript"></script>

Wednesday, August 8, 2012

Hide First Tab in SharePoint 2010 Navigation and Comment & Rating

I created a blog post on this for SharePoint 2007 HERE: But SharePoint 2010 is a bit more complex. Since it uses UL’s and Li’s for it’s navigation it is a bit harder to hide just one element.
image
You will notice that the Home tab actually is the first node and then has a child UL which represents the rest of the navigation Items. So the approach is to hide the first <li> <a> (display: none) and then simply just use (display:block ) to show the hidden <ul> <li> <a> tags.
Here is the CSS you could use to hide just the first node (home) tab in a SharePoint 2010 application:
.s4-tn li.static > a{ 
display: none !important; 
} 
.s4-tn li.static > ul a{ 
display: block !important; 
}

 As well as, if you want to remove  "Comment and Rating" as shown below, please add the following code.





.s4-socialdata-notif
{
   display: none !important;
}

Monday, July 30, 2012

SharePoint 2013 OOB Look and feel with Publishing Portal template

Finally, I could see an initial screen of SharePoint 2013.


SharePoint Server 2013 Installation error

<Summary>

The solution to this can be found on this technet link. It’s quite simple (once you know it). Open your commandline prompt and navigate to “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\BIN”

There you execute the command:

psconfig.exe -cmd Configdb create SkipRegisterAsDistributedCacheHost

Please see more details on this link below. 
http://www.alexandervanwynsberghe.be/sharepoint-foundation-2013-installation-error/

Friday, July 27, 2012

Migrate SharePoint List Templates STP’s from SharePoint 2007 to SharePoint 2010


  1. Rename the original .STP to .CAB
  2. Extract its manifest.xml to a local folder.
  3. Search for the ProductVersion element. This should have a value of 3
  4. Change its value to 4
  5. 5. Repackage the manifest.xml into a .CAB. I've done this by using makecab.exe in the C:\Windows\System32 folder




Syntax: makecab.exe {workingfolder}\manifest.xml {workingfolder}\{template-name}.cab

6. Change the generated cabinet's extension from .CAB back to .STP and upload it into the _catalogs/lt

Programmatically get InternalFieldName

SPListItem item = GetMyItem(someParameter);string itemInternalName = item.Fields["Field Display Name"].InternalName;
string theValueOfTheFieldWeWant = item[internalName].ToString();