Archive for tag: Visual Studio

FormatException: Guid should contain 32 digits with 4 dashes...

While doing some development on SharePoint solution deployment I encountered a strange behaviour. The following code gave me the "FormatException:Guid should contain 32 digits with 4 dashes" error:

SPFarm.Local.Solution["demo.wsp"].DeployedWebApplications;

Strange as I'm not even using a GUID in my code here. So a little breaking down led me to the conclusion that if you call the DeployedWebApplications property on a solution that is globally deployed you get this error.

"Copy local" on assemblies doesn't work

Working on a project I got the problem that one of the binaries was not compiled to the bin/debug folder. Suddenly it hit me... I had that assembly also in the Global Assembly Cache. So it seems Visual Studio doesn't see the need to copy it to local as it is already available in the GAC.