November 2007 Entries
I had a bit of trouble installing .NET 3.5 recently. My machine had decided to install some Windows Updates at the same time as installing .NET 3.5 and I think the combination of the two caused the entire machine to fall over in a heap. One by one all my applications stopped responding, including ctrl+alt+del, so I resorted to hitting the Big Reset Button, but this left my 3.5 install in a very broken state. It wasn't installed and it couldn't be installed - each time I tried, Setup threw an exception.
I looked through all the installed programs, trawled through all the...
I had an interesting bug to fix this week, discovered in the context of a SharePoint application, but that equally affects anyone producing content for display on the web. The client I've been working with recently has been having trouble displaying marketing images from a SharePoint picture library. Given that the picture library in question was customised quite heavily (to include custom columns) as part of the solution I've been working on, my first assumption was that there was an error in the provisioning code. The library in question was working perfectly with many of their images - photos of...
I recently turned off Vista User Account Control on my laptop. I'd left it on because I figured I'd give it a go and see whether I could fit in to the new Vista way of doing things. It was when I was clicking "OK, OK, Just Get On With It" on almost every dialog that I realised that this was not a good idea. One of those popups was a Windows Firewall message and I'd not looked to see what I'd just let through.
I'm actually behind a myriad of firewalls and natty things here, so Windows firewall isn't...
It's been a hectic few weeks - my first contract has been a case of diving in at the deep end and pulling together some fun SharePoint stuff on a project with a very pressing deadline. Phase 1 is now complete, so what have I been up to, and what have I learned?
1. If you import a bunch of users from Active Directory, you can create a MySite for each user before they log in using the following code:
SPSite parentSite = new SPSite(_siteUrl);
UserProfileManager profileManager = new UserProfileManager(ServerContext.GetContext(parentSite));
foreach (UserProfile p in profileManager)
{
if (p.PersonalSite == null)
p.CreatePersonalSite();
}
2. When developing features...