Skip to content

New-Role throws Object reference not set to an instance of an object exception #8

@bwscheller

Description

@bwscheller

Can successfully execute new-role Role1 --autoassign false inside DNN prompt.
However executing new-role -RoleName Role1 -autoassign $false in Powershell results in:

new-role : Object reference not set to an instance of an object.
At line:1 char:1
+ new-role -RoleName "Role1" -AutoAssign $false
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-Role], NullReferenceException
    + FullyQualifiedErrorId : System.NullReferenceException,Connect.DNN.Powershell.Commands.Roles.NewRole

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions