I am trying to install the Breeze.Server.WebApi2 Nuget package, after updating my MVC packages to the current Nuget version (5.1.1) and I am getting the following error (below). Do I need to downgrade the MVC version to (5.0.0) in order to get the current Breeze WebAPI2 package to work?
PM> Install-Package Breeze.Server.WebApi2
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.OData (≥ 5.0 && < 6.0)'.
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Client (≥ 5.0.0)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 4.5.11)'.
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Core (≥ 5.0.0 && < 5.1)'.
Attempting to resolve dependency 'Microsoft.Data.OData (≥ 5.6.0)'.
Attempting to resolve dependency 'System.Spatial (= 5.6.0)'.
Attempting to resolve dependency 'Microsoft.Data.Edm (= 5.6.0)'.
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.WebHost (≥ 5.0 && < 6.0)'.
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Core (≥ 5.1.1 && < 5.2.0)'.
Attempting to resolve dependency 'Breeze.Server.ContextProvider (= 1.4.8)'.
Attempting to resolve dependency 'WebActivator'.
Attempting to resolve dependency 'Microsoft.Web.Infrastructure (≥ 1.0.0.0)'.
Installing 'Microsoft.AspNet.WebApi.OData 5.1.1'.
You are downloading Microsoft.AspNet.WebApi.OData from Microsoft, the license agreement to which is available at http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_ENU.htm. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'Microsoft.AspNet.WebApi.OData 5.1.1'.
Installing 'Breeze.Server.ContextProvider 1.4.8'.
Successfully installed 'Breeze.Server.ContextProvider 1.4.8'.
Installing 'WebActivator 1.5.3'.
Successfully installed 'WebActivator 1.5.3'.
Installing 'Breeze.Server.WebApi2 1.4.8'.
Successfully installed 'Breeze.Server.WebApi2 1.4.8'.
Install failed. Rolling back...
Install-Package : Updating 'Microsoft.AspNet.WebApi.Core 5.1.1' to 'Microsoft.AspNet.WebApi.Core 5.0.0' failed. Unable to find a version of 'Microsoft.AspNet.WebApi.WebHost' that is
compatible with 'Microsoft.AspNet.WebApi.Core 5.0.0'.At line:1 char:1
+ Install-Package Breeze.Server.WebApi2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
I ran into same issue the way i fixed is using this command
Install-Package Breeze.WebApi2.EF6 -DependencyVersion Highest
this allowed me to use the highest dependency version available.
please note this argument is available in nuget package manager in version later than 2.7.2
see link
http://docs.nuget.org/docs/reference/package-manager-console-powershell-reference
Related
I am trying to set up my project but getting the error regarding bundler. I am using Rails 4.2.11.3
Please have a look at the image.
You can use a specific older version of bundler as follows:
bundle _1.17.3_
If this doesn't resolve to problem, I'd need more information about the Gemfile and Gemfile.lock to understand how it's been "corrupted" into an invalid state of dependencies.
I am trying to install puppet-dashboard on a linux machine (EL 6). But this installation is blocked by a dependency on rubygems(rake). But i have this already installed on my machine.
please find the below details which might be helpful for showing me the way forward.
[admin#server ~]$ ruby -v
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
[admin#server ~]$ gem list
YAML safe loading is not available. Please upgrade psych to a version that supports safe loading (>= 2.0).
*** LOCAL GEMS ***
bundler (default: 1.16.1)
json (1.5.5)
rake (10.5.0)
below is what i see when i try to install puppet-dashboard
Loaded plugins: product-id, search-disabled-repos, security, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package puppet-dashboard.noarch 0:1.2.23-1.el6 will be installed
--> Processing Dependency: rubygem(rake) for package: puppet-dashboard-1.2.23-1.el6.noarch
--> Processing Dependency: ruby-mysql for package: puppet-dashboard-1.2.23-1.el6.noarch
--> Running transaction check
---> Package puppet-dashboard.noarch 0:1.2.23-1.el6 will be installed
--> Processing Dependency: rubygem(rake) for package: puppet-dashboard-1.2.23-1.el6.noarch
---> Package ruby-mysql.x86_64 0:2.8.2-1.el6 will be installed
--> Finished Dependency Resolution
Error: Package: puppet-dashboard-1.2.23-1.el6.noarch (puppetlabs-products)
Requires: rubygem(rake)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I found the solution for this and now I am feeling silly to post this question since the answer to it is so simple.
I just went to this link https://rpmfind.net/linux/rpm2html/search.php?query=rubygem-rake and downloaded the Rake rpm, installed. and bam !! the puppet-Dashboard solves its dependency with the rake!
Every time I install a new bower package on my Ember CLI pack, I got
Missing bower packages:
Package: ember
* Specified: 1.11.0
* Installed: 1.10.0
then I run bower install ember#1.11.0.
Unable to find a suitable version for ember, please choose one:
1) ember#1.10.0 which resolved to 1.10.0 and is required by test-addon
2) ember#>= 1.8.1 < 2.0.0 which resolved to 1.11.0 and is required by ember-data#1.0.0-beta.16
3) ember#> 1.5.0-beta.3 which resolved to 1.11.0 and is required by ember-resolver#0.1.15
4) ember#>=1.4 <2 which resolved to 1.11.0 and is required by ember-cli-shims#0.0.3
5) ember#1.11.0 which resolved to 1.11.0Prefix the choice with ! to persist it to bower.json
I choose 5 (Why this hassle if I explicit added the desired version), then it works again.
But next time if I install a new bower package, I have to do it again.
node 0.12.1
bower 1.3.12
emvber cli 0.2.2
You may use -F flag to force to use latest version:
bower install -F
(see docs)
In this case bower didn't asking anything about versions.
I try to update Nuget to my ASP.NET MVC5 project and the Razor cannot be resolved.
Attempting to resolve dependency 'jQuery (≥ 1.9.0)'.
Attempting to resolve dependency 'Microsoft.Web.Infrastructure (≥ 1.0.0)'.
Attempting to resolve dependency 'WebGrease (≥ 1.5.2)'.
Attempting to resolve dependency 'Antlr (≥ 3.4.1.9004)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 5.0.4)'.
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.WebHost (≥ 5.2.2 && < 5.3.0)'.
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Core (≥ 5.2.2 && < 5.3.0)'.
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Client (≥ 5.2.2)'.
Attempting to resolve dependency 'Microsoft.Net.Http (≥ 2.2.22)'.
Attempting to resolve dependency 'Microsoft.Bcl (≥ 1.1.9)'.
Attempting to resolve dependency 'Microsoft.Bcl.Build (≥ 1.0.14)'.
Attempting to resolve dependency 'Microsoft.Data.OData (≥ 5.6.0)'.
Attempting to resolve dependency 'System.Spatial (= 5.6.3)'.
Attempting to resolve dependency 'Microsoft.Data.Edm (= 5.6.3)'.
Attempting to resolve dependency 'Microsoft.AspNet.Razor (= 2.0.30506.0)'.
Attempting to resolve dependency 'Microsoft.AspNet.Razor (≥ 3.0.0)'.
Updating 'Microsoft.AspNet.Razor 2.0.30506.0' to 'Microsoft.AspNet.Razor 3.2.2' failed.
Unable to find a version of 'RazorEngine' that is compatible
with 'Microsoft.AspNet.Razor 3.2.2'.
What is wrong?
I'm getting the following error while installing the Breeze Server for Web API 2.0.
Updating 'Microsoft.AspNet.WebApi.Core 5.2.0' to
'Microsoft.AspNet.WebApi.Core 5.1.0' failed. Unable to find a version
of 'Microsoft.AspNet.WebApi.WebHost' that is compatible with
'Microsoft.AspNet.WebApi.Core 5.1.0'.
Any help is appreciated.
I had similar issue with Visual Studio 2013 Update 3.
Installed Microsoft.AspNet.WebApi.OData first and Breeze.Server.WebApi2 both via NuGet
That issue did not appear. For now lets take that as a quick fix.
You must install Breeze.Server.WebApi2 before installing Microsoft.AspNet.WebApi.WebHost.
* EDIT *
This NuGet versioning issue has been fixed in Breeze v1.4.17 (i.e. for the current Microsoft.AspNet... NuGet packages)
* EDIT *
The issue is not with Breeze.Server.WebApi2, but with the Microsoft.AspNet.WebApi.OData package.
Breeze.Server.WebApi2 NuGet package requires Microsoft.AspNet.WebApi.OData with version ≥ 5.1 && < 6.0.
If you install the Breeze.Server.WebApi2 and Microsoft.AspNet.WebApi.OData is not already installed, it will install the base version (5.1) and not the latest.
The issue is that Microsoft.AspNet.WebApi.OData 5.1 depends on Microsoft.AspNet.WebApi.Core version ≥ 5.1.0 && < 5.2.0.
That conflicts with Microsoft.AspNet.WebApi.WebHost 5.2 (which you have installed in your solution) as it depends on Microsoft.AspNet.WebApi.Core version >=5.2 and <5.3.
So, when Microsoft.AspNet.WebApi.OData is trying to be installed, it will try to roll Microsoft.AspNet.WebApi.Core version to 5.1 and that will fail because Microsoft.AspNet.WebApi.WebHost depends on a newer version.
All this is happening because Breezejs 1.4.16 was tested with Microsoft.AspNet.WebApi 5.1 as version 5.2 had not yet been released at the time.
We will update version dependencies on our NuGet packages in the coming release, but this problem is still meant to reoccur in the future as we have no control as to how Microsoft will set their packages dependencies in their coming releases.
The previous workaround is overwork though, as you can simply install the latest Microsoft.AspNet.WebApi.OData package (5.2) before installing Breeze.Server.WebApi2.
Microsoft.AspNet.WebApi.OData 5.2 will fulfill the Breeze.Server.WebApi2 dependency and you won’t have installation errors or to deal with the hassle of uninstalling/installing a bunch of packages.