Please feel free to provide feedback or file bugs here.

Bug: PowerShell ISE 'The handle is invalid'

Bug: PowerShell ISE 'The handle is invalid'

Custom C# binary module works without issue via Powershell.exe, but when attempting to run the exposed cmdlets via Powershell_ise.exe you immediately get an error 'The handle is invalid' and the execution fails.

When attaching Visual Studio to the ISE process to attempt debugging, it informs you that the failure occurs outside of the code base (not part of the managed code).

Have this issue on Windows 10 / Server 2016 with Powershell 5.0 and 5.1.

Mirrored the Powershell.exe.config to Powershell_ise.exe.config to rule out a configuration issue, and that yields no deltas.

1 vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Chris Henderson shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base