Run .Net Script activity fails for simple PowerShell script, why?
When the Run .Net Script activity fails, sometimes the error message is not very informational. Someone showed me the following exception (screenshot of simplified repro): The error summary does not say what “this function” is, what “the current host” means, and more importantly which part of the script triggers the unimplemented function so that we can workaround it. As a software engineer, I want to know whether it is the script’s fault or a bug in the activity, and how to fix it if it’s a bug. Here we will see how to use windbg to get the stack trace when the exception is raised. Which process to debug?
Original post:
Run .Net Script activity fails for simple PowerShell script, why?


