I just installed the latest Umbraco version (7.10.1) on a blank SQL database.
Since my project requires role based protection I created a few members and was about to create the appropriate member groups.
However, when I click the three dots on Member Groups folder and select Create I get the following YSOD:
Server Error in '/' Application.
Value cannot be null.
Parameter name: type
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: type
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: type]
System.Activator.CreateInstance(Type type, Boolean nonPublic) +12532133
System.Activator.CreateInstance(Type type) +11
Umbraco.Web.UI.LegacyDialogHandler.GetTaskForOperation(HttpContextBase httpContext, User umbracoUser, Operation op, String nodeType) +441
Umbraco.Web.UI.LegacyDialogHandler.UserHasCreateAccess(HttpContextBase httpContext, User umbracoUser, String nodeType) +13
Umbraco.Web.UI.Umbraco.CreateDialog.SecurityCheck(String nodeTypeAlias) +71
Umbraco.Web.UI.Umbraco.CreateDialog.OnLoad(EventArgs e) +50
System.Web.UI.Control.LoadRecursive() +59
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2633.0
Did anyone else had this problem? Or even better, does someone know how to fix this?
var memberService = ApplicationContext.Current.Services.MemberService;
memberService.AddRole("Group Name");
And delete it with:
var memberGroupService = ApplicationContext.Current.Services.MemberGroupService;
var group = memberGroupService.GetByName("Group Name");
memberGroupService.Delete(group);
Looking at the CMS source in github, looks like a fix was merged into branch 7.9.4 but was not included into 7.9.5 - So that's why it's also not in 7.9.6.... the >7.10.2 branch seems fine, so may i'll just try upgrade to that.
YSOD on creating new member group
I just installed the latest Umbraco version (7.10.1) on a blank SQL database. Since my project requires role based protection I created a few members and was about to create the appropriate member groups.
However, when I click the three dots on Member Groups folder and select Create I get the following YSOD:
Did anyone else had this problem? Or even better, does someone know how to fix this?
Thanks for any help
Hi Marco,
there is an issue created here with a PR already: http://issues.umbraco.org/issue/U4-11155
You can vote it up.
Hope this helps!
/Michaël
Thanks Michaël.
I up-voted the issue. Hopefully the fix will be available soon :-)
Hi Marco,
it will be in version 7.9.4 and 7.10.2 but no release date available for the moment.
Have a nice day.
/Michaël
If i'm correct they will be released tomorrow.
Dave
Thanks for the info Dave!
/Michaël
Hope it's released soon, this is a huge issue for me and my client
I get the same error in Umbraco version (7.10.1). I created member groups programmatically using the following method.
You can also simply create a group with:
And delete it with:
I just downloaded version 7.10.2 and I can confirm the issue has been resolved.
Thanks everyone!
Hi Marco,
thanks for reporting it back to the community! #h5yr
Have a nice day!
/Michaël
Just upgraded one of ours to 7.9.4 and can confirm it's fixed on this version also.
I'm getting this error now on 7.9.6 - Previously I was on 7.9.4 and it was working without issue.
Looking at the CMS source in github, looks like a fix was merged into branch 7.9.4 but was not included into 7.9.5 - So that's why it's also not in 7.9.6.... the >7.10.2 branch seems fine, so may i'll just try upgrade to that.
Probably you need to create a issue than at http://issues.umbraco.org
Is strange it's not included anymore.
Dave
Actually found another issue that had been fixed but was missing from 7.9.5 and 7.9.6, logged it: http://issues.umbraco.org/issue/U4-11346
is working on a reply...