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

Chocolatey Licensed is unable to find 0.9.10.x (only 0.9.10.0) #814

Closed
ferventcoder opened this issue Jun 18, 2016 · 1 comment
Closed

Comments

@ferventcoder
Copy link
Member

Once you upgrade to 0.9.10.1, you start running into the following errors:

Error when registering components for 'chocolatey.licensed.infrastructure.app.registration.ContainerBinding':
 Could not load file or assembly 'choco, Version=0.9.10.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Error when setting configuration for 'chocolatey.licensed.infrastructure.app.builders.ConfigurationBuilder':
 Could not load file or assembly 'choco, Version=0.9.10.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Chocolatey v0.9.10.1 Professional

This is unfortunately due to the version shift, but the licensed version had not tested against anything other than 0.9.10.0 up until this point.

@ferventcoder
Copy link
Member Author

0.9.10.2 is going through automated review now and should be available within the next 2 hours.

ferventcoder added a commit that referenced this issue Jun 19, 2016
You may receive the following error when upgrading to choco v0.9.10.1
with a licensed version:

~~~sh
Error when registering components for
'chocolatey.licensed.infrastructure.app.registration.ContainerBinding':
 Could not load file or assembly 'choco, Version=0.9.10.0,
Culture=neutral, PublicKeyToken=79d02ea9cad655eb' or one of its
dependencies. The located assembly's manifest definition does not match
the assembly reference. (Exception from HRESULT: 0x80131040)
Error when setting configuration for
'chocolatey.licensed.infrastructure.app.builders.ConfigurationBuilder':
 Could not load file or assembly 'choco, Version=0.9.10.0,
Culture=neutral, PublicKeyToken=79d02ea9cad655eb' or one of its
dependencies. The located assembly's manifest definition does not match
the assembly reference. (Exception from HRESULT: 0x80131040)
Chocolatey v0.9.10.1 Professional
~~~

This is due to allowing for any version of choco, but binding to the
one the licensed version is built against. Use assembly
resolution, similar to how the API does, to allow the choco reference
to not be version specific.
ferventcoder added a commit that referenced this issue Jun 19, 2016
* stable:
  (version) 0.9.10.2
  (doc) update CHANGELOG/nuspec
  (GH-758) Ensure log path exists
  (GH-813) Fix double chocolatey logging folder
  (GH-813) Shorten Template default log path
  (doc) update default options help messages
  (maint) Don't log creation of folder
  (maint) formatting / add message consistency
  (GH-814) Ensure any version of choco
  (GH-811) Skip resource / licensed assemblies
  (version) 0.9.10.1
  (doc) update CHANGELOG/nuspec
  (GH-810) Install of choco sets exit code
  (GH-812) Upgrade 7zip to 16.02 to address CVEs
  (doc) Note functions Calling Set-PowerShellExitCode
  (GH-810) Fix - Cannot bind parameter exitCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants