Friday, December 4, 2009

Fixing UserProfileException while installing SharePoint Server 2010


  1. Microsoft.Office.Server.UserProfiles.UserProfileException

    The request channel timed out while waiting for a reply after 00:00:18.7285970.
    Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding.

    One of the clear exception which says what to do while installing the beta product

    Navigate to the following path and open the client.config file \14\WebClients\Profile\client.config

  2. Find the tag increase the default sendTiemout attribute value to few minutes instead of seconds sendTimeout="00:15:20"

  3. Rerun the Psconfig wizard

After a long struggle managed to deploy SharePoint 2010 in a Vmware dev environment



Wednesday, December 2, 2009

VirtualBox memory limitation plays spoilsport in Sharepoint 2010 installation

As a believer of virtualized development environment, I've started building the development environment for SharePoint 2010 using Sun Virtualbox. I've shared initially 1 GB of Ram out of 4 GB from my 32 Bit Vista host which eventually fell short after installing the Pre-requisites of SharePoint 2010

After facing a lot of screen freezes and high memory consumption in my guest (Windows Server 2008 SP1) I've increased the shared memory to 1.50 GB. SharePoint 2010's psconfig proved that is too low after 8 of 10th step throwing a WCF timeout exception. No luck even after relaxing the timeout values ,not able to complete psconfig and not able to pull down the processor/memory consumption

Frozen VirtualBox



So SharePoint 2010 requires more memory to be shared in its virtualized environment, there comes the issue. There's no way to increase the shared memory beyond 1500 MB with my current hardware setup(32 bit Vista Home premium with 4 GB RAM)

This limitation is forcing me to evaluate using VMware, so for the time being good bye for the cross platform hypervisor Virtualbox

Top memory comparison with VMWare

Friday, November 20, 2009

How to share files in Sun Virtual Box ?

Shared folders allow you to access files of your host system from within the guest system, much like ordinary shares on Windows networks Sharing folders in Microsoft virtual PC is much simpler than in virtual Box. Just adding the shared folder will add a new mapped icon in "my computer" to provide access to host files

This is not the case in Virtual box, sharing is accomplished using a special service on the host and a file system driver for the guest, both of which are provided by VirtualBox.To share a host folder with a virtual machine in Virtual Box, you must specify the path of that folder and choose for it a "share name" that the guest can use to access it.

After this step I'm expecting a new drive in "My Computer" as a typical Microsoft Virtual PC user. But there is no new drive. After digging into the help files, Virtual Box requires a explicit "net use" command to mount that shared drive.

net use x: \\vboxsvr\sharename


vboxsvr is a fixed name(might be helper service which runs on the guest along with Guest additions), "sharename" is the alias name which is provided while mapping the host drive

Virtual machine guest additions installation is a pre-requisite for folder sharing

Monday, November 16, 2009

Where is Windows Server 2008 SP1 ?

While preparing a Windows server 2008 virtual machine and as usual I was just looking up Microsoft.com for patching my newly installed operating system(to get the bug fixes).

Interestingly I was not able to find Windows Server 2008 SP1, there is only SP2 available and came to know that the initial OS installation includes the SP1.

FAQ Section of Windows Server 2008 SP1 clarifies the doubt,Following text taken from the FAQ

Are there any prerequisites for SP2?

You must have Windows Vista with SP1 or Windows Server 2008 installed on your computer before installing Service Pack 2. (Windows Server 2008 shipped with Service Pack 1 included.)

Screen shot after the clean installation of Windows server 2008



SharePoint server 2010 preparation

As SharePoint server runs only on 64 bit platform, all working virtual machines becomes useless and need to start with a clean slate. It's time to build a new virtual machine but unfortunately our Microsoft Virtual PC cannot be able to run 64 bit machine within.

SharePoint server 2010 can be installed on Vista/Windows 7/ Windows 2008 Server Operating systems. So it's a clear message from Microsoft that Virtual PC will not be upgraded to support 64 bit instances. Either run SharePoint on your desktop or go for third party virtualization solutions such as Vmware or Sun Virtual box. As the later is a free offer from Sun Micro, I prefer to go with Virtual box.

Prior to that you need to check whether you lap/desk top supports 64 bit virtualization. Use VMware 64 bit Compatibility checking tool and find out whether your hardware supports 64 bit virtualization. Use this processor check guide from Vmware for supported micro processors.

At last Sun virtual Box rocked by hosting the 64 bit guest on a 32 bit Vista box


It's time to learn new things right now which are integrated right into the heart of SharePoint 2010 till I get the CTP edition from MSDN.

Things are which are new in SharePoint 2010
  • PowerShell - an ultimate scripting engine which will surely replace the STSADM management console from administrators
  • Jquery - A lightweight javascript library which comes with OOB product
  • SilverLight - Version 3.0 looks much solid with its new controls and RIA services
  • Windows Communication foundation - Guy who replaces the SSP in MOSS
  • Visual Studio 2010 - Recommended IDE for SharePoint server 2010 which comes with tight integration like F5 execution and much better project templates than VseWss extensions. Still I need to explore more

Monday, October 12, 2009

C# vs Objective C

Got a chance to mess with Objective C and Cocoa framework. Following are some typical thoughts when comparing with C# and .NET framework

• In Objective C keyword "self" is used instead of "this" of C#
• Memory allocation happens through "alloc", there is no "New" keyword in Objective C
• There is no Garbage Collector to collect objects out of scope, proper release/disposal of resources is essential in Objective C.
• Header files are imported instead of include (i.e #import statements are used instead of traditional #include statements)
• The spec of a class is divided in two parts interface and implementation, interface portion contains declaration class, variables and related methods. This interface normally lives in .h files
• Implementation portion has the actual code for the methods declared in interfaces. This implementation normally stays in .m files. So all classes are like an C# interface and its implementation, declaration and actual code is segregated.
• A class declaration starts with @interface compiler directive and ends with @end directive.
• Object references are pointers. Objective C supports both strongly typing and weak typing. Strong typing always happen with pointer declaration
• There are two types of methods, Instance methods & Class methods, Instance methods require an instance of the class to initiate the call and Class methods are much similar to Static methods in C#
• An instance method is marked with the dash(-) as prefix before the return type and signature of the method.for e.g, -(void)Insertsome:id(anobject)
• An Class method is marked with the plus(+) as prefix before the return type and signature of the method.for e.g, +(void)Insertsome:id(anobject)
• NULL in C# becomes nil in Obj C
• Calling a method is known as messaging,a message is the method signature and its parameters. All messages are enclosed in square brackets [ and ]
• A property declaration starts with @property directive followed by data type and property name.( Eg:- @property BOOL flag;)
• @synthesize compiler directive is used to instruct the compiler to generate methods according to the specification in the declaration
• C# Interfaces are called as Protocols in Objective C
• .XIB files are used to store UI related settings, i.e., if we design a form using the IDE that will be stored as a xib file. In Apple world people still use the legacy name .nib file(that is the legacy name still in use)
• In Objective C a solution is called as a Bundle.