Why win_chocolatey module fails to install packages with error "Unhandled exception while executing module: Method invocation failed"

Solution Verified - Updated -

Issue

  • win_chocolatey module fails to install packages with error "msg": "Unhandled exception while executing module: Method invocation failed because [System.Collections.Generic.List1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]] does not contain a method named 'new'."

Environment

  • Red Hat® Ansible Automation Platform

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content