OctoPack Install

I added the install OctoPack and immediately was met with red errors pasted below after successful install? Any ideas on why this is happening?

Successfully added ‘OctoPack 3.0.34’ to Website.
You cannot call a method on a null-valued expression.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.34\tools\Install.ps1:17 char:5

  • $import = $msbuild.Xml.AddImport($relativePath)
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

The property ‘Condition’ cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.34\tools\Install.ps1:18 char:5

  • $import.Condition = "Exists('$relativePath')"
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : PropertyNotFound

You cannot call a method on a null-valued expression.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.34\tools\Install.ps1:21 char:5

  • $target = $msbuild.Xml.AddTarget("EnsureOctoPackImported")
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

The property ‘BeforeTargets’ cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.34\tools\Install.ps1:22 char:5

  • $target.BeforeTargets = "BeforeBuild"
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : PropertyNotFound

The property ‘Condition’ cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.34\tools\Install.ps1:23 char:5

  • $target.Condition = "'`$(OctoPackImported)' == ''"
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : PropertyNotFound

You cannot call a method on a null-valued expression.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.34\tools\Install.ps1:26 char:5

  • $errorTask = $target.AddTask("Error")
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

The property ‘Condition’ cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.34\tools\Install.ps1:27 char:5

  • $errorTask.Condition = "!Exists('$relativePath') And ('`$(RunOctoPack)' != ' ...
    
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : PropertyNotFound
    
    

