Home

Recent

Use HostingEnvironment.MapPath

Jun 25, 2010

When running a service under IIS, the HttpContext.Current object is not available, so HttpContext.Current.Server.MapPath will fail.

fileName = HttpContext.Current.Server.MapPath(fileName);

The solution is to use Hosting.HostingEnvironment.MapPath instead.

fileName = System.Web.Hosting.HostingEnvironment.MapPath(fileName);

Custom Controls In ASP.NET

Feb 26, 2010

ASP.net has that neat little feature where all the controls can start with <asp:.  It makes it easy to code.  I had numerous custom controls and I always had to register the control on each page to use it.  Scott Guthrie had a great tip on how to register the controls in the web.config file so that it doesn’t have to be done in each page.More...

Windows Live Writer XMLRPC and BlogEngine.Net

Feb 26, 2010

BlogEngine.Net supports XMLRPC and the MetaWeblog API.  This allows it to support other tools like Windows Live Writer.  But where are the specifications for the API and WLW found?  I came across some interesting related links along the way in trying to figure out how to add proper slug support for pages in BlogEngine.Net.More...

Photography

Best Children’s Portrait Photographer

Oct 19, 2009

Andrea Joki is without a doubt the best child portrait photographer I’ve ever seen. She is located in Helsinki Finland, so you may have a way to travel to meet with her.  She does take occasional assignments in the United States and Australia.More...

11 Free Photo Editing Tools

Oct 16, 2009

The Guide To Art Schools has published a list of free photo editing software at The 11 Best Free Photo Editing ProgramsMore...

Nikon Lens Rentals

Mar 03, 2009

Before you spend nearly $2000 for a fantastic lens, you may want to rent it to see if it’s really worth it.  If you rent this for a week, you can rent this Nikon 70-200mm f2.8 for almost $10 / day. If you can’t afford to own all the Best High End Nikon Lenses, you can still borrow them for a few days for those special occasions when you need the perfect lens. More...