Unable to read package from path nuget problem

jeroen's Avatar

jeroen

19 Aug, 2015 11:42 AM

I got this error: Unable to read package from path for several packages. When I rebuild I got the same error, but not especialy for the same packages.

I only changed the build number from: 0.1.{build} to 1.1.{build} and started the buildnumber on 1 again. The previous build (from the same commit number) did go right. Any idea what's going wrong>

  1. Support Staff 1 Posted by Feodor Fitsner on 19 Aug, 2015 02:03 PM

    Feodor Fitsner's Avatar

    Could you send entire build log please?

    - Feodor

  2. 2 Posted by jeroen on 19 Aug, 2015 02:12 PM

    jeroen's Avatar

    Succes:

    nuget restore website\projectname.sln -source http://nuget.episerver.com/feed/packages.svc/ -source https://www.nuget.org/api/v2/
    Installing 'EPiServer.CMS.Core 8.10.1'.
    Installing 'Castle.Core 3.3.3'.
    Installing 'DotNetZip 1.9.1.8'.
    Installing 'Castle.Windsor 3.3.0'.
    Successfully installed 'DotNetZip 1.9.1.8'.
    Installing 'EPiServer.CMS.UI.Core 8.5.1'.
    Successfully installed 'Castle.Core 3.3.3'.
    Successfully installed 'Castle.Windsor 3.3.0'.
    Installing 'EPiServer.Framework 8.10.1'.
    Installing 'EPiServer.Logging.Log4Net 1.0.0'.
    Successfully installed 'EPiServer.Logging.Log4Net 1.0.0'.
    Installing 'log4net 1.2.10'.
    Successfully installed 'log4net 1.2.10'.
    Installing 'Microsoft.AspNet.Mvc 5.2.3'.
    Successfully installed 'Microsoft.AspNet.Mvc 5.2.3'.
    Installing 'Microsoft.AspNet.Razor 3.2.3'.
    Successfully installed 'Microsoft.AspNet.Razor 3.2.3'.
    Installing 'Microsoft.AspNet.WebPages 3.2.3'.
    Successfully installed 'Microsoft.AspNet.WebPages 3.2.3'.
    Installing 'Microsoft.Web.Infrastructure 1.0.0.0'.
    Successfully installed 'EPiServer.Framework 8.10.1'.
    Successfully installed 'Microsoft.Web.Infrastructure 1.0.0.0'.
    Installing 'structuremap 2.6.4.1'.
    Successfully installed 'EPiServer.CMS.UI.Core 8.5.1'.
    Installing 'Newtonsoft.Json 5.0.8'.
    Successfully installed 'structuremap 2.6.4.1'.
    Installing 'BVN.404Handler 3.1.2'.
    Successfully installed 'Newtonsoft.Json 5.0.8'.
    Installing 'Antlr 3.4.1.9004'.
    Successfully installed 'Antlr 3.4.1.9004'.
    Installing 'bootstrap 3.0.0'.
    Successfully installed 'bootstrap 3.0.0'.
    Installing 'EntityFramework 6.1.3'.
    Installing 'campaignmonitor-api 4.0.1'.
    Installing 'EPiServer.CMS 8.10.1'.
    Successfully installed 'campaignmonitor-api 4.0.1'.
    Installing 'EPiServer.CMS.UI 8.5.1'.
    Installing 'EPiServer.Packaging 3.2.2'.
    Successfully installed 'EntityFramework 6.1.3'.
    Successfully installed 'BVN.404Handler 3.1.2'.
    Installing 'EPiServer.Packaging.UI 3.2.2'.
    Successfully installed 'EPiServer.CMS.Core 8.10.1'.
    Successfully installed 'EPiServer.Packaging 3.2.2'.
    Installing 'ImageResizer 3.4.3'.
    Successfully installed 'ImageResizer 3.4.3'.
    Successfully installed 'EPiServer.Packaging.UI 3.2.2'.
    Installing 'ImageResizer.Mvc 3.4.3'.
    Successfully installed 'ImageResizer.Mvc 3.4.3'.
    Installing 'ImageResizer.MvcWebConfig 3.4.3'.
    Successfully installed 'ImageResizer.MvcWebConfig 3.4.3'.
    Installing 'ImageResizer.WebConfig 3.4.3'.
    Successfully installed 'ImageResizer.WebConfig 3.4.3'.
    Installing 'jQuery 1.10.2'.
    Successfully installed 'jQuery 1.10.2'.
    Installing 'Microsoft.AspNet.Web.Optimization 1.1.3'.
    Successfully installed 'Microsoft.AspNet.Web.Optimization 1.1.3'.
    Installing 'Microsoft.AspNet.Providers.Core 2.0.0'.
    Installing 'Modernizr 2.6.2'.
    Successfully installed 'Microsoft.AspNet.Providers.Core 2.0.0'.
    Successfully installed 'Modernizr 2.6.2'.
    Installing 'Nuget.Core 2.5.0'.
    Successfully installed 'Nuget.Core 2.5.0'.
    Installing 'WebGrease 1.5.2'.
    Successfully installed 'WebGrease 1.5.2'.
    Successfully installed 'EPiServer.CMS.UI 8.5.1'.
    Successfully installed 'EPiServer.CMS 8.10.1'.
    "C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" "Website\projectname.sln" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:DeployOnBuild=True /p:PublishProfile=appveyor
    Microsoft (R) Build Engine version 12.0.31101.0
    [Microsoft .NET Framework, version 4.0.30319.34209]
    Copyright (C) Microsoft Corporation. All rights reserved.
      Restoring NuGet packages...
      To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'.
      All packages listed in packages.config are already installed.
    Models\Pages\NewsDetailPage.cs(51,10): warning CS1030: #warning: 'Check performance' [C:\projects\development\Website\projectname\projectname.csproj]
      projectname -> C:\projects\development\Website\projectname\bin\Release\projectname.dll
      Restoring NuGet packages...
      To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'.
      All packages listed in packages.config are already installed.
    Implementation\Controllers\FormsController.cs(192,38): warning CS0168: The variable 'ex' is declared but never used [C:\projects\development\Website\projectname.Web\projectname.Web.csproj]
      projectname.Web -> C:\projects\development\Website\projectname.Web\bin\projectname.Web.dll
      Transformed Web.config using C:\projects\development\Website\projectname.Web\Web.Release.config into obj\Release\TransformWebConfig\transformed\Web.config.
      Copying all files to temporary location below for package/publish:
      obj\Release\Package\PackageTmp.
      Auto ConnectionString Transformed obj\Release\Package\PackageTmp\Views\Web.config into obj\Release\CSAutoParameterize\transformed\Views\Web.config.
      Auto ConnectionString Transformed obj\Release\Package\PackageTmp\modules\_protected\EPiServer.Packaging.UI\web.config into obj\Release\CSAutoParameterize\transformed\modules\_protected\EPiServer.Packaging.UI\web.config.
      Auto ConnectionString Transformed obj\Release\Package\PackageTmp\modules\_protected\Shell\web.config into obj\Release\CSAutoParameterize\transformed\modules\_protected\Shell\web.config.
      Auto ConnectionString Transformed obj\Release\Package\PackageTmp\modules\_protected\CMS\web.config into obj\Release\CSAutoParameterize\transformed\modules\_protected\CMS\web.config.
      Auto ConnectionString Transformed obj\Release\Package\PackageTmp\modules\BVNetwork.FileNotFound.RedirectGadget\Views\Web.config into obj\Release\CSAutoParameterize\transformed\modules\BVNetwork.FileNotFound.RedirectGadget\Views\Web.config.
      Auto ConnectionString Transformed obj\Release\Package\PackageTmp\Web.config into obj\Release\CSAutoParameterize\transformed\Web.config.
    Discovering tests...OK
    Uploading artifact projectname.Web.zip (34.2 MB)...OK
    Deploying using WebDeploy provider
    Synchronizing contents of "projectname.Web" artifact to website azure-site-name on server https://azure-site-name.scm.azurewebsites.net:443/msdeploy.axd?site=azure-site-name using WebDeploy
    Synchronizing website content
    Info: Using ID 'a22f40cc-b1d7-4b54-8137-d1700afeb79c' for connections to the remote server.
    Info: Using ID '565e1c1a-38ea-45d2-975f-b2441d2f8e99' for connections to the remote server.
    Info: Updating file (azure-site-name\bin\projectname.dll).
    Info: Updating file (azure-site-name\bin\projectname.Web.dll).
    Total changes: 2 (0 added, 0 deleted, 2 updated, 147,456 bytes copied)
    Deployment completed
    Build success

    Failed (based on the same commit):

    nuget restore website\projectname.sln -source http://nuget.episerver.com/feed/packages.svc/ -source https://www.nuget.org/api/v2/
    Installing 'EPiServer.CMS.Core 8.10.1'.
    Installing 'Castle.Core 3.3.3'.
    Installing 'Castle.Windsor 3.3.0'.
    Installing 'DotNetZip 1.9.1.8'.
    Successfully installed 'DotNetZip 1.9.1.8'.
    Installing 'EPiServer.CMS.UI.Core 8.5.1'.
    Installing 'EPiServer.Framework 8.10.1'.
    Successfully installed 'Castle.Core 3.3.3'.
    Installing 'EPiServer.Logging.Log4Net 1.0.0'.
    Successfully installed 'EPiServer.Logging.Log4Net 1.0.0'.
    Installing 'log4net 1.2.10'.
    Successfully installed 'log4net 1.2.10'.
    Installing 'Microsoft.AspNet.Mvc 5.2.3'.
    Successfully installed 'EPiServer.CMS.UI.Core 8.5.1'.
    Successfully installed 'EPiServer.Framework 8.10.1'.
    Installing 'Microsoft.AspNet.Razor 3.2.3'.
    Installing 'Microsoft.AspNet.WebPages 3.2.3'.
    Successfully installed 'Microsoft.AspNet.Razor 3.2.3'.
    Successfully installed 'EPiServer.CMS.Core 8.10.1'.
    Installing 'Microsoft.Web.Infrastructure 1.0.0.0'.
    Installing 'Newtonsoft.Json 5.0.8'.
    Installing 'structuremap 2.6.4.1'.
    Installing 'Antlr 3.4.1.9004'.
    Successfully installed 'structuremap 2.6.4.1'.
    Successfully installed 'Antlr 3.4.1.9004'.
    Successfully installed 'Newtonsoft.Json 5.0.8'.
    Installing 'BVN.404Handler 3.1.2'.
    Installing 'EPiServer.CMS 8.10.1'.
    Installing 'bootstrap 3.0.0'.
    Successfully installed 'bootstrap 3.0.0'.
    Installing 'campaignmonitor-api 4.0.1'.
    Installing 'EntityFramework 6.1.3'.
    Installing 'EPiServer.CMS.UI 8.5.1'.
    Installing 'EPiServer.Packaging 3.2.2'.
    Successfully installed 'BVN.404Handler 3.1.2'.
    Installing 'EPiServer.Packaging.UI 3.2.2'.
    Successfully installed 'EntityFramework 6.1.3'.
    Successfully installed 'campaignmonitor-api 4.0.1'.
    Installing 'ImageResizer 3.4.3'.
    Successfully installed 'EPiServer.Packaging 3.2.2'.
    Installing 'ImageResizer.Mvc 3.4.3'.
    Successfully installed 'ImageResizer.Mvc 3.4.3'.
    Successfully installed 'EPiServer.Packaging.UI 3.2.2'.
    Installing 'ImageResizer.MvcWebConfig 3.4.3'.
    Successfully installed 'ImageResizer.MvcWebConfig 3.4.3'.
    Installing 'ImageResizer.WebConfig 3.4.3'.
    Successfully installed 'ImageResizer.WebConfig 3.4.3'.
    Installing 'jQuery 1.10.2'.
    Successfully installed 'jQuery 1.10.2'.
    Installing 'Microsoft.AspNet.Providers.Core 2.0.0'.
    Installing 'Microsoft.AspNet.Web.Optimization 1.1.3'.
    Successfully installed 'Microsoft.AspNet.Web.Optimization 1.1.3'.
    Installing 'Modernizr 2.6.2'.
    Successfully installed 'Modernizr 2.6.2'.
    Installing 'WebGrease 1.5.2'.
    Installing 'Nuget.Core 2.5.0'.
    Successfully installed 'WebGrease 1.5.2'.
    Successfully installed 'Nuget.Core 2.5.0'.
    Successfully installed 'EPiServer.CMS.UI 8.5.1'.
    Successfully installed 'EPiServer.CMS 8.10.1'.
    Unable to read package from path 'Castle.Windsor.3.3.0.nupkg'.
    Unable to read package from path 'Microsoft.AspNet.Mvc.5.2.3.nupkg'.
    Unable to read package from path 'Microsoft.AspNet.WebPages.3.2.3.nupkg'.
    Unable to read package from path 'Microsoft.Web.Infrastructure.1.0.0.0.nupkg'.
    Unable to read package from path 'ImageResizer.3.4.3.nupkg'.
    Unable to read package from path 'Microsoft.AspNet.Providers.Core.2.0.0.nupkg'.
    Command exited with code 1

  3. Support Staff 3 Posted by Feodor Fitsner on 19 Aug, 2015 02:19 PM

    Feodor Fitsner's Avatar

    Never seen such error before, but looks like nuget was unable to download packages.

    Use this approach to restore with retries: http://www.appveyor.com/docs/nuget#restore-with-retries

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:59 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac