I am using TFS as a CI tool and using Octopus to deploy my C# Web API project. Build artifacts package pushing and creating release successfully from TFS to octopus side, But When try to deploy for IIS in Assembly server, It's getting error as like this, Please check attached error log.
Asked
Active
Viewed 434 times
-1

Andy Li-MSFT
- 28,712
- 2
- 33
- 55
-
The error message indicated that the web site "`$SiteName`" does not exist. Seems the variable "`$SiteName`" cannot be parsed in Octopus . So, you can try using the site name directly to check if that works for you. – Andy Li-MSFT Mar 06 '18 at 09:37
-
"cannot be parsed in Octopus" Means ??? I need to deploy IIS web application in IIS environment – Thisal Thalagahawatta Mar 06 '18 at 10:56
-
It means there is a problem with getting the variable value in Octopus. Please have a read [Debug problems with Octopus variables](https://octopus.com/docs/support/debug-problems-with-octopus-variables). – Alex M Mar 06 '18 at 11:35
1 Answers
1
The line that's throwing that error is this one in Calamari. That function Assert-WebsiteExists
only gets invoked when you try to do one of the following:
A) Deploy a
Web Site
in IIS under an already existingWeb Application
.B) Deploy a
Virtual Directory
in IIS under an already existingWeb Application
.
Both of the above will fail if the parent Web Application
(in your case WKLS.Mockservice
) doesn't exist before you run that step, which is apparently what's happening in your case.
If you are trying to create the Web Application
from that same Octopus deployment process, then you should use this step. If you want to use a Web Application
that already exists, then perhaps you just typed the name incorrectly?

Dalmiro Granas
- 671
- 1
- 4
- 11