# Wednesday, 19 November 2003

The code was all working just fine in test (heh, heh), but in production, suddenly we were getting

exception: System.IO.FileNotFoundException:
File or assembly name ox0vcwlz.dll, or one of its dependencies, was not found.  File name: "ox0vcwlz.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) 

Very sad.  Even more interesting was that on each run, the assembly name was different.  OK, probably the XmlSerializer then.  But why did it work in test, and not under other conditions. 

It all became clear when we logged the full exception...  Fusion says:

=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\WINNT\TEMP\ox0vcwlz.dll
LOG: Appbase = D:\Program Files\XXX
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINNT/TEMP/ox0vcwlz.dll.

Ah ha!  Turns out the user context we were running under didn't have permissions to the c:\winnt\temp directory.  Ouch.  An easy fix, but not one that was intuitively obvious, at least to me.  I knew that the XmlSerializer created dynamic assemblies, but I didn't know they had to be persisted to disk. 

Something to think about.

Work | XML
Wednesday, 19 November 2003 13:50:00 (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [3]  | 
# Friday, 14 November 2003

A few brief tidbits I couldn’t resist mentioning:

 

Update:

Friday, 14 November 2003 09:06:53 (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [0]  | 
# Thursday, 13 November 2003

OK, I thought ’97 Bonnie & Clyde was an incredibly disturbing song when Eminem sang it on the Slim Shady LP.  However, I didn’t appreciate how disturbing it really was until I heard Tori Amos’ version from Strange Little Girls.  Although her rendition is done beautifully, YUCK!!  I think I’m going to have to floss my brain and hope I never hear it again. 

Update: I realize I probably should have explained for those not familiar with the works of Eminem and/or Tori Amos but I just can't bring myself to do it.  Too disturbing.  Sorry.

Thursday, 13 November 2003 10:34:02 (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [0]  | 
# Wednesday, 12 November 2003

Sigh. 

Where to start?  I was disappointed in the new Matrix movie, which while not surprising, is still disappointing. :-) 

At least it wasn’t bogged down in the overly complex, pretentious philosophizing of the second film.  Instead, it was bogged down by a completely predictable plot, and constant sentimentality.  It’s almost as if the characters, aware that this is their last film, are sad about it (to the point of being maudlin) throughout the whole film.  Or maybe the actors themselves were sad because now they’ll have to get real jobs.  Anyway, I think I almost liked the pretentious philosophy better than the maudlin sentimentality.  I don’t want to spoil the ending for anyone who hasn’t seen it yet, but they way the last scene was filmed reminds me a lot of the last scene in the old BBC production of A Hitchhiker’s Guide to the Galaxy.  Not what I would have anticipated for the third film of a trilogy known for wild action and innovative science fiction.  But I guess those days are gone.  While the first film was startling, the third film was pretty much just a war movie, and for a war movie to be any good, it’s got to be something different.  It wasn’t.  At least IMHO.

It sounds like Rory had more fun clubbing baby seals

Home | Movies
Wednesday, 12 November 2003 13:35:16 (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [0]  | 
# Saturday, 08 November 2003

I’d have to agree with Clemens that one of the coolest parts of .Net is custom attributes.  I’m constantly amazed at how much you can achieve through the judicious use of attributes.  Best of all, since they are much like attributes (should be) in XML, you can carry them over from one to the other.  For example, you can add some extra attributes to an XML Schema document in the namespace of your choice, then (if you want to write your own xsd.exe) you can carry those attributes forward into your .Net classes.  Based on those custom attributes, you can apply aspects to your objects at runtime, and basically make the world a better place.  

When all that work is finished, you can influence the behavior of your data objects at runtime just be tweaking the schema that defines them.  At the same time, since you’re starting with schema, you get lots of fun things for free, like XmlSerializer and other bits of .Netty goodness.  

I’m a bit to excited to go into all the details right now, but suffice it to say the prospects for code generation, attributes and aspects are pretty amazing.  Once we get the work out of the way, the rest is just business logic.  More business, less work. 

Say it as a mantra: “more business, less work  more business, less work…..”.  

Work | XML
Saturday, 08 November 2003 08:37:38 (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [0]  | 

This week, Corillian (my employer) sponsored a programming contest for employees.  What I thought was one of the coolest parts was that non-technical people were encouraged to join teams (of 2-4) to solve the programming problem by contributing their problem solving skills.  

Since the contest is over (although the results haven’t been announced yet) I can let the cat out of the bag.  It was a word search.  Given a dictionary of words, and a rectangular array of characters, find all the words from the dictionary that exist in the puzzle, in any direction.  

It was a total blast.  I was on a team with some folks I know from STEP, Dr. Tom (a real live doctor of computer science), and Darin (a hardcore ATL head) and Don (a QA engineer).  Much fun was had by all.  I haven’t had such pure geek fun in a long time.  I woke up the next morning still thinking about potential optimizations to our solution (which ended up being in C#).  I got to work to find email from Dr. Tom with some more suggestions. 

I thought it was a really great idea to get people thinking about hardcore programming problems, involve non-technical people, and just have a lot of fun coding.  I’ll be really interested to see all the solutions after the judging is complete.  

Kudos to Scott and Chris for coming up with the problem and the reference implementation.  

Saturday, 08 November 2003 08:22:55 (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [0]  | 

Unfortunately, I’ve yet to have the opportunity to meet Rory in person, although he was one of the brave souls who actually staid to listen to me speak at the Applied XML Dev Con this year.  I’m hoping to catch up with him if I ever make it to one of the Portland Nerd dinners.  That desire was fueled by the fact that, like Don, I think his take on the PDC is one of the funniest things I have every read.  I mean ever.  In my life.  Really. 

Running a close second is his jubilation at being mentioned on Don Box’s blog.  Luckily I was already sitting down when I read it. :-)

Saturday, 08 November 2003 08:02:25 (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [0]  |