You cannot call a method on a null-valued expression.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.34\tools\Install.ps1:28 char:5

  • $errorTask.SetParameter("Text", "You are trying to build with OctoPack, but  ...
    
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

You cannot call a method on a null-valued expression.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.34\tools\Install.ps1:29 char:5

  • $errorTask.SetParameter("HelpKeyword", "BCLBUILD2001");
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.34\tools\Install.ps1:32 char:5

  • $errorTask = $target.AddTask("Error")
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

The property ‘Condition’ cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.34\tools\Install.ps1:33 char:5

  • $errorTask.Condition = "Exists('$relativePath') And ('`$(RunOctoPack)' != '' ...
    
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : PropertyNotFound
    
    

You cannot call a method on a null-valued expression.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.34\tools\Install.ps1:34 char:5

  • $errorTask.SetParameter("Text", "OctoPack cannot be run because NuGet packag ...
    
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

You cannot call a method on a null-valued expression.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.34\tools\Install.ps1:35 char:5

  • $errorTask.SetParameter("HelpKeyword", "BCLBUILD2002");
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Hi James,

Thanks for getting in touch! We accidentally published a broken version of OctoPack (I’ve just pulled it). If you downgrade to 3.0.33 it should be fixed.

Paul

Paul-

I installed 3.0.33 and also tried newest both error out? I uninstalled prior to trying both.

PM> install-package OctoPack -version 3.0.33
Installing ‘OctoPack 3.0.33’.
Successfully installed ‘OctoPack 3.0.33’.
Adding ‘OctoPack 3.0.33’ to Website.
Successfully added ‘OctoPack 3.0.33’ to Website.
You cannot call a method on a null-valued expression.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.33\tools\Install.ps1:17 char:5

  • $import = $msbuild.Xml.AddImport($relativePath)
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull
      The property ‘Condition’ cannot be found on this object. Verify that the property exists and can be set.
      At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.33\tools\Install.ps1:18 char:5
  • $import.Condition = "Exists('$relativePath')"
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : PropertyNotFound
      You cannot call a method on a null-valued expression.
      At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.33\tools\Install.ps1:21 char:5
  • $target = $msbuild.Xml.AddTarget("EnsureOctoPackImported")
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull
      The property ‘BeforeTargets’ cannot be found on this object. Verify that the property exists and can be set.
      At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.33\tools\Install.ps1:22 char:5
  • $target.BeforeTargets = "BeforeBuild"
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : PropertyNotFound
      The property ‘Condition’ cannot be found on this object. Verify that the property exists and can be set.
      At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.33\tools\Install.ps1:23 char:5
  • $target.Condition = "'`$(OctoPackImported)' == ''"
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : PropertyNotFound
      You cannot call a method on a null-valued expression.
      At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.33\tools\Install.ps1:26 char:5
  • $errorTask = $target.AddTask("Error")
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull
      The property ‘Condition’ cannot be found on this object. Verify that the property exists and can be set.
      At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.33\tools\Install.ps1:27 char:5
  • $errorTask.Condition = "!Exists('$relativePath') And ('`$(RunOctoPack)' != ' ...
    
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : PropertyNotFound
    

You cannot call a method on a null-valued expression.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.33\tools\Install.ps1:28 char:5

  • $errorTask.SetParameter("Text", "You are trying to build with OctoPack, but  ...
    
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    

You cannot call a method on a null-valued expression.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.33\tools\Install.ps1:29 char:5

  • $errorTask.SetParameter("HelpKeyword", "BCLBUILD2001");
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull
      You cannot call a method on a null-valued expression.
      At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.33\tools\Install.ps1:32 char:5
  • $errorTask = $target.AddTask("Error")
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull
      The property ‘Condition’ cannot be found on this object. Verify that the property exists and can be set.
      At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.33\tools\Install.ps1:33 char:5
  • $errorTask.Condition = "Exists('$relativePath') And ('`$(RunOctoPack)' != '' ...
    
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : PropertyNotFound
    

You cannot call a method on a null-valued expression.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.33\tools\Install.ps1:34 char:5

  • $errorTask.SetParameter("Text", "OctoPack cannot be run because NuGet packag ...
    
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    

You cannot call a method on a null-valued expression.
At C:\Users\jamesf\Source\Workspaces\NewWaterStreet\Coastal\SourceCode_Trunk\Website\packages\OctoPack.3.0.33\tools\Install.ps1:35 char:5

  • $errorTask.SetParameter("HelpKeyword", "BCLBUILD2002");
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Hi James

Thanks for posting your error log. I actually think looking at that it’s not OctoPack itself, there’s something else afoot here.

Can you let me know what version of Visual Studio, what version of NuGet you’re running and anything else you’re doing that’s different with your nuget or your builds.

The only references I can find to the BCLBUILD2002 keyword are related to the Microsoft.Bcl.Build (here http://www.goatly.net/fixing-nuget-errors-after-removing-microsoft-bcl-build and here http://blogs.msdn.com/b/dotnet/archive/2013/08/22/improved-package-restore.aspx ) and I’ve not come across those before.

Regards

Damian

Damian-

I’m using the following:

Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

LightSwitch for Visual Studio 2013 06177-004-0446016-02788
Microsoft LightSwitch for Visual Studio 2013

Team Explorer for Visual Studio 2013 06177-004-0446016-02788
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013 06177-004-0446016-02788
Microsoft Visual Basic 2013

Visual C# 2013 06177-004-0446016-02788
Microsoft Visual C# 2013

Visual C++ 2013 06177-004-0446016-02788
Microsoft Visual C++ 2013

Visual F# 2013 06177-004-0446016-02788
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker 06177-004-0446016-02788
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU 06177-004-0446016-02788
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package 1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 12.4.51016.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Websites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure

ASP.NET Web Frameworks and Tools 2012.2 4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013 5.2.21010.0
For additional information, visit http://www.asp.net/

Common Azure Tools 1.3
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Microsoft Azure Mobile Services Tools 1.3
Microsoft Azure Mobile Services Tools

NuGet Package Manager 2.8.50926.663
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Office Developer Tools for Visual Studio 2013 ENU 12.0.30626
Microsoft Office Developer Tools for Visual Studio 2013 ENU

PowerShell Tools 1.3
Provides file classification services using PowerShell

PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools 12.0.41025.0
Microsoft SQL Server Data Tools

Windows Phone 8.1 SDK Integration 1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0 1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

SQL Prompt 6
For more information about SQL Prompt, see the Red Gate website at
http://www.red-gate.com
For customer support, call 1-866-733-4283.
Copyright © 2006–2009 Red Gate Software Ltd

Thanks
James F.

Hi James,

This is a tricky one.

Can you try creating a brand new web project and install octopack ? I’d like to see if it’s something to do with your project or the environment.

Regards

Damian