Friday, June 3, 2011

Step by step SharePoint Server 2010 Installation guide

Step by step SharePoint Server 2010 Installation guide

Finally! my long waiting SharePoint Server 2010 beta ready for download… (http://technet.microsoft.com/en-us/evalcenter/ee391660.aspx) I installed successfully on VMWARE Workstation alternatively you can use VirtualBox.

Given below step by step Installation guide.

List of Prerequisites Software.

1. Windows server 2008 with SP 2 / Windows 7 / Vista (All OS must be 64bit)

2. Windows 2008 R2 and Windows Server 2008 KB971831

3. WCF Fix article for Windows 2008 R2 and Windows 7 KB976462

4. Microsoft SQL Server 2008 Native Client

5. Microsoft "Geneva" Framework Runtime

6. Microsoft Sync Framework Runtime v1.0 (x64)

7. Microsoft Chart Controls for Microsoft .NET Framework 3.5

8. Microsoft SQL Server 2008 Analysis Services ADOMD.NET

9. PowerShell V2 RTM

10. SQL Server 2008 SP1

11. .NET Framework 3.5 Service Pack 1 (Full Package) KB959209 KB967190

Installing Windows Server 2008 with SP2 on VMWARE Workstation 7.0 may prompt following error :

“you have configured this virtual machine as a 64-bit guest operating system…”

image

By default Lenovo T61 laptop’s ship with virtualization technology and set VT is disable.

In order to enable VT on laptop. Please Shutdown your laptop and go to BIOS setup > CPU > Virtualization technology > Enable and Press F10 to Save and Exit

Install Windows server 2008 with SP 2

Windows 2008 x64 Install

Download prerequisites software (if you need to Share your PC folder to access from VMWARE) enable Share folder option

image

Go to VM > Setting > Options > Shared Folder > Enable and Select your Pre-request software download folder.

image

Run > SharePoint Server 2010 Application file, System will extract files and show above screen, Under Install > Click Install Software prerequisites…

image

image

System will run for few mints and display following error message

image

Install your prerequisites software that you downloaded one by one (possible follow the above order as show in error message)

Note : if you trying to install Hotfix’s from your Share Folder system may prompt “error code0x80070003” please copy your hotfix files to Windows server and click Install.

image

Once you get above screen “Installation Complete” Click "Install SharePoint Server” link

image

SharePoint 2010 Installation screen prompt for Product Key get beta key from here

http://technet.microsoft.com/en-us/evalcenter/ee391660.aspx

image

Read your License terms and click I accept and start Installation

image

Select Standalone option, if you Installing with SQL Express 2008 server, if you are Installing SQL Server 2008 and SharePoint 2010 farm servers then select Server Farm option. Since i am using VMWARE installation i select Standalone option.

image

System will star Installation progress…

image

System would take several mints to complete installation and prompt for Configuration Wizard.

image

Run your Configuration wizard and click next >

image

Step 2 on Configuration wizard click “Yes” to start IIS and SharePoint Admin, Timer service.

image

Configuration wizard continue 2 of 10 task and if everything ok system will display following screen. (Please note that it will take several mints complete. Its not fast as SharePoint 2007 configuration wizard)

image (

Congratulations… you successfully Installed SharePoint 2010.

System will launch SharePoint 2010 Central Administration screen…

SharePoint CA

Enjoy… and provide me your feedback…

Thursday, June 2, 2011

Fixing SQL Server Error : The backup set holds a backup of database other than the existing database.

The way it was resolved for us was to

1) Selecting Options within Restore Database dialog box.

2) Specifying correct path to the mdf and log file for the database.

3) Checking Overwrite the existing database option.

That’ s it ..

SharePoint's hidden user-list - User Information List

SharePoint's hidden user-list - User Information List

Okay, this might not come as news to most SharePoint developers who've been around a while, but lately I've been messing with the User Information List in SharePoint and it doesn't seem that many people know that it exists.

Note: This list is only visible to and accessible by administrators.

User Information List - Background

