fixed a few issues which was blocking the web api from being deployed to IIS.