Skip to content

Package installation script doesn't create configSections element #90

@haliphax

Description

@haliphax

In Visual Studio 2013, when installing the Exceptionless package, the following errors occur:

PM> install-package Exceptionless
Attempting to resolve dependency 'Exceptionless.Portable (= 3.3.1590)'.
Installing 'Exceptionless.Portable 3.3.1590'.
Successfully installed 'Exceptionless.Portable 3.3.1590'.
Installing 'Exceptionless 3.3.1590'.
Successfully installed 'Exceptionless 3.3.1590'.
Adding 'Exceptionless.Portable 3.3.1590' to ExceptionlessTest.
Successfully added 'Exceptionless.Portable 3.3.1590' to ExceptionlessTest.
Unable to index into an object of type System.Xml.XmlChildNodes.
At C:\users\REDACTED\documents\visual studio 2013\Projects\ExceptionlessTest\packages\Exceptionless.Portable.3.3.1590\tools\exceptio
nless.psm1:46 char:178
+                     $parentNode = $configXml.SelectSingleNode("configuration").InsertBefore($configXml.CreateElement('configSecti
ons'), $configXml.SelectSingleNode("configuration").ChildNodes[ <<<< 0])
    + CategoryInfo          : InvalidOperation: (0:Int32) [], RuntimeException
    + FullyQualifiedErrorId : CannotIndex

You cannot call a method on a null-valued expression.
At C:\users\REDACTED\documents\visual studio 2013\Projects\ExceptionlessTest\packages\Exceptionless.Portable.3.3.1590\tools\exceptio
nless.psm1:53 char:27
+             $parentNode.AppendChild <<<< ($configSection)
    + CategoryInfo          : InvalidOperation: (AppendChild:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Adding 'Exceptionless 3.3.1590' to ExceptionlessTest.
Successfully added 'Exceptionless 3.3.1590' to ExceptionlessTest.
Unable to index into an object of type System.Xml.XmlChildNodes.
At C:\Users\REDACTED\Documents\Visual Studio 2013\Projects\ExceptionlessTest\packages\Exceptionless.3.3.1590\tools\exceptionless.psm
1:46 char:178
+                     $parentNode = $configXml.SelectSingleNode("configuration").InsertBefore($configXml.CreateElement('configSecti
ons'), $configXml.SelectSingleNode("configuration").ChildNodes[ <<<< 0])
    + CategoryInfo          : InvalidOperation: (0:Int32) [], RuntimeException
    + FullyQualifiedErrorId : CannotIndex

You cannot call a method on a null-valued expression.
At C:\Users\REDACTED\Documents\Visual Studio 2013\Projects\ExceptionlessTest\packages\Exceptionless.3.3.1590\tools\exceptionless.psm
1:53 char:27
+             $parentNode.AppendChild <<<< ($configSection)
    + CategoryInfo          : InvalidOperation: (AppendChild:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions