The following is more a reference for myself so that I don't forget it. I've been battling with a build script that's being deployed using a WIX installer and get the following error.
Task "Web.WebSite.CreateVirtualDirectory"
error : Message = Exception from HRESULT: 0x80005000
The solution to the problem was pretty simple in my web installer I had put the name of the virtual directory of the project with a trailing backslash \website when all I should have done was quite simply put website.