Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello Our Umbraco community!
I am trying to make an Umbraco package. for that package I need all the ids, nodenames, cultures and domainnames of the root contents.
I tried the following
var umbracoHelper = new Umbraco.Web.UmbracoHelper(Umbraco.Web.UmbracoContext.Current);
var allContents = umbracoHelper.TypedContentAtRoot();
This however gives me the following exeption in the logs:
System.ArgumentNullException: Value cannot be null.
Parameter name: httpContext
at System.Web.HttpContextWrapper..ctor(HttpContext httpContext)
at h5ysr_package.DataCollectorSender. <StartCollection>d__2.MoveNext()
How would I solve this problem?
Where did you place this code? Is it a controller or so?
Did you add needed namespaces?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted