Saturday, March 26, 2011

SharePoint 2010 Search Error: "Internal server error exception"

Configured SharePoint 2010 Search in a new environment. When trying to search, received: Internal server error exception:" Error! Here are some workarounds:
internal server error exception sharepoint 2010 Search
  • Restart the SharePoint timer services/ IIS/ SharePoint Search service / Restart Server
  • Enable "Search Server WebParts" feature on the Site Collection level.
  • Run the "Search and Process" Timer Job
  • Make sure your search service application is associated with right proxy! (Go to Application Management >> Select Configure service application associations under the Service Application heading >>Select the default Application, select Your sevice app, Then click on set as default)
  • ensure that the "SharePoint Server Search" and "Search Query and Site Settings Service" services are running
  • Verify your AAM Settings
  • ensuring that the application pool is assigned correctly
  • Remove and reinstall the search application


You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Friday, March 25, 2011

Configuring iFilter for PDF Search in SharePoint 2010 - Step by Step

What is iFilter by the way?

IFilters are components that allow SharePoint to index content of specific file types, letting users to search for content in those files.
Using the SharePoint Search we can find documents based on their filename, metadata or content within a document. By default the content of Office documents is indexed by the SharePoint crawler, but PDF files are not crawled.
To add support for PDF files you have to add an I-Filter which the SharePoint crawler uses to read through PDF files and add the information to the search index.
There are two steps in configuring PDF Search IFilters for SharePoint
1.       Install the PDF iFilter
2.       Configure the iFilter

Installing IFilter

The Installation of the iFilter 9.0 has to be done on the Index Server(s)
How to install ifilter in SharePoint 2010? Download  and install the iFilter installation file for 64-bit machine from http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025
Configuring iFilter for PDF Search in SharePoint 2010
Choose the location for the installation files to reside and complete the installation by clicking Install and finish the installation wizard.
install ifilter on sharepoint 2010

 Configuring iFilter

I. On WFE Server(s):

1.       Download PDF icon picture (17x17) from Adobe web site http://www.adobe.com/misc/linking.html and Copy to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES\

pdf ifilter on sharepoint 2010

2. Add an entry in docicon.xml

Backup the docicon.xml file, and Add an entry in docicon.xml for the PDF icon:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML


<Mapping Key="pdf" Value="pdficon17.gif">

Above Steps are done in order to have the PDF icon in SharePoint search results.

Add PDF file type on the File Type page under Search Service

· Open SharePoint Central Administration >> General Application Settings >> Farm Search Administration

add pdf search to sharepoint 2010·         Click on Search Service Application

sharepoint 2010 search service pdf
·         Click on File Types to add PDF extension for SharePoint 2010
sharepoint 2010 search file types pdf

 ·         Add new File Type extension “PDF” to setup IFilter for SharePoint 2010
sharepoint search server 2010 pdf

·        Enter file extension as pdf and click OK and get out from Central Administration
pdf search sharepoint 2010
II.    On Index Server(s)

·         Open Regedit and go to : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\14.0\Search\Setup\Filters
·         Right-click the Filters folder and select New Key. Enter “.pdf” for the key value.

sharepoint 2010 pdf ifilter registry change
·         Add the following values
<REG_SZ> Default = <value not set>
<REG_SZ> Extension = pdf
<REG_DWORD> FileTypeBucket = 1
<REG_SZ> MimeTypes = application/pdf
sharepoint 2010 pdf ifilter registry

Associate the iFilter by following below steps:

·         Open Regedit
·         Navigate to the following location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\14.0\Search\Setup\ContentIndexCommon\Filters\Extension
·         Right-click > Click New > Key to create a new key for .pdf
·         Add the following GUID in the default value {E8978DA6-047F-4E3D-9C78-CDBE46041603}
pdf search in sharepoint 2010
Restart all SharePoint services as well as IIS.
·          Restart the SharePoint Server Search 14
how to install ifilter sharepoint 2010
Or Execute the below commands:
Net Stop OSearch14
Net Start OSearch14

·         Reboot the SharePoint servers in Farm
·         Perform FULL Crawl to get search result.

To allow PDF’s to open in the browser

·         Navigate  to Central Administration >> Application Management
·          Select the appropriate web application (you may have to repeat these steps if you have multiple web apps) then click on General Settings in the Ribbon
·          Scroll down to “Browser File Handling” and set this to Permissive
·         Click the OK button.  (Repeat the last two steps for additional web apps)

Unit Testing:

Create a document library upload any sample PDF document(s). Once the full crawl is completed we will get search results.
pdf search on sharepoint 2010



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Monday, March 21, 2011

Top Navigation bar highlight problem - Resolutions

SharePoint 2007 fails to highlight correct top navigation tab in some cases.
SharePoint Top Navigation bar highlight problem Resolutions

Check for the following causes:
  1. Highlight will work ONLY for content pages (not for AllItems.aspx or for /documents)
  2. Highlight will work ONLY for relative URL's (Not for http://sites/pages/abc.aspx, But will work for /pages/abc.aspx)
  3. Will work if NO duplicates in the current navigation set (i,e. Every menu item should point a unique url)
  4. Only for the pages coming for "Pages" directory / Root of the Web
  5.   should be checked under : Site Settings > Modify Navigation
     


You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Friday, March 18, 2011

Tools to Create Mockup for SharePoint Sites

Looking for Creating Mockups for your SharePoint Site? Here is the wonderful product: Balsamiq
Tools to Create Mockup for SharePoint Sites - SharePoint balsamiq template
URL: http://balsamiq.com/products/mockups

SharePoint 2010 balsamiq wire frames:
http://mockupstogo.net/prebuilt-sharepoint-elements
http://tuney.blogspot.ae/2011/03/sharepoint2010-balsamiq-wireframes.html
http://sharepoint.jsturges.com/2011/11/sp2010-wireframe-template/
Tools to Create Mockups for SharePoint Site


Visio 2010 comes with Powerful UI wire frame features, You can give a try to it. Don't forget to start with downloading SharePoint stencil for Visio from

Other tools:
http://www.designervista.com/
http://www.mockupscreens.com/

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Sunday, March 13, 2011

Migrating InfoPath Forms to SharePoint 2010

When migrating InfoPath forms to SharePoint 2010, The first show stopper is: Data connections. Data connections are hard coded in the InfoPath Farm.

