Variable declaration leads to InvalidProgramException

35 views
Skip to first unread message

Michael Samoylenko

unread,
Nov 23, 2016, 8:59:46 AM11/23/16
to scriptcs
I am using scriptcs for some custom deploy scripts in octopus and on some hosts it fails with error:
Script execution failed. [InvalidProgramException] Common Language Runtime detected an invalid program. After some experiments, I found that even a simple script - just declaring a variable, fails with that error. The same goes for running scripts from REPL too.
But if I enclose my script in a block - {...} everything works just fine.
Reply all
Reply to author
Forward
0 new messages