Category Archives: SharePoint

Get CAS IPermission for exception

If you’re working on a SharePoint solution that requires a custom code access security (CAS) policy, the following is an easy way of determining the permission(s) you need to add to the config. For this to work, you need to … Continue reading

Posted in Security, SharePoint | Tagged , | Leave a comment

Validation of viewstate MAC failed in AddWrkfl

I recently added a delegate control to a SharePoint solution. The delegate control was used to dynamically insert a custom user control into the master page. Part of the functionality of this control required the use of hidden fields. Everything … Continue reading

Posted in SharePoint, Workflow | Tagged , , | Leave a comment

Unable to set value of the property ‘aSettings’

I developed a page, inheriting from LayoutsPageBase which was being displayed in a modal dialog using JavaScript similar to the following: <script type="text/javascript"> function DisplayCustomPopupPage() { var options = SP.UI.$create_DialogOptions();   options.url = "http://urltocustompage/page.aspx"; options.title = "Popup Page"; options.allowMaximize = … Continue reading

Posted in JavaScript, SharePoint | Tagged , | 2 Comments

Start SharePoint Timer Job Script

I’ve written a PowerShell script that starts a SharePoint timer job, which is useful if you do a lot of work that relies on certain timers firing and don’t want to have to keep going into the Central Administration site … Continue reading

Posted in SharePoint | Tagged , | 2 Comments

Get ListTemplate and Create New List in PowerShell

A PowerShell related post today: To create a list or library in SharePoint, you can do the following: $web = Get-SPWeb "http://serverUrl" $web.Lists.Add("List Title", "List description", "Template Name")$web = Get-SPWeb "http://serverUrl" $web.Lists.Add("List Title", "List description", "Template Name") Now, say you … Continue reading

Posted in SharePoint | Tagged , | 1 Comment