Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

signalR Package Installation Fails #4654


User avatar
0
pankajmathur created

Hi there,

My first question is how can I find out on which version of ASPNetZero and ABP my current project is?

Secondly, I was waiting for the signalR since long. I recently went to the page <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents">https://aspnetboilerplate.com/Pages/Documents</a> and I saw that ABP has now come up with signalR. But when I am trying to install the nuget package using Package Manager, it fails. See the below error (The same is attached in the word file). Please advice whats wrong in installing the "Abp.AspNetCore.SignalR" Nuget Package.

Regards, Mahendra

PM> Install-Package Abp.AspNetCore.SignalR -Version 3.4.0-preview2 GET <a class="postlink" href="https://api.nuget.org/v3/registration3-gz-semver2/abp.aspnetcore.signalr/index.json">https://api.nuget.org/v3/registration3- ... index.json</a> GET <a class="postlink" href="https://nuget.telerik.com/nuget/Packages(Id='Abp.AspNetCore.SignalR',Version='3.4.0-preview2'">https://nuget.telerik.com/nuget/Package ... -preview2'</a>) OK <a class="postlink" href="https://api.nuget.org/v3/registration3-gz-semver2/abp.aspnetcore.signalr/index.json">https://api.nuget.org/v3/registration3- ... index.json</a> 1097ms Error finding repository for 'https://nuget.telerik.com/nuget': An error occurred while retrieving package metadata for 'Abp.AspNetCore.SignalR.3.4.0-preview2' from source 'telerik.com'. A task was canceled. Restoring packages for D:\CXS.Retail\Development\iVend365\src\CitiXsys.iVend365.Web.Mvc\CitiXsys.iVend365.Web.Mvc.csproj... GET <a class="postlink" href="https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.signalr/index.json">https://api.nuget.org/v3-flatcontainer/ ... index.json</a> GET <a class="postlink" href="https://nuget.telerik.com/nuget/FindPackagesById(">https://nuget.telerik.com/nuget/FindPackagesById(</a>)?id='Microsoft.AspNetCore.SignalR' OK <a class="postlink" href="https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.signalr/index.json">https://api.nuget.org/v3-flatcontainer/ ... index.json</a> 1160ms OK <a class="postlink" href="https://nuget.telerik.com/nuget/FindPackagesById(">https://nuget.telerik.com/nuget/FindPackagesById(</a>)?id='Microsoft.AspNetCore.SignalR' 2933ms Install-Package : Unable to find package Microsoft.AspNetCore.SignalR with version (>= 1.0.0-preview1-28189)

  • Found 3 version(s) in nuget.org [ Nearest version: 1.0.0-alpha2-final ]
  • Found 0 version(s) in Microsoft Visual Studio Offline Packages
  • Found 0 version(s) in telerik.com At line:1 char:1
  • Install-Package Abp.AspNetCore.SignalR -Version 3.4.0-preview2
  •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.Inst 
    allPackageCommand
    
    

Package 'ZohoBooks 1.0.0' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project. Install-Package : Package restore failed. Rolling back package changes for 'CitiXsys.iVend365.Web.Mvc'. At line:1 char:1

  • Install-Package Abp.AspNetCore.SignalR -Version 3.4.0-preview2
  •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.Inst 
    allPackageCommand
    
    

Time Elapsed: 00:00:08.6100766


16 Answer(s)
  • User Avatar
    0
    pankajmathur created

    Is the Package name "Abp.Web.SignalR" and not "Abp.AspNetCore.SignalR"?

  • User Avatar
    0
    aaron created
    Support Team

    Answered in this issue: https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2831

    Add this file to the same folder as your .sln file: NuGet.Config

  • User Avatar
    0
    pankajmathur created

    when I add NuGet.Config file to the solution, closed the project and reopen it, it throws error while opening the projects. the error is attached herewith. Please advice...

  • User Avatar
    0
    pankajmathur created

    I am using ASPNetZero Version 4.1. Can I use signalR feature, without upgrading it to ASPNetZero Latest version i.e. 5.1.

    Regards, Mahendra

  • User Avatar
    0
    alper created
    Support Team

    <cite>pankajmathur: </cite> when I add NuGet.Config file to the solution, closed the project and reopen it, it throws error while opening the projects. the error is attached herewith. Please advice...

    what's the error?

  • User Avatar
    0
    pankajmathur created

    Thanks...aaroon, the error is resolved now....

    Can you please reply to my below question.. I am using ASPNetZero Version 4.1. Can I use signalR feature, without upgrading it to ASPNetZero Latest version i.e. 5.1.

    Regards, Mahendra

  • User Avatar
    0
    aaron created
    Support Team

    Yes, just follow the documentation for SignalR AspNetCore Integration.

  • User Avatar
    0
    pankajmathur created

    Thanks aaron....I am following the same steps that is mentioned in the document, but I am getting following compilation error.

    Steps followed


    1. Install nuget package Install-Package Abp.AspNetCore.SignalR -Version 3.4.0-preview2
    2. Add dependency in my web module [DependsOn(typeof(AbpAspNetCoreSignalRModule))]
    3. In startup.cs ConfigureServices method services.AddSignalR();
    4. In startup.cs Configure method app.UseSignalR(routes => { routes.MapHub<AbpCommonHub>("/signalr"); });

    Now when I compile the project, it throws the following error in the WebMVC project

    Error CS1705 Assembly 'Abp.AspNetCore' with identity 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Castle.Core, Version=4.1.1.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' which has a higher version than referenced assembly 'Castle.Core' with identity 'Castle.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' CitiXsys.iVend365.Web.Mvc D:\CXS.Retail\Development\iVend365\src\CitiXsys.iVend365.Web.Mvc\CSC 1 Active

    Please help me to resolve this compilation issue....

    Regards, Mahendra

  • User Avatar
    0
    aaron created
    Support Team

    Is Castle.Core referenced anywhere (including .csproj, web.config) in your project?

  • User Avatar
    0
    pankajmathur created

    Please see the output of find in entire solution

    Find all "Castle.Core", Subfolders, Find Results 1, "Entire Solution ( Including External Items )", "" D:\CXS.Retail\Development\iVend365\src\CitiXsys.iVend365.Core\Identity\SmsSender.cs(3):using Castle.Core.Logging; D:\CXS.Retail\Development\iVend365\src\CitiXsys.iVend365.Migrator\Log.cs(4):using Castle.Core.Logging; D:\CXS.Retail\Development\iVend365\src\CitiXsys.iVend365.Web.Core\Chat\SignalR\ChatHub.cs(9):using Castle.Core.Logging; D:\CXS.Retail\Development\iVend365\src\CitiXsys.iVend365.Web.Core\Chat\SignalR\SignalRChatCommunicator.cs(8):using Castle.Core.Logging; Matching lines: 4 Matching files: 4 Total files searched: 11876

  • User Avatar
    0
    pankajmathur created

    My solution compiles without any error before I installed the following package Install-Package Abp.AspNetCore.SignalR -Version 3.4.0-preview2 The moment I install the above package and compile the project it throws the error in Web.Mvc project

    Assembly 'Abp.AspNetCore' with identity 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Castle.Core, Version=4.1.1.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' which has a higher version than referenced assembly 'Castle.Core' with identity 'Castle.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc'.

    I am badly stuck.... somebody, please help....

  • User Avatar
    0
    pankajmathur created

    Anyone any idea...

  • User Avatar
    0
    alper created
    Support Team

    seems like you have multiple Castle.Core references with different versions. what you should do is, consolidate all Castle.Core references. You can update all Castle.Core to the latest.

    When you right click to the solution root in Visual Studio Click "Manage Nuget packages for solution". In the Consolidate tab you have to be seen Castle.Core package. You need to install the latest package into all related projects.

    you can check out this solution too <a class="postlink" href="http://robertgreiner.com/2014/06/assembly-uses-version-which-has-a-higher-version-than-referenced-assembly-error/">http://robertgreiner.com/2014/06/assemb ... bly-error/</a>

  • User Avatar
    0
    pankajmathur created

    Hi,

    I tried whatever you suggested, but I found nowhere Castle.Core version 4.0.0 refereed. When I search the Castle.Core in solution I also did not find the version 4.0.0. Please see the attached screen shot. But I am still getting this error (Once I install the nuget package for signalR)

    Assembly 'Abp.AspNetCore' with identity 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Castle.Core, Version=4.1.1.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' which has a higher version than referenced assembly 'Castle.Core' with identity 'Castle.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc'

    Please advice... Regards, Mahendra

  • User Avatar
    0
    pankajmathur created

    <cite>aaron: </cite> Yes, just follow the documentation for SignalR AspNetCore Integration.

    Hi aaron,

    I just downloaded the latest version of ASPNetZero (i.e. 5.1) and install the signalR package. After installing the package, it compiles successfully....

    But The same is not happening with ASPNetZero version 4.1....Can you please re-confirm, if signalR is compatible to ASPNetZero Version 4.1

    Regards, Mahendra

  • User Avatar
    0
    aaron created
    Support Team

    Sorry! One of your initial error messages:

    Package 'ZohoBooks 1.0.0' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'

    suggested that you were targeting netcoreapp2.0.

    Microsoft.AspNetCore.SignalR targets netstandard2.0, which was released in ASP.NET Zero v4.5. If you're not targeting netcoreapp2.0, then you need to upgrade.