Saturday, October 31, 2009

Server Error: http://go.microsoft.com/fwlink?LinkID=96177

In order to protect MOSS 2007 using DPM 2007 SP1, a few updates/ hotfixes need to be applied on MOSS 2007 server. One of the hotfix is "Windows SharePoint Services 3.0 post-Service Pack 1 hotfix package: January 31, 2008 (KB941422)". You may get details on this Knowledge Base from here: http://support.microsoft.com/kb/941422

After installing the update on MOSS 2007 server, you might experience that the MOSS web site is no more accessible but with a blank page and "Server error: http://go.microsoft.com/fwlink?LinkID=96177" on it. After some troubleshooting and we solve the problem by running this command on the MOSS 2007 front-end web server:

stsadm –o upgrade –inplace [-url <http://mosswebsite URL>] forceupgrade

PSCONFIG.EXE -cmd upgrade -inplace b2b -wait -force

IISRESET

This normally will happen even when you upgrade from WSS 3.0 to MOSS 2007 or install MOSS service pack 1 or Moss Service pack 2.

Friday, October 30, 2009

How does SharePoint automatically logged a user in?

Hi guys,

Here is the steps for automatic logged in sharepoint site when open it.

(1) Open IE browser.
(2) Go to Tools->Internet Options.
(3)Click on Security Tab.
(4)Click on Trusted Sites.
(5)Click on Custom Level. So security settings pop up is open.
(6)Go to User Authentication tab and select
Automatic Logon with current user name and password.

Wednesday, October 28, 2009

How to enable Search on your MOSS 2007 Site


Hi guys,

If you want to Enable Search facility on your sharepoint 2007 site,follow these steps:

Go to the Site Settings and under Site Administration Click on Search Visibility Link.










Update the seeting as shown on the attached image.


even after you enable the search visibility on your site and if you start search for a keyword on your site pages it will not work until the Crawling process will be run.

How can i Configure My Crawling process on MOSS 2007 ?

Open your central administration site: click on Share Services link under Share Services Administration.

Click on Search Settings -> Content Sources and Crawl Schedules -> Edit the Content Source which is exist.










Update your crawling services as you want and as per your organization needs.

Hope this helps....

Monday, October 12, 2009

Active search functionality in WSS using STSADM

stsadm -o spsearch -action start -databaseserver SERVERDB -databasename WSS_Search_SERVERDB

Tuesday, October 6, 2009

Show Currency with different locate in Sharepoint Data View Web Part

Suppose you’d like just a single DVWP to display numbers (either currency or regular numbers) in a different locale than the host site. This trick lets you do just that.

1. Open the page you need to customize with Sharepoint Designer. Switch to code view. Perform a search to find the tag xsl:decimal-format. Change the whole line with:

<xsl:decimal-format name="European" decimal-separator="," grouping-separator="." minus-sign="-" NaN="error" />

2. Now, locate your <xsl:value-of select=”@Total”/> and replace it as follows:
<xsl:value-of select="format-number(@Total, "€#.###,00;-€#.###,00", "European")"/>

WSS 3.0: When trying to search on sharepoint site, Getting message “No results matching your search were found.”

1. Symptom –
=============

–>When you are trying to perform search on your SharePoint site on your sharepoint server, you are getting following error message:

No results matching your search were found.
Check your spelling. Are the words in your query spelled correctly?
Try using synonyms. Maybe what you’re looking for uses slightly different words.
Make your search more general. Try more general terms in place of specific ones.
Try your search in a different scope. Different scopes can have different results.

–>Windows SharePoint help search is working fine and it gave results when we searched for “SharePoint”

–>Unable to get results on the SharePoint site

2. Cause –
==========

–>Issue due to windows Updates

3. Resolution –
================

–>We created a registry entry in the following location

HKLM\System\CurrentControlSet\Control\Lsa

–>Created a new DWORD key named “DisableLoopbackCheck” and modified the value to 1

–>We performed Full Crawl by the command

stsadm -o spsearch -action fullcrawlstart

–>We performed Search and it worked successfully

Tuesday, September 8, 2009

Retrive SPList Item using LINQ in Sharepoint

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

namespace linqtest
{
public class SPLINQ : System.Web.UI.WebControls.WebParts.WebPart
{
protected override void Render(System.Web.UI.HtmlTextWriter writer)
{
base.Render(writer);
SPList taskList = SPContext.Current.Web.Lists["Tasks"];

// Get items, order by title alphabetically and assign to taskListItems
var taskListItems = from SPListItem tItem in taskList.Items
orderby tItem.Title
ascending select tItem;

foreach (SPListItem taskItem in taskListItems)
writer.WriteLine(taskItem.Title + "
\n");
}
}
}