Cannot install Social using Nuget

Vote:
 

I have tried to install Social into a project using Nuget, but it fails -

Install-Package : Error downloading 'EPiServer.Social.Common.1.0.0' from 'http://nuget.episerver.com/api/v2/package/episerver.social.common/1.0.0'.

I tried with the latest version as well - same outcome. I am using .Net 4.6.2 and VS 2015. It is quite annoying as i arrived at this point by following the instructions on the Episerver website:

https://world.episerver.com/documentation/developer-guides/social/social_platform-overview/Installing-Episerver-Social/

does anyone know why this is happening?

Regards,

Marshall

#186695
Jan 02, 2018 14:17
Vote:
 

I am able to download that package from the link http://nuget.episerver.com/api/v2/package/episerver.social.common/1.0.0.

So you should try again.

#186702
Jan 02, 2018 15:48
Vote:
 

Hi Dung,

I have tried many times, and have only resorted to posting a question here after seeking answers elsewhere on the internet. Since posting this question I have also tried to access another nuget package from within another Episerver project and have encountered a similar problem, so i can surmise that either a) There is genuinely an issue with the Episerver Nuget feed, or b) there is some other network restriction that is not immediately apparent.

Marshall

#186703
Jan 02, 2018 15:54
Vote:
 

Hi,

What do you get when paste the link  http://nuget.episerver.com/api/v2/package/episerver.social.common/1.0.0 into browsers?

I was able to install that version into Episerver COmmerce project. The log file like below.

PM> install-package EPiServer.Social.Common -version 1.0.0


Attempting to gather dependency information for package 'EPiServer.Social.Common.1.0.0' with respect to project 'EPiServer.Reference.Commerce.Site', targeting '.NETFramework,Version=v4.5.2'
Gathering dependency information took 920.38 ms
Attempting to resolve dependencies for package 'EPiServer.Social.Common.1.0.0' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'EPiServer.Social.Common.1.0.0'
Resolved actions to install package 'EPiServer.Social.Common.1.0.0'
Retrieving package 'EPiServer.Social.Common 1.0.0' from 'Episerver'.
GET http://nuget.episerver.com/api/v2/package/episerver.social.common/1.0.0
OK http://nuget.episerver.com/api/v2/package/episerver.social.common/1.0.0 288ms
Installing EPiServer.Social.Common 1.0.0.
Adding package 'EPiServer.Social.Common.1.0.0' to folder 'C:\Sources\Quicksilver\packages'
Added package 'EPiServer.Social.Common.1.0.0' to folder 'C:\Sources\Quicksilver\packages'
Added package 'EPiServer.Social.Common.1.0.0' to 'packages.config'
Successfully installed 'EPiServer.Social.Common 1.0.0' to EPiServer.Reference.Commerce.Site
Executing nuget actions took 2.85 sec
Time Elapsed: 00:00:03.9043077
PM>

#186710
Jan 02, 2018 16:04
Vote:
 

Hi Dung,

I get the yellow screen of death:

Object reference not set to an instance of an object.

...

[NullReferenceException: Object reference not set to an instance of an object.]
   System.Object.GetType() +0
   EPiServerNuget.Nuget.EPiServerPackageService.DownloadPackage(HttpContextBase context) +297
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270

Regards,

Marshall

#186711
Jan 02, 2018 16:07
Vote:
 

Ah, I got that error, but the feed works good now. Please try it one more time.

#186712
Jan 02, 2018 16:12
Vote:
 

Hi Dung,

Well the package is there in the browser, but when i try to install from within VS2015 it still fails:

Error downloading 'EPiServer.Social.Common.1.5.1' from 'http://nuget.episerver.com/api/v2/package/episerver.social.common/1.5.1'.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.

and the same with 1.0.0

Error downloading 'EPiServer.Social.Common.1.0.0' from 'http://nuget.episerver.com/api/v2/package/episerver.social.common/1.0.0'.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
  An existing connection was forcibly closed by the remote host
Install failed. Rolling back...

#186714
Jan 02, 2018 16:20
Vote:
 

I guess that because of your network connection.

PM> install-package EPiServer.Social.Common -version 1.5.1


Attempting to gather dependency information for package 'EPiServer.Social.Common.1.5.1' with respect to project 'EPiServer.Reference.Commerce.Site', targeting '.NETFramework,Version=v4.5.2'
Gathering dependency information took 993.65 ms
Attempting to resolve dependencies for package 'EPiServer.Social.Common.1.5.1' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'EPiServer.Social.Common.1.5.1'
Resolved actions to install package 'EPiServer.Social.Common.1.5.1'
Retrieving package 'EPiServer.Social.Common 1.5.1' from 'Episerver'.
GET http://nuget.episerver.com/api/v2/package/episerver.social.common/1.5.1
Removed package 'EPiServer.Social.Common.1.0.0' from 'packages.config'
Successfully uninstalled 'EPiServer.Social.Common.1.0.0' from EPiServer.Reference.Commerce.Site
OK http://nuget.episerver.com/api/v2/package/episerver.social.common/1.5.1 325ms
Installing EPiServer.Social.Common 1.5.1.
Adding package 'EPiServer.Social.Common.1.5.1' to folder 'C:\Sources\Quicksilver\packages'
Added package 'EPiServer.Social.Common.1.5.1' to folder 'C:\Sources\Quicksilver\packages'
Added package 'EPiServer.Social.Common.1.5.1' to 'packages.config'
Successfully installed 'EPiServer.Social.Common 1.5.1' to EPiServer.Reference.Commerce.Site
Removing package 'EPiServer.Social.Common.1.0.0' from folder 'C:\Sources\Quicksilver\packages'
Removed package 'EPiServer.Social.Common.1.0.0' from folder 'C:\Sources\Quicksilver\packages'
Executing nuget actions took 2.87 sec
Time Elapsed: 00:00:03.8819645
PM>

#186715
Jan 02, 2018 16:27
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.