Bootstrap.Octopus.Features.IISWebSite_BeforePostDeploy.ps1:126 char:8 - Error occurs while deploy nuget

when i deploy nuget packet source in IIS following error occurs :

Unexpected token ‘:’ in expression or statement.
Error 11:49:19
At C:\Octopus\Applications\RND\hsmain\1.0.0_2\Bootstrap.Octopus.Features.IISWeb
Error 11:49:19
Site_BeforePostDeploy.ps1:126 char:8
Error 11:49:19

  • “Id”: <<<< “ActionTemplates-130”,
    Error 11:49:19
    • CategoryInfo : ParserError: (::String) [], ParseException
      Error 11:49:19
    • FullyQualifiedErrorId : UnexpectedToken

How can i fix this? i have also attached screen snap and servertask raw here for your reference…

ServerTasks-171.log.txt (45 KB)

Hi Harivignesh,

Thanks for getting in touch! Thanks for supplying the logs, but I think I will need just a bit more information to help you.
Are you able to supply a screenshot for that specific step’s process from the project process screen?
I would like to see the settings you have for that step.

Thanks!
Vanessa

Hi Vanessa,

   Thanks for your response.I did attached my project process steps for your reference.

Hi Harivignesh,

Thanks for sending those through. I believe the error is being caused by your Additional transforms.
The syntax it is looking for is like the following: Web.Release.config => Web.config
But you have some variables in there. Please see my attached screenshot.

Hope that helps!
Vanessa