Archive | 2010

Select Page layout option in pages missing SharePoint 2010

The page layout option was missing in when pages were created. Looked into the pages library and could not find the “testing” page that I created.   Actually it got created in SitePages and this is a new feature in SharePoint 2010 publishing because the wiki feature home page feature was enabled. Go to Site […]

search error while accessing your MOSS site from internet

From inside the MOSS box search would work but while you are searching on your MOSS site through internet you get the below error message. Solution: Is very simple. Configure AAM to the sharepoint site for Internet     Object reference not set to an instance of an object.   at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnLoad(EventArgs e)    at System.Web.UI.Control.LoadRecursive() […]

MOSS 2007 :- Retrieving the COM class factory for component with CLSID failed due to the following error: 800703fa.

We were getting COM exceptions on our MOSS 2007 site which is installed on Windows Server 2008 and SQL Server 2008 64 bit. IISRESET was solving the issue for sometime and this error would still appear. The issue is really not MOSS issue but IIS 7.0 issue and all you need to do is to […]

cannot connect to configuration database error…

I was running server farm installation for MOSS 2007 and soon after the set up ran , the Central Administration website was showing an error “Cannot connect to the configuration database” I checked the below things: Identity of the app pool under which the CA site was running Checked the SQL server for the right […]

InfoPath Rules,Validation, Conditional formatting,Code Behind- a sample application for timesheet-part2

Okay from the last post we saw that we could open code behind and saw VSTA opening up from the code location you know J Before we deep dive into doing InfoPath Code behind go through my last post which explains how to deploy , develop and debug infopath forms with code behind deployed as […]

Deploying browser-enabled InfoPath form with code behind i.e. .DLL as content type

Deploying an InfoPath form with code behind i.e. dll as site content type and making the debugging experience for a developer seamless. First of all let me link a nice post by Sahil Malik for deploying InfoPath forms as content types here Let’s create a regular SharePoint feature to deploy an InfoPath form with its […]

InfoPath get/set form fields value in code behind

It would be very common for someone working on InfoPath code behind to retrieve values and set values on the form using code. Below are the snippet for both in C#. /// <summary> /// Sets the field value of an InfoPath Form. pass isNil true for date fields /// </summary> /// <param name="xPath">copy the xpath […]

InfoPath Rules,Validation, Conditional formatting,Code Behind- a sample application for timesheet-part1

Let’s do a very basic timesheet application. Design an InfoPath form as below to enter the hours: Create an xml file from Visual Studio for the tasks dropdown as secondary data source And paste the contents below the xml node created by VS: <tasks> <task> <type>SharePoint Development</type> <value>SharePoint Development</value> </task> <task> <type>SharePoint Designer</type> <value>SharePoint Designer</value> […]