Lets say: we are migrating from MOSS 2007 environment (Say: http://MOSS.Company.com) to SharePoint 2010 (Say: Http://SharePoint.company.com). Doesn't matter whether you Upgrade/Migrate - After the migration all the existing InfoPath Forms will still be pointing to the old URL :http://MOSS.Company.com.. Ouch!

Do we need to go to each and every Form, Change the connection to fix this? OMG!

Luckily, SharePoint offers a PowerShell cmd-let to fix this issue: Update-SPInfoPathUserFileUrl

Update-SPInfoPathAdminFileURL -find <OldUURLtoReplace> -replace <NewURL>

In Case, This doesn't help or Form template is missing then you can upload/publish your new template and re-link them. (Under General Settings, click Relink forms to this form library)

Technet article addressing this issue: http://technet.microsoft.com/en-us/library/cc263286.aspx#FormTemplateLinks

For Admin Approved InfoPath forms, you can use:
stsadm -o exportipfsadminobjects command export the IP forms to a CAB file and then use Import-SPInfoPathAdministrationFiles cmdlet for importing them.


How about Existing Forms (XML Files) Created?
The Update-SPInfoPathUserFileUrl  will fix only the Template URL of the FORM Library, But not on the existing XMLs created on the Form Library. The HREF attribute in the existing Infopath XMLs must be changed.

To Fix the existing Forms, We need to Relink them. Just get into Form Library settings >> Relink All

You can get the List of Form Libraries using PowerShell:  Find All InfoPath Form Libraries


If you have many Form Libraries and want to update the existing Form's connections, you can use PowerShell script as provided at http://sharepintblog.com/2011/06/07/updating-infopath-form-templates-and-data-connections-with-powershell/

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Friday, March 11, 2011

Disk space analyzing utility - Nice one

I had to do the analysis on my server's disk space, because it was getting reduced time to time.

The best utility I found is: Disk Space Fan! it provides nice interface, navigation options.
 URL: http://www.diskspacefan.com/index.html

Disk space analyzing utility

More utilities comparison: http://www.techsupportalert.com/best-free-disk-space-analyzer.htm

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Saturday, March 5, 2011

Automating the SharePoint Site owner change process

I'm the farm administrator of 5000+ site collection. People moving from role to role used to send a mail to me, for changing the site collection owners. hmm, for these requests I've to manually go and check, for which site collection owner needs to be changed, Is the requester is a previous site owner, is the URL provided is valid, etc.

How about automating this process? Well, I've done that.

Here is the over all idea.

  1. Create a list with the fields: URL of the site collection, Reason for change, New Primary owner, New secondary owner,etc. With content approval enabled - Let the end users come and fill this list.
  2. Create a .Net console application and place the application under task scheduler in one of the WFE, Let the application run every day, read the pending site ownership change requests, validate and change the site owners programmatically, approve/reject the request and then send a mail to the requester and consolidated mail to farm administrator. Sounds good? yes.

Here is the over all flow:
Automating the SharePoint Site owner change process 

In similar way, I've automated the Site delete process too.(End users used to request to delete their site collection, when they don't need it, or when the project goes to the End.)
Automate Manual Processes in SharePoint
 Want help in writing coding for the above automation? Mail me!



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Friday, March 4, 2011

Build SharePoint Feature to Deploy File System Changes

With SharePoint solution packages, its possible to port the file system changes and providing Feature based solutions! Lets build a SharePoint 2007 feature to deploy file system changes (12 hive files) using WSP Builder. Here are the steps:

1. Create a new WSP project ( you need to have WSP Builder installed. If not, get it from CodePlex)

2. Add a New Item


 3. Add a New Feature with Receiver code.



2. Add the code in Feature Receiver, Say for e.g. I'm Replacing a image in 12 hive, I've written the following code.


using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;
using System.IO;

namespace FileSystemChangesFeature
{
    class FileSystemChangesFeature : SPFeatureReceiver
    {
    public override void FeatureActivated(SPFeatureReceiverProperties properties)
        {
            //Backup the Original Image NORESULT.gif and Replace with the New image from Features Directory
       if (File.Exists("C:\\Program Files\\Common Files\\Microsoft Shared\\web server extensions\\12\\TEMPLATE\\LAYOUTS\\1033\\IMAGES\\NORESULT.GIF"))
            {
               File.Move("C:\\Program Files\\Common Files\\Microsoft Shared\\web server extensions\\12\\TEMPLATE\\LAYOUTS\\1033\\IMAGES\\NORESULT.GIF","C:\\Program Files\\Common Files\\Microsoft Shared\\web server extensions\\12\\TEMPLATE\\LAYOUTS\\1033\\IMAGES\\NORESULT.GIF.BAK");
                File.Copy("C:\\Program Files\\Common Files\\Microsoft Shared\\web server extensions\\12\\TEMPLATE\\FEATURES\\FileSystemChangesFeature\\NORESULT.GIF", "C:\\Program Files\\Common Files\\Microsoft Shared\\web server extensions\\12\\TEMPLATE\\LAYOUTS\\1033\\IMAGES\\NORESULT.GIF");
            }
        }

