Code Fixes for IIS7