Fix for #158, error when trying to run in IIS Integrated mode.