Fix “MissingAssembly” Errors of Test-SPContentDatabase in SharePoint 2013 Migration

Problem:During SharePoint 2013 migration, we ran the Test-SPContentDatabase cmdlet, and the output report contains several MissingAssembly errors! Category        : MissingAssemblyError           : TrueUpgradeBlocking : FalseMessage         : Assembly [DealEventEventhandler, Version=1.2.6.0, Culture=neutral, PublicKeyToken=b4122bae67581526] is referenced in the database [wss_content], but is not installed on the current farm. Please install any feature/solution which contains this assembly.Remedy         …

Read more

Add-Remove-Get Event Receivers in SharePoint with PowerShell

We usually use C# console application or feature activation code to register event receivers with the target list or library in SharePoint. At times, we may have to handle event receiver associations explicitly. Of course, there are some great tools (E.g. SharePoint Event Receiver Manager) to manage event receivers. However, in a…

Read more

Attach Event Receiver to Specific List Programmatically in SharePoint 2010

Recently, developed an Event Receiver to set Item Level permissions based on the list field “Visible to Visitors”. Event receiver binds with all document libraries using ListTemplateId element in Elements.xml.  Event Receiver to Set Item Level Permissions based on List Column Value How to Associate an Event Receiver with a List Programmatically…

Read more

Event Receiver to Set Item Level Permissions based on List Column Value

The requirement is to Set Item Level Permission on Document Library Items based on the field in the document library “Visible to Visitors”. The field “Visible to Visitors” is a Checkbox. Technically, When this column set to True, We’ll have to do nothing. When this column set to False, we’ll have to…

Read more

Event Receivers vs Workflows – Decide Which One to Use

As SharePoint Event Receivers & SharePoint workflows have a lot of similarities, Many people stuck on deciding which one to go with: Event Receiver or Workflow? event receiver vs. workflow in SharePoint is always tricky to decide. Differences Between SharePoint Event Receivers and SharePoint Workflows: 1. Event handlers Can’t be manually initiated…

Read more

Restrict File Types in SharePoint Document Library Upload using Event Receiver

Requirement: In a Project collaboration SharePoint site, had a requirement to allow users to upload only PDF files to a Document Library and prevent all other files from being uploaded. Solution: Our requirement is basically to prevent files from being uploaded other than PDF, isn’t it? So let’s jump to visual studio…

Read more

How to Create an Event Handler to Force Unique in SharePoint?

Long back, I did an Event handler to prevent duplicates in a SharePoint list. There is a another requirement of same kind now. This time, Let me do it with WSP builder. Requirement is simple – Prevent duplicate titles from a List. Hmm.., But in SharePoint 2010 this is an instinct feature,…

Read more

Fix “Missing Event Receivers” issue in SharePoint Migration

During SharePoint 2010 Migration, Preupgradecheck reported the issue of missing Event Receivers: The following event receiver assembly(s) are referenced by the content, but they are not installed on the web server So,  To resolve this issue we need to two steps: Get all list locations, where a particular event receiver is registered…

Read more