Tag Archives: SharePoint

Workaround for Content-Disposition bug in ASP.NET, SharePoint

A simple HTTP Module that implements a workaround for a common bug in ASP.NET applications that prevents downloading of files with comma in the filename.

SharePoint List Performance (or how I saved 94%)

In a recent performance test session, I had created a thousand documents in a document library. They all had a 20 custom metadata fields filled out with data. The unit under test read all this data along with the common file information like this: SPUser user = listItem.File.CheckedOutByUser; result.CheckedOutBy = user != null ? user.LoginName […]

SharePoint web.config modifications

WSP deployment packages is the MSI for SharePoint. It really helps server administrators manage deployment as well as developers packing functionality and content in compact packages. With the introduction of Visual Studio 2010 it became easier to produce all kinds of WSPs right in your favorite dev env. Custom web.config modifications is one aspect Visual […]

Powershell script for copying sp webs to a new site collection

I often see SharePoint farms that contains a single huge root site collection that contains e.g. project team sites and issues sites. Of course that leads to degraded performance and maintainability issues like handling 100GB+ backups. Microsoft recommends keeping content databases below 25GB.

Recover from SharePoint HOS bug

Some SP* API objects like SPApplication have a hierarchial object store for persisting objects, which is great for e.g. timerjobs . The propertybag can serialize strings, value types and specific SharePoint objects for persistence. But the indexer’s setter has a bug that accepts ANY .net object without any error. The next time you access the […]

Follow

Get every new post delivered to your Inbox.