What can be the cause of the error when creating a web site via TeamCity, using MSBuild.ExtensionPack?
[MSBuild.ExtensionPack.Web.Iis7Website]: COMException: Invalid index. (Exception from HRESULT: 0x80070585)
TeamCity client machine:
Web server machine:
A previous task that deletes the current web site works OK. it is the Create task that fails:
<MSBuild.ExtensionPack.Web.Iis7Website TaskAction="Create"
MachineName="$(web-server)"
Name="$(web-name)"
Path="$(web-deploy-dir-local)"
AppPool="$(web-name)"
WindowsAuthentication="true"
Port="$(site-port)">
Also, the Create task works OK when run via another TeamCity Client on another machine.
Thanks.
I had the same exact problem, I fixed it doing this.
I hope this helps.
User contributions licensed under CC BY-SA 3.0