---
title: "Discussion on \"Octopus Script Step Error: \"Common Language Runtime detected an invalid program\"\" | Hashnode"
description: "Discussion on \"Octopus Script Step Error: \"Common Language Runtime detected an invalid program\"\". You might run into the following error when deploying with Octopus and one of your tasks is executing a C# script (ScriptCS) on the target machine.\n\nERROR: Script execution failed. [InvalidProgramException] Common Language Runtime detected an invalid..."
url: "https://hashnode.com/posts/octopus-scriptcs-error-common-language-runtime/628e2a4f43220290a7eea9bf"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Octopus Script Step Error: "Common Language Runtime detected an invalid program"](https://blog.krusen.dk/octopus-scriptcs-error-common-language-runtime?utm_source=hashnode&utm_medium=feed)

You might run into the following error when deploying with Octopus and one of your tasks is executing a C# script (ScriptCS) on the target machine. ERROR: Script execution failed. \[InvalidProgramException\] Common Language Runtime detected an invalid...

Sep 7, 2017 · 1 min read · blog.krusen.dk  
Read the article

## Written by

[Søren Kruse](https://hashnode.com/@Krusen)

@Krusen · Odense, Denmark

  
[View profile](https://hashnode.com/@Krusen)

Tech Lead @ IMPACT Commerce

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
