20 August 2008
from the 'geeks of the world, unite' dept:
Arrgh. I've spent the last two days wrasslin' with the idiosyncrasies of Sharepoint / MOSS 2007, trying to deploy the Microsoft Enterprise Library / Logging Application Block. I'd chosen the tool to "save time" (ha!) in developing a reusable logging tool, that can log to the EventLog, a flat file, a DB, etc etc ... and it works great. But good luck trying to get it to work in a SmartPart or web part or user control in SharePoint.Or, read on.
Basically you have to get SharePoint to see the assemblies. I'm using the Enterprise Library 3.1 (May 2007). So I installed the download on the SharePoint server (you may be able to just copy the assemblies you need, but what the heck). Then I copied the DLLs that the web controls reference from the Enterprise Library's /bin folder into the GAC (you should know how to do this), making note of the PublicKeyToken, version numbers, etc.
The hairy part was figuring out what exactly needed to go into the SharePoint site's web.config file (located in %wwwroot%/wss/VirtualDirectories/80). Here's what I had to add, and where:
<configuration>
<configSections>
<section name="loggingConfiguration"
type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings,
Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
</configSections>
<SharePoint>
<SafeControls>
<SafeControl Assembly="Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Practices.EnterpriseLibrary.Common" TypeName="*"
Safe="True" AllowRemoteDesigner="True" />
<SafeControl Assembly="Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Practices.EnterpriseLibrary.Logging" TypeName="*"
Safe="True" AllowRemoteDesigner="True" />
<SafeControl Assembly="Microsoft.Practices.ObjectBuilder, Version=3.1.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" Namespace="Microsoft.Practices.ObjectBuilder" TypeName="*"
Safe="True" AllowRemoteDesigner="True" />
</SafeControls>
</SharePoint>
<system.web>
<securityPolicy>
<trustLevel name="WSS_Medium"
policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\config\wss_mediumtrust.config" />
<trustLevel name="WSS_Minimal"
policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\config\wss_minimaltrust.config" />
</securityPolicy>
<compilation batch="false" debug="false">
<assemblies>
<add assembly="Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="Microsoft.Practices.ObjectBuilder, Version=1.0.51206.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
</assemblies>
</compilation>
<trust level="WSS_Minimal" originUrl="" />
</system.web>
<loggingConfiguration name="Logging Application Block" tracingEnabled="true" defaultCategory=""
logWarningsWhenNoCategoriesMatch="true">
{copy this from your VS.NET web.config}
</loggingConfiguration>
</configuration>
Hope this helps you ... please not that this is not a complete web.config, it's just the new bits that need to be added.
After that, an iisreset, and things were kickin'. YMMV.
19 August 2008
from the 'funniest thing i've seen today' dept:
I haven't been blogging much these days, 'tis true. But rather than blame the MCATs, I give you ...
I have been doing this very thing all summer. God bless you, xkcd, God bless you.
04 August 2008
from the 'where in the world' dept:
Coming to you live, from ... well, from after Lollapalooza. :) I'm sitting in O'Hare waiting for a plane that isn't there, hoping I can get home sometime today.So yeah, the concert. Always a fun way to spend three days with my sister (a new family tradition: sweating to the music!), but this time I also got to see Masha & her minion, Eric and Ali-moo, and Scrod and Andra (surprise!). Music is always better with friends and family (except the Doors; listen to them alone, in the dark).
The highlight was of course Trent with his Nine Inch Nails. I rarely have my face actually melted, but this did the trick. The most energy, the most hardcore, the best lights and a crowd that was actually manageable. You could mosh if you wanted or you could just sit and throw hands in peace. Thankfully I had held a spot next to the sound booth from 4pm until the 8pm start! NIN played opposite Kanye West; I'm sure Kanye performed well for the five people that were at his end of the park.
While jamming out to NIN, sis spied a feinting concertgoer ... so over the barrier I went. Turns out she was mildly dehydrated, overheated a bit, and very, very lightheaded. The event staff (who had no medics in the booth, even though the crowd was so tight that no medics could get through) was glad for the help, as was the patient. Hmpf, and I thought I was going to have to give up a weekend of EMS for the concert! :) I was glad to help her out.
Other highlights of the show (did you check my Twitterfeed?) were the Toadies, Black Joe Lewis, the Raconteurs, Manchester Orchestra ... Suprises for me (and must-buy music) were: Flogging Molly, Serena Ryder, Rogue Wave, Okkervil River, Devotchka, Dierks Bently, and Duffy. Rage Against the Machine were proper good, if a bit old (they kept asking fans to back up ... what are they, afraid of a pit now?), and Radiohead was a snoozefest. Still, money well spent for great tunage! It's great to know there's new music out there I can still appreciate. Haven't had to trade up to Perry Como yet.
Now, if I can just get these O'H4re and jetBlu3 iceholes to stop being such farging piscies and learn how to land a plane and put me on it. Fat chance. Oh noes, rain! We don't like to get our airplane tires wet! Ground stop!
And finally, on my hate list for today is Boingo. Unlike real airports, O'Hare makes you pay, and their butt partner Boingo goes so far as to force you to sign up for their service and even DOWNLOAD their CRAP SPYWARE. You are on notice, Boingo, you bl0w the g0at.
25 July 2008
from the 'funniest thing i've seen today' dept:
Wowz ... my lolz (posted weeks ago) finally made it onto lolcats ... go give me cheezburger! I took it on July 5 down in DeeCee. The cat what's lit up is Dagny, and Horace is examining the dot.
from the 'in other moos' dept:
So I went in to the dentist this morning (Bad Matt! No flossing! Shame!) and other than having someone else floss my teeth for the first time (a little creepy, but luxury all the same) it was a non-event. Now my choppers are all sparkly and there's actually a gap between them. :) Oh, there was news though.This week I bought Batman: Gotham Knight off iTunes, to have something to watch when bored between jobs on the bus. It's an animated set of shorts which are set in the current Batman movie milieu ... turns out they're [a] awesome and [b] wonderful for on the subway as well. I recommend, I commend again. Go buy.
Second, after spending way too much time following Felicia Day on Doc Horrible and Twitter, I decided to go check out her own web series, the Guild. Tres funny and very easy to digest at 2 - 4 mins per webisode. Go check them out ... and when you're done, view the awesome DDR-enabled thank-you first-season follow-up video. It reminds me of many nights at Duck playing games with me mateys ...
21 July 2008
from the 'in other moos' dept:
I gush, I gush. I've mentioned it before but I can't stop thinking about Neil Patrick Harris, Nathan Fillion, and Felicia Day in Joss Whedon's latest opus. Bought it on iTunes today and I'll buy the DVD if/when it comes out. Originality and fun like this must be rewarded. Spend! Spend on Joss! Spend now!
17 July 2008
from the 'in other moos' dept:
Okay, the avatar business still looks kind of cheesy, but 1 vs 100 sounds like a fun way to waste time, and who doesn't like making avatars. Some additional news here, along with avatar-construction video ... I'm stoked that we get Resident Evil 5, and a new South Park game, and a Portal follow up (the cake will probably still be a lie). You're in the Movies sounds fun, but the EyeToy could have done this a while ago ... but what's huge for the Xbox scene is we will soon be able to do Karaoke to our iPod songs, with Lips. It looks good.The RE5 trailer looks good. Going to have to buy that one ...
from the 'in other moos' dept:
Ugh. So here's a video of what the next iteration of the Xbox 360 dashboard will look like. I admit, I like the Netflix partnership, since I'll be giving up cable next year ... and the gaming-by-appointment looks good as well. But why does it have to look like the iTunes? Penny Arcade sez it looks like the wii, but I don't know what the Wii looks like ... still, there's a high suck factor. Sigh.
09 July 2008
from the 'where in the world' dept:
Pics from the 4th of July weekend (in DC) are up! Rather than posting the 276 I took, I think I'll start limiting it to the good ones. :)
08 July 2008
from the 'motomonkey' dept:
Dream big! A fellow has turned a 1986 Honda VFR into an electric vehicle. Sure, the range is low (< 20 miles) but it's on old/free batteries so this will improve easily. I love the fact that a few guys in a garage have built a solution in 8 months, that the manufacturers won't touch ...


