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

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

Open
bwscheller opened this issue Sep 26, 2018 · 0 comments

Comments

@bwscheller
Copy link

bwscheller commented Sep 26, 2018

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
gbrasier added a commit to gbrasier/Dnn-Powershell that referenced this issue Feb 2, 2019
gbrasier added a commit to gbrasier/Dnn-Powershell that referenced this issue Feb 2, 2019
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