Error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
- Dominant language
- C#
- Stars
- 11.5k
- Forks
- 960
- PR merge metrics
- No merged PRs in 30d
Description
### Checklist
- [X] I have verified this is the correct repository for opening this issue.
- [X] I have verified no other issues exist related to my problem.
- [X] I have verified this is not an issue for a specific package.
- [X] I have verified this issue is not security related.
### What You Are Seeing?
When I try to run ```choco``` or ```choco --version``` or ```choco list``` after I upgraded from chocolatey 1.40 to 2.0.0 chocolatey does not see to start up at all. All I get is a single line of output saying:
```
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
```
I will include the .NET framework install-info from that Windows server 2016 install.
[choco.summary.log](https://github.com/chocolatey/choco/files/11859366/choco.summary.log)
[chocolatey.log](https://github.com/chocolatey/choco/files/11859369/chocolatey.log)
[asoftreport.txt](https://github.com/chocolatey/choco/files/11859362/asoftreport.txt)
[dotnetversions.txt](https://github.com/chocolatey/choco/files/11859364/dotnetversions.txt)
### What is Expected?
I expect chocolatey to start up and give me the helpscreen or the version number or the list of installed packages. But instead I get a single line saying:
```
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
```
### How Did You Get This To Happen?
I ran all of these cmds
```choco```
```choco --version```
```choco list```
### System Details
* Operating System: 10.0.14393.0
* Windows PowerShell version: 5.1.14393.5582
* Chocolatey CLI Version: only gives above error
* Chocolatey Licensed Extension version: only gives above error
* Chocolatey License type: no license purchased - free edition
* Terminal/Emulator: windows powershell
### Installed Packages
```bash
can't show installed packages as it errors out
```
### Output Log
```bash
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
```
```
### Additional Context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.