Monday, July 1, 2013

Internet Information Services is not installed

I found this solution from the web. Run the following statements in command prompt

REF:  http://sharepointlearnings.blogspot.com/2009/12/iis-not-installed-error-when-trying-to.html

start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;
start /w pkgmgr /iu:IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;
start /w pkgmgr /iu:IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;
start /w pkgmgr /iu:IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;
start /w pkgmgr /iu:IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;
start /w pkgmgr /iu:IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;
start /w pkgmgr /iu:IIS-RequestFiltering;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;
start /w pkgmgr /iu:IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-IIS6ManagementCompatibility;
start /w pkgmgr /iu:IIS-Metabase;IIS-WMICompatibility;WAS-WindowsActivationService;WAS-ProcessModel;
start /w pkgmgr /iu:WAS-NetFxEnvironment;WAS-ConfigurationAPI;WCF-HTTP-Activation;
start /w pkgmgr /iu:WCF-NonHTTP-Activation

Wednesday, May 15, 2013

Workflow status columns not showing up in ListView.

This is what I found so far on the web. 

"This happens because the list can only show a certain number of each type of column and those status columns get cut off when you start adding lookup columns or reference columns and others."

Wednesday, April 3, 2013

How to replace underlying DLL for a custom field

Stay Tuned!

There are three component for a deployment of a field


  1. Put your .ascx @ rootdir:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES
  2. Replace your xml file with the newly created dll @ rootdir:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML
  3. Put your dll in the GAC @ rootdir:\WINDOWS\assembly  

SharePoint Large Lists and lookup column filters

The solution is to created a number field and create a workflow to copy over.

sharepoint 2010 lockManager: Error during locking Web. The Web is locked.

If you try to delete parent item of a child item, from child item's ItemDeleting Event receiver  you start hitting the performance and get the following error:

sharepoint 2010 lockManager: Error during locking Web. The Web is locked.

This scenario occurs if you have Enforce relationship behavior enabled in lookup column of the item getting deleted.

Solution

  • Either turn off the 
  • ItemDeleting  to ItemDeleted.

Friday, February 22, 2013

SharePoint 2010 Linked Data Source item link field

For Direct Page:

<a href="{@FileDirRef}/DispForm.aspx?ID={@ID}" ONCLICK="GoToLink(this);return false;"><xsl:value-of select="@Title" /></a>


For Popup:


<a href="javascript:OpenPopUpPage('{@FileDirRef}/DispForm.aspx?ID={@ID}');"><xsl:value-of select="@Title"/></a>

Monday, February 18, 2013

How to cancel all existing Work Flows on an item

 // Terminate all existing In-Progress workflows.
 foreach (SPWorkflow workflow in item.Workflows)
 {
   SPWorkflowManager.CancelWorkflow(workflow);
 }