Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred while enumerating through a collection: Collection was modified; enumeration operation may not execute.. #538

Open
jaumealg opened this issue Aug 3, 2023 · 1 comment

Comments

@jaumealg
Copy link

jaumealg commented Aug 3, 2023

Hi,
We were using a script with version 2.1 on a former server now we changed to a new server and installed version 3.0.8. Now with the same script we get this error. Any idea?

An error occurred while enumerating through a collection: Collection was modified; enumeration operation may not
execute..
At C:\Program Files\WindowsPowerShell\Modules\Posh-SSH\3.0.8\Posh-SSH.psm1:977 char:9

  •         $result
  •         ~~~~~~~
        + CategoryInfo          : InvalidOperation: (System.Collecti...SH.SftpSession]:Enumerator) [], RuntimeException
        + FullyQualifiedErrorId : BadEnumeration
@darkoperator
Copy link
Owner

darkoperator commented Aug 3, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants