Wednesday, November 19, 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.

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

A few brief tidbits I couldn’t resist mentioning:

 

Update:

Friday, November 14, 2003 5:06:53 PM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [0]  | 
 Thursday, November 13, 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, November 13, 2003 6:34:02 PM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [0]  |