        public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
        {
            if (File.Exists("C:\\Program Files\\Common Files\\Microsoft Shared\\web server extensions\\12\\TEMPLATE\\LAYOUTS\\1033\\IMAGES\\NORESULT.GIF"))
            {
                File.Delete("C:\\Program Files\\Common Files\\Microsoft Shared\\web server extensions\\12\\TEMPLATE\\LAYOUTS\\1033\\IMAGES\\NORESULT.GIF");
                File.Copy("C:\\Program Files\\Common Files\\Microsoft Shared\\web server extensions\\12\\TEMPLATE\\LAYOUTS\\1033\\IMAGES\\NORESULT.GIF.BAK", "C:\\Program Files\\Common Files\\Microsoft Shared\\web server extensions\\12\\TEMPLATE\\LAYOUTS\\1033\\IMAGES\\NORESULT.GIF");
            }
        }

        public override void FeatureInstalled(SPFeatureReceiverProperties properties)
        {
            //throw new Exception("The method or operation is not implemented.");
        }

        public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
        {
            // throw new Exception("The method or operation is not implemented.");
        }
      }
}



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Hide Quick Launch (Left Navigation) in SharePoint 2007 / 2010

Place the below CSS in Content Editor Web Part (or in your CSS / Master Page/etc)

In MOSS 2007:
<style>
.ms-quicklaunch 
  {
    display:none
  }

.ms-navframe 
  {
    display: none
  }
</style>

In SharePoint 2010:
<style type="text/css">
.v4master #s4-leftpanel 
 { 
  display: none 
  }
 .v4master .s4-ca 
  { 
    margin-left: 0px 
   }
</style>

For SharePoint 2013, Use this: Hide Quick Launch Bar in SharePoint 2013

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Thursday, March 3, 2011

No content databases are available for this operation - Error while tyring to restore using stsadm

My requirement is to rename a site URL, so I took a STSADM backup, then I went to restore using the new URL.  When I ran the restore with the new URL, It resulted the below error:

"No content databases are available for this operation. Create a content database, and then try the operation again. To create a content database, click Content databases on the Application Management page, select the Web application to use, and then click Add a content database"

No content databases are available for this operation - Error while tyring to restore using stsadm
The problem is: The GUID of the new site I'm trying to create is the same as an existing site.

Solution is: Delete the old site collection and then run the stsadm -o restore again!

Microsoft KB article addresses this issue: http://support.microsoft.com/kb/926321


You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Wednesday, March 2, 2011

Site Recycle Bin for SharePoint - Must have Utility

Site Recycle Bin (formerly known as: Microsoft IT Site Delete Capture) Enables administrators to create a snapshot of site collections and Webs as they are deleted through the SharePoint user interface, the SharePoint Administration Tool, SharePoint 3.0 Central Administration, or SharePoint Designer.

By default this tool will only backup sites created from default Microsoft site templates.
Refer here for more info: http://sharepointconnoisseur.blogspot.com/2011/04/tips-and-tricks-for-site-recycle-bin.html

One important point to ponder here is: If you want to delete any site collection, you have to do it from WFE, and Not from CA server. otherwise this tool will not allow you to delete.

Very handy! Download it from the URL: http://governance.codeplex.com/, By the way, Its a WSP file, you have to add, deploy and then activate the feature.


You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Disable logging in SharePoint

In one of my development box, Logs grown rapidly and occupied disk space. By default logs are stored under:   C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOGS

I wanted to STOP the logging altogether. Here is what I did to disable logging in SharePoint:
  1.     Go Central Administration >> Operations >> Logging and Reporting
  2.     Click on Diagnostic Logging
    1. Customer Experience Improvement Program: select No, I don't wish to participate
    2. Error Reports: select Ignore errors and don't collect information
    3. Trace log: clear the entire Path.            
  3. Click on Usage Analysis Processing
  4. Uncheck Enable logging
  5. Click on Information Management Policy Usage Reports
  6. Uncheck Enable recurring policy usage reports
Yeah, of course this should be done only for DEV environment. It's strongly recommended to enable the logging for any of your production servers. Else its impossible  to troubleshoot any errors.



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


You might also like:

Related Posts Plugin for WordPress, Blogger...