dazinator / DnnPackager

Automate the packaging logic for your DotNetNuke projects, deploy to your IIS from within Visual Studio.
20 stars 3 forks source link

Strange new error upon re-opening solution. #65

Closed bradbamford closed 7 years ago

bradbamford commented 7 years ago

I created a new module project and went through the normal DNNPackager nuget steps, and deployed the module using "install-module" and everything worked perfectly.

After closing the solution, and later reopening it I'm now getting the following error:

Split-Path : Cannot bind argument to parameter 'Path' because it is null. At C:\dev\ABC\Dnn\Modules\ABC.TestModule\packages\DnnPackager.2.0.6\tools\init.ps1:13 char:35 $solutionFolderPath = Split-Path $solution.FullName -parent

CategoryInfo          : InvalidData: (:) [Split-Path], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SplitPathCommand

Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\dev\ABC\Dnn\Modules\ABC.TestModule\packages\DnnPackager.2.0.6\tools\init.ps1:19 char:41
$destinationTargetsFilePath = join-path $solutionFolderPath $destinat ...

CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCommand

Test-Path : Cannot bind argument to parameter 'Path' because it is null. At C:\dev\ABC\Dnn\Modules\ABC.TestModule\packages\DnnPackager.2.0.6\tools\init.ps1:22 char:15 if (Test-Path $destinationTargetsFilePath)

CategoryInfo          : InvalidData: (:) [Test-Path], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCommand

Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\dev\ABC\Dnn\Modules\ABC.TestModule\packages\DnnPackager.2.0.6\tools\init.ps1:53 char:47
... tinationBeforeTargetsFilePath = join-path $solutionFolderPath $destin ...

CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCommand

Test-Path : Cannot bind argument to parameter 'Path' because it is null. At C:\dev\ABC\Dnn\Modules\ABC.TestModule\packages\DnnPackager.2.0.6\tools\init.ps1:56 char:15 if (Test-Path $destinationBeforeTargetsFilePath)


CategoryInfo          : InvalidData: (:) [Test-Path], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCommand

From what I read, it sounded like a permissions issue, but VS was opened as Administrator as always. What else could cause this issue?

bradbamford commented 7 years ago

Not sure what caused this issue, but I recovered by: resetting permissions on all folders and subfolders, then deleting the packages, obj and bin folders, and finally removing the DNNPackager import lines from the .csproj file.

After that, I was able to reinstall DNNPackager and everything's working again.