Hi, I'm attempting to use a custom webpart within a Sharepoint 2007 site. I'm also ideally hoping to use Code Access Security so to avoid putting the dll's in the GAC. The webpart works fine on it's own (ie without logging) although I would ideally like to add in the Microsoft.Practises...