chocolatey / chocolatey-licensed-issues

Issues for Licensed Editions of Chocolatey
19 stars 13 forks source link

install/upgrade - "Could not load file or assembly 'chocolatey, Version=0.10.9.0'" warning from package using Start-ChocolateyProcessAsAdmin #35

Open flcdrg opened 6 years ago

flcdrg commented 6 years ago

What You Are Seeing?

Warning logged in CLIXML text about chocolatey.licensed.dll trying to load chocolatey, Version=0.10.9.0

What is Expected?

No warning

How Did You Get This To Happen? (Steps to Reproduce)

Using Chocolatey 0.10.8 Pro Upgrading NuGetPackageExplorer package from 3.x to 4.0

Output Log

<S S="debug">Loading community extensions</S>
<S S="debug">Importing 'C:\ProgramData\chocolatey\extensions\chocolatey\chocolatey.extensions.psm1'</S>
<S S="verbose">Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey\chocolatey.extensions.psm1'.</S>
<S S="debug">Loading 'chocolatey.licensed' extension.</S>
<S S="verbose">Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey\chocolatey.licensed.dll'.</S>
<S S="warning">Import failed for 'C:\ProgramData\chocolatey\extensions\chocolatey\chocolatey.licensed.dll'.  Error: 'Could not load file or assembly 'chocolatey, Version=0.10.9.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb' or one of its dependencies. The system cannot find the file specified.'</S>
<S S="debug">License type set to Professional</S>

┆Issue is synchronized with this GitLab issue by Unito

ferventcoder commented 6 years ago

Howdy - what version of chocolatey.extension do you have installed?

flcdrg commented 6 years ago

1.12.10

On 21 January 2018 at 09:27, Rob Reynolds notifications@github.com wrote:

Howdy - what version of chocolatey.extension do you have installed?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/chocolatey/chocolatey-licensed-issues/issues/35#issuecomment-359208702, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXe66Bzqxv-EPPIrMQCxqzRbOqyii-Eks5tMm9HgaJpZM4RlmPy .

flcdrg commented 6 years ago

Also reproduced this with choco install nugetpackageexplorer (as a clean install)

ferventcoder commented 6 years ago

@flcdrg I'd imagine the annoying warning and all would go away if we were to get to the bottom of the issue with CLIXML calls and their output not coming in on stdin (it comes in on stderr because of Warning, Debug, and Verbose streams being used in PowerShell).

flcdrg commented 6 years ago

That is true, though I guess it is curious that chocolatey.extension appears to have been built against a newer version of chocolatey than currently released.

ferventcoder commented 6 years ago

;)