The User Information List stores information about a user by having some metadata set up for the user. Some examples are Picture, Email, DisplayName, LoginName etc. ) For a complete list of fields, see further down this blogpost under "User Information List Fields".

Something to note is that when a user is granted access to a site, a new item will be created in the User Information List storing some information about the user.

When a user add/create or edit an item, SharePoint will display something like "Last modified at 1/1/2008 by Tobias Zimmergren" like the following pic:

image

In this example the DisplayName (used to display System Account) is gathered from the User Information List

Browsing the User Information List

The User Information List can be accessed (Only if you're admin) via the browser by navigating to/_catalogs/users/simple.aspx from your site. (Ex: http://zimmergren/_catalogs/users/simple.aspx)

This works for both Windows SharePoint Services 3.0 (WSS 3.0) and Microsoft Office SharePoint Server 2007 (MOSS 2007) and looks like this when you access it through the browser:

image

Write code to interact with the User Information List

If you want to interact with this list to set properties on a user (Probably only want to do this if you're running WSS) you could do it like this:

// Instantiates the User Information List
SPList userInformationList = SPContext.Current.Web.SiteUserInfoList;

// Get the current user
SPUser user = SPContext.Current.Web.EnsureUser(@"ZIMMER\TobiasZimmergren");

// The actual User Information is within this SPListItem
SPListItem userItem = userInformationList.Items.GetItemById(user.ID);

The above code will give you the SPListItem object which links to the currently logged in user (the one executing the request).

You can then work with the SPListItem object like normal to get or set the properties like this:

string pictureURL = userItem["Picture"].ToString();

User Information List Fields

Instead of writing out all the fields/columns availible, you can simply create a new Console Application and insert the following code in order to output all the fields names and internalnames:

image
Note: You will ofcourse have to change the URL and User LoginName
Note2: No comments needed about not disposing the objects as this was merely a sample, eh? ;)

Sharepoint 2010 show the user profile picture programatically

SharePoint has a User Information list which can accessed using the object model.
So how do you get the profile picture? well i am posting a little code snippet which will make your life easier. It is in server object model though.

SPuser _user = SPcontext.current.web.CurrentUser;

using (SPSite Site = new SPSite(“Site URL”))
{
using (SPWeb Web = Site.OpenWeb())
{

SPList UserInfoList = Web.Lists["User Information List"];

SPListItem UserItem = UserInfoList.GetItemById(_user.ID);

UserItem["Picture"] = "Some url"; //-> here you can set or get the Picture property which is a url.
}
}

Friday, July 31, 2009

Learning from West


This photo may seems that small gathering of United States high profile personalities in white house including president Barrack Obama and the vice president Joe Biden.

But the other two gentlemen seen in this photo are ordinary citizens of United States. They are James Crowley and Henry Louis Gates Jr, the first one is the Sargent and the later is the professor of Harvard University.

In July 16, Gates was arrested after trying to break and open the door of his house upon his return from an overseas trip. This is due to the loss of his home key. But Sergent James Crowley , who is on duty wrongly assumed that Gates involved in the burglary of the house. Without proper inquiry, he arrested gates who belongs to the afro american community, and makes the racial remarks about gates. This racism row has rocked the america last week and evoked many criticisms. The charges of the Gates are dropped and the Sargent is suspended. This incident affected the social harmony.

In July 30, Barrack Obama calls both the professor and the Sargent to the white house. In this meet James Crowley makes the apology and have friendly discussion with the professor. The harmony of the races are protected by the timely and healthier efforts taken by the President Obama.

Our Indian politicians needs to learn this from the West. We have seen in many occasions that the politicians of our country acted in a stupid and selfish manner which not solved the problems in religious, caste, community riots but also fuels to the fire.

We have seen this thing in the religious riots of Gujarath, Maharastra, Orissa and other northern indian places also. We have seen this thing in the community problems of southern parts of Tamilnadu. If the politician are taken corrective measures in the initial stages of riots, the riots can be solved easily. But for the sake of vote algorithms they fuels to the riots.

So we the people of India, no longer we point our fingers to the evil politicians. Its our responsibility to eliminate those from the society and makes our country, a harmonious society.