Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues Loading BasicTugCmdLets.ps1 #92

Open
SinnGit opened this issue Oct 3, 2018 · 0 comments
Open

Issues Loading BasicTugCmdLets.ps1 #92

SinnGit opened this issue Oct 3, 2018 · 0 comments

Comments

@SinnGit
Copy link

SinnGit commented Oct 3, 2018

I've got the PS5 bundle of tug installed and configured in my environment. I used the instructions in #89 to configure Tug to run in IIS.

Tug server versions as follows
PS Version: Major Minor Build Revision
5 1 14393 2430

.net 4.5.2

WMF 5.1

Tug version v0.6.0

I'm unable to run any of the basic tug cmdlets, if I execute BasicTugCmdLets.ps1 to load the various functions I receive the following errors. Seems like I am missing something pretty basic but I've been spinning my wheels trying to figure out how to load these functions so I can begin to register systems with the Tug server.


You cannot call a method on a null-valued expression.
At C:\Program Files\tug\Server\BasicTugCmdlets.ps1:25 char:1

  • $handlerLogger.LogInformation("Loading BASIC Tug Cmdlets...")
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

You cannot call a method on a null-valued expression.
At C:\Program Files\tug\Server\BasicTugCmdlets.ps1:26 char:1

  • $handlerLogger.LogInformation("* Got Logger: $handlerLogger")
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

You cannot call a method on a null-valued expression.
At C:\Program Files\tug\Server\BasicTugCmdlets.ps1:27 char:1

  • $handlerLogger.LogInformation("* Got Config: $handlerAppConfiguratio ...
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

Cannot index into a null array.
At C:\Program Files\tug\Server\BasicTugCmdlets.ps1:30 char:1

  • $dscRegSavePath = [System.IO.Path]::GetFullPath(
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : NullArray
    
    

Cannot index into a null array.
At C:\Program Files\tug\Server\BasicTugCmdlets.ps1:32 char:1

  • $dscConfigPath = [System.IO.Path]::GetFullPath(
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : NullArray
    
    

Cannot index into a null array.
At C:\Program Files\tug\Server\BasicTugCmdlets.ps1:34 char:1

  • $dscModulePath = [System.IO.Path]::GetFullPath(
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : NullArray
    
    

Cannot index into a null array.
At C:\Program Files\tug\Server\BasicTugCmdlets.ps1:36 char:1

  • $dscReportsPath = [System.IO.Path]::GetFullPath(
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : NullArray
    
    

You cannot call a method on a null-valued expression.
At C:\Program Files\tug\Server\BasicTugCmdlets.ps1:40 char:1

  • $handlerLogger.LogInformation("Resolved App Settings:")
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

You cannot call a method on a null-valued expression.
At C:\Program Files\tug\Server\BasicTugCmdlets.ps1:41 char:1

  • $handlerLogger.LogInformation(" * dscRegSavePath = [$dscRegSavePath] ...
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

You cannot call a method on a null-valued expression.
At C:\Program Files\tug\Server\BasicTugCmdlets.ps1:42 char:1

  • $handlerLogger.LogInformation(" * dscConfigPath = [$dscConfigPath]" ...
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

You cannot call a method on a null-valued expression.
At C:\Program Files\tug\Server\BasicTugCmdlets.ps1:43 char:1

  • $handlerLogger.LogInformation(" * dscModulePath = [$dscModulePath]" ...
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

You cannot call a method on a null-valued expression.
At C:\Program Files\tug\Server\BasicTugCmdlets.ps1:44 char:1

  • $handlerLogger.LogInformation(" * dscReportsPath = [$dscReportsPath] ...
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

Test-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\tug\Server\BasicTugCmdlets.ps1:47 char:23

  • if (!(test-path -path $dscRegSavePath)) {
  •                   ~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCom
      mand

Test-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\tug\Server\BasicTugCmdlets.ps1:50 char:23

  • if (!(test-path -path $dscConfigPath)) {
  •                   ~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCom
      mand

Test-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\tug\Server\BasicTugCmdlets.ps1:53 char:23

  • if (!(Test-Path -Path $dscModulePath)) {
  •                   ~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCom
      mand

Test-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\tug\Server\BasicTugCmdlets.ps1:56 char:23

  • if (!(Test-Path -Path $dscReportsPath)) {
  •                   ~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCom
      mand

All BASIC Tug Cmdlets are defined


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant