I was looking for something like Server.MapPath in the ASP.NET realm to convert the output of Assembly.GetExecutingAssembly().CodeBase into a file path with drive letter.
Location can be different to CodeBase.
E.g. for files in ASP.NET it likely to be resolved under c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET.
See "Assembly.CodeBase vs. Assembly.Location"
http://blogs.msdn.com/suzcook/archive/2003/06/26/57198.aspx