Working easier with custom CAS policies

Working with custom CAS policies is not trivial. Many developers find it challenging to figure out what permissions their code should have, so instead deploying safely to Web Application (BIN) they choose to deploy their assemblies to the Global Assembly Cache (GAC) granting their code full trust. There is however one trick that makes it very easy to find out what permissions you should grant to your code. Find out how to craft your custom CAS policies the easy way.

Easier working with SharePoint Project Items with Mavention SPI References

Visual Studio 2010 SharePoint Developer Tools improve the development process on the SharePoint 2010 platform. By simplifying the packaging process they allow you to focus on the development rather than the packaging plumbing. Unfortunately, when working with larger solutions, it might get challenging for you to track which SharePoint Project Items are used where. Find out how to easier track the references to SharePoint Project Items with Mavention SPI References.

“The name ‘InitializeControl’ does not exist in the current context” - Visual Web Part (Sandboxed) bug and how to fix it

A while ago Microsoft provided us with Visual Studio 2010 SharePoint Power Tools – a set of productivity extensions for the Visual Studio 2010 SharePoint Developer Tools. One of the improvements shipped with the Power Tools is the Visual Web Part (Sandboxed) that – as the name says it – allows you to both benefit of the great design capabilities of Visual Web Part while still being able to deploy it to Sandbox. Unfortunately if your Sandboxed Visual Web Part will get too large things won’t be working as expected anymore.