ActiveTopics Thu, 29 Sep 2016 10:09:42 +00:00 umbraco Latests topics from the forum on en Update plugin for last version of umbraco Hello,

Are you planning to update your plugin to make it work on umbraco 7.5?

Thanks a lot,


acavuoto Thu, 29 Sep 2016 09:07:05 +00:00
Attaching files to notification messages Hello,

I am trying to attach a file to a notification, but have not been able to succeed in doing this. My setup is as follows:

I have implemented a custom notification event using a monitor (extending NotificationMonitorBase) and a trigger (extending NotificationTriggerBase).

The setup is working as intended - I can create a new notification message in the back office, attach it to my custom event, trigger the event and see the email being sent and received correctly.

I have been trying to fiddle around with the message properties BodyTextIsFilePath and BodyText, but to no avail.

Does anyone have any suggestions as to how I can proceed?

BR, Peter

Peter Thu, 29 Sep 2016 08:25:55 +00:00
Provisioning new Umbraco environments using scripting Hi,

we are looking for an approach to scripting new Umbraco environments in a DTAP street. We apply DTAP in our enterprise and have noticed no real solution to creating Umbraco environments using fully automated steps.

First of all, I have noticed that the installation steps in the Web.Install namespace are internal. Although you can replicate these steps in your own install code, this would be unsupportable and has proven to be a bit unstable (forgot to refresh an XML cache, views not loading, and future steps that we have no knowledge of create issues)

Replicating the database across environments is also a bit of a no-go. Everything from encryption of passwords which possibly use machine keys, to the registration of server names in the servers table block you from creating a simple database copy.

Is there a supported approach to provisioning new Umbraco environments in an automated fashion? Hope there is!



Wouter van Vugt @ PGGM Thu, 29 Sep 2016 08:18:38 +00:00
Uploading a YouTube video Guys, a little help if possible please, I've not done much at all with oauth before...

Essentially, I'm looking to authenticate with Google from the Umbraco backend, hence using this package, with a view to being able to use this authorisation to upload videos to YouTube.

I have added the property, authenticated myself and can check that I am authenticated in my code, that seems simple enough. How though, do I then instigate an upload using Skybrud.Social?

I have found the docs on YouTube for the api, and can see about the YouTube Service, with which I can see how to upload, but I can't see how to join the two things together, or to do the equivalent with Skybrud..

It's probably simple, like me, perhaps I am looking at it wrong?

Any help appreciated..


Mark Thu, 29 Sep 2016 08:18:16 +00:00
Site get weird screen Hi all,

I have just got this issue (per attach image), is there anyone get this issue when site running?enter image description here

Bean Thu, 29 Sep 2016 07:49:50 +00:00
Error occurred when instantiating a MembershipHelper Hi,

I know it's a silly question I'am trying to do this in my template.

enter image description here

but it show error's.

enter image description here

What did I missed?

Glen Thu, 29 Sep 2016 07:49:33 +00:00
What controller handle the header of Merchello Font-End? Hello,

I want to know what controller handle the header of Merchello Font-End?

Regards, Dung Tri

Nguyen Dung Tri Thu, 29 Sep 2016 04:51:43 +00:00
How to display views of today? To display the views for the last 7 days is this: @CounterService.GetValue(post.Id, 7)

How about the views today, should I make the 7 to 1? Thank you

Rachelle Thu, 29 Sep 2016 00:57:24 +00:00
redirect to a Login page Umbraco redirect to a page Umbraco if the user does not want this authenticated and access a page of the site without going through the login

Jose Cera Wed, 28 Sep 2016 21:06:10 +00:00
DNS for Flexible Load-balancing on Azure Websites I am setting up load balancing on Azure websites. In reviewing the documentation at, I have a question about the umbracoApplicationUrl and the domain names. We have set up 2 websites: (for the front-end) and (for the backend) (not their real names). abcd-master has 1 instance; abcd-front has 1 instance now, but is on a separate Azure App Service plan, and can be scaled out.

The documentation states that:

Flexible Load Balancing will automatically elect a "Scheduling server" to perform the above services. This means that all of the servers will need to be able to resolve the URL of either: itself, the Master server, the internal load balancer or the public address.

and that:

By default, Umbraco will set the "umbracoApplicationUrl" to the address made by the first accepted request when the AppDomain starts. It is assumed that this address will be a DNS address that the server can resolve.

For example, if a public request reached the load balancer on "", the load balancer may send the request on to the servers with the original address: "" so by default the "umbracoApplicationUrl" will be "". However, load balancers may route the request internally under a different DNS name such as "f02.mysite.local" which by default would mean the "umbracoApplicationUrl" is "f02.mysite.local". In any case the elected "Scheduling server" must be able to resolve this address.

We use IIS URL Rewrite module to do a canonical redirect so that all requests get redirected to the primary domain. I guess we need to disable this for the master website so that editors/admins dont get redirected, but for the frontend website, will that cause a problem for the scheduler to reach the different servers?

A couple more questions: I also would like to know how best to block public access to the master server (I have an idea of how to accomplish this, but would like to hear others). Finally, how should we prevent admins/editors from accessing the backoffice via the frontend website?

Alex Lindgren Wed, 28 Sep 2016 19:51:42 +00:00
Member Groups and Content Hi Everyone,

Apologies if this has been addressed but I can't seem to find any definite answers.

I'm using VS Studio 2015 Update 3, .NET 4.5.2 with the normal MVC stack. I''ve downloaded the latest Umbraco (7.5.3)

I have a website that has a whole lot of users. For simplicity, these users belong to groups and those groups belong to companies. The users are stored in an MS SQL database in custom user, group and company tables.

The content of the website (text, images, colorsetc) can be customized per group, company and for the entire site via a bespoke (rather messy) system.

I would like to move the whole website to use a CMS system (possibly Umbraco) but I have questions:

1) Can umbraco use my member structures for member permissions, content, etc? If not out of the box I would appreciate someone pointing me in the direction of the reading I need to do to get this coded.

2) Can umbraco display content based on the member group. Once again if not out of the box, would appreciate some guidance on how to accomplish this.

Example of content override would be:

In the code: "Hello , welcome to , the sky is ."

For everyone: "Hello Joe Smith, welcome to our site, the sky is blue."

For company XYZ: "Hello Joe Smith, welcome to company XYZ website, the sky is pink."

For Company XYZ, group ABC: Hello Joe Smith, welcome to company XYZ website, IT group, the sky is orange."

Many Thanks for any help

Pete Wed, 28 Sep 2016 17:48:45 +00:00
Cropping images Hi,

as I cut the images with the blue dot ?

I tried but it does not work ?


Lamouri FAKANI Wed, 28 Sep 2016 16:30:54 +00:00
FastSearch Package Question What is the proper way to remove fulltext package (4.7.2) from Umbraco? I do not see it in the list of installed packages and assume it is a manual removal (but need to know how to manually remove it). The reason is because some have assumed it's the reason for our failed upgrades. Please advise....thanks.

Deron Johnson Wed, 28 Sep 2016 16:14:13 +00:00
Exclude nodes without template? I really appreciate the app - its a great visual tool for some of our clients.

Would it be possible to hide the nodes that have no templates associated with them from the summary list? We use some nodes as data store areas and they can not be access directly (and thus, have no template associated).

Maybe make it a checkbox on creation or something.

Richard Eyres Wed, 28 Sep 2016 16:02:45 +00:00
Merging Multiple Existing Licenses for one Umbraco Installation One of my clients currently has multiple Umbraco instances each with a single website, on its own domain, with an Umbraco forms license.

They wish to move to a single Umbraco instance containing all of their websites, but from what I read it appears that a single instance of Umbraco can only use a single forms license.

Is it possible to get a new license issued containing all of the domains from all of the licenses that have been previously purchased?

Thanks in advance


Steve Wed, 28 Sep 2016 14:27:04 +00:00
Get id of a node. Hi everyone i am a newbie in umbraco. I want to ask how can we get id of a note if we already get it? Thank you so much.

Phong Nguyen Dinh Wed, 28 Sep 2016 14:00:28 +00:00
Authentication error Hi,

We are using Umbraco 7.5.3 and suddenly we got log out from Umbraco and getting below error.

Any1 experience the same? why are we getting this?

ERROR Umbraco.Core.Security.AuthenticationExtensions - The current identity cannot be converted to Umbraco.Core.Security.UmbracoBackOfficeIdentity System.InvalidOperationException: Cannot create a Umbraco.Core.Security.UmbracoBackOfficeIdentity from System.Security.Claims.ClaimsIdentity since the required claim is missing at Umbraco.Core.Security.UmbracoBackOfficeIdentity.FromClaimsIdentity(ClaimsIdentity identity) at Umbraco.Core.Security.AuthenticationExtensions.GetCurrentIdentity(HttpContextBase http, Boolean authenticateRequestIfNotFound)

Yasir Butt Wed, 28 Sep 2016 13:06:24 +00:00
SCSS compilation failure - undefined method 'visit_method' Hi,

I'm using Optimus with the Sass provider as an attempt to switch from using CSS to using SCSS for projects.

However, I'm having an issue when my SCSS is compiling.

undefined method `visit_method' for Sass::Tree::Visitors::Cssize::Bubble:Class

More accurately, I've pulled in Bootstrap 3 in SCSS version from here:

When I save the _bootstrap.scss file in the umbraco back office I get the above error. A bit of googling hasn't shed much light on it so I'm wondering if anyone here can?

I don't know if the issue lies in the provider or in the scss it self.

Other info:

Umbraco - 7.5.3 + Fano starter kit Windows 7 VS 2015 IIS Express .Net 4.5.2

Hope you guys can point me in the right direction.

For reference: Bower was used to install the bootstrap package, gulp was used to move the SCSS files into the appropriate location for Umbraco to find them.

Nik Wed, 28 Sep 2016 12:52:50 +00:00
Does it works with Courier Hey Dave,

Quick question, do the OEmbed Picker Property Editor works with Courier? Wanted to use it but the client is using Courier on the site so checking to see if this works with Courier


JLon Wed, 28 Sep 2016 12:00:56 +00:00
Users Active Directory integration We have quite a few sites with one client, and they're getting someone overloaded with different passwords and which users have access. They would like to integrate Active Directory with users so as to re-use their users/ passwords.

It looks to me like this package is the favored way to go:

However now that OAuth is built in to Umbraco, I wondered if anyone had any experience of going down that route? It appears to me that AD 2012 has OAuth support so I'm guessing there is legs in the idea but I can't find anyone saying they have achieved this.

As I know very little about OAuth and LDAP I'm concerned about biting off more than I can chew, so any pointers would be much appreciated.


David Peck Wed, 28 Sep 2016 11:26:00 +00:00
Is it possible to disabled specific field in specific node for user in UmbracoCMS I am trying to disabled specific field in specific nodeType for users of type 'writer' so they will not be able to change them (if there is no alternative, so hide just the same field its also ok..), but I need them to have access to the rest of the node content (watch and change!).

Is there a way to do this?

kfir Wed, 28 Sep 2016 10:24:15 +00:00
Using umbraco Image cropper, Focal point does not reflect on page Hi all,

I have created four properties for responsive image. I have using cropper on these properties on cms. And I accessed these pictures as:

var megaImageCrops = Newtonsoft.Json.JsonConvert.DeserializeObject<Umbraco.Web.Models.ImageCropDataSet>(mega.GetPropertyValue<string>("umbracoFile"));
var megaImageUrl = megaImageCrops.Src.GetCropUrl(imageCropMode: Umbraco.Web.Models.ImageCropMode.Pad);

var largeImageCrops = Newtonsoft.Json.JsonConvert.DeserializeObject<Umbraco.Web.Models.ImageCropDataSet>(large.GetPropertyValue<string>("umbracoFile"));
var largeImageUrl = largeImageCrops.Src.GetCropUrl(imageCropMode: Umbraco.Web.Models.ImageCropMode.Pad);

 var mediumImageCrops = Newtonsoft.Json.JsonConvert.DeserializeObject<Umbraco.Web.Models.ImageCropDataSet>(medium.GetPropertyValue<string>("umbracoFile"));
 var mediumImageUrl = mediumImageCrops.Src.GetCropUrl(imageCropMode: Umbraco.Web.Models.ImageCropMode.Pad);

 var smallImageCrops = Newtonsoft.Json.JsonConvert.DeserializeObject<Umbraco.Web.Models.ImageCropDataSet>(small.GetPropertyValue<string>("umbracoFile"));
 var smallImageUrl = smallImageCrops.Src.GetCropUrl(imageCropMode: Umbraco.Web.Models.ImageCropMode.Pad);

<source srcset="@megaImageUrl" media="(min-width: 1200px)">
<source srcset="@largeImageUrl" media="(min-width: 922px)">
<source srcset="@mediumImageUrl" media="(min-width: 768px)"> 
<source srcset="@smallImageUrl" media="(max-width: 767px)">
<img src="@megaImageUrl" alt="" />

where mega, large, medium, and small holds content Id of respective images.

yeah its working fine, and display respective images.

My point is, even i set a focal point on images from CMS, it does not reflects on page.

Some one here to help me?


Sabin Regmi

Sabin Regmi Wed, 28 Sep 2016 09:38:57 +00:00
Active Directory login works, but menu not loading Hello there.

I've managed to get backoffice logins working with Active Directory. However, upon initial login, the side-menu does not load, and I get some 417 Invalid token errors in the console. 417 Invalid token errors

If I hit F5 to reload the page, the error goes away, and the side-menu is loaded just fine.

This is the code:

var result = Task.FromResult(BackOfficeUserPasswordCheckerResult.InvalidCredentials);

            var pc = new PrincipalContext(ContextType.Domain, WebConfigurationManager.AppSettings["ldapAddress"]);

            var isValid = pc.ValidateCredentials(user.UserName, password);
            if (isValid)
                result = Task.FromResult(BackOfficeUserPasswordCheckerResult.ValidCredentials);
        catch (Exception ex)
            result = Task.FromResult(BackOfficeUserPasswordCheckerResult.InvalidCredentials);
            LogHelper.Error(typeof(ActiveDirectoryAuthenticator), "Error logging in using ActiveDirectory", ex);

        return result;

Note: Some code left out (does not affect the issue at hand)

And this is where I setup the UmbracoCustomOwinStartup:

 public class UmbracoCustomOwinStartup
    public void Configuration(IAppBuilder app)
        var applicationContext = ApplicationContext.Current;
        app.ConfigureUserManagerForUmbracoBackOffice<BackOfficeUserManager, BackOfficeIdentityUser>(
            (options, context) =>
                var membershipProvider = MembershipProviderExtensions.GetUsersMembershipProvider().AsUmbracoMembershipProvider();
                var userManager = BackOfficeUserManager.Create(options,

                userManager.BackOfficeUserPasswordChecker = new ActiveDirectoryAuthenticator();
                return userManager;


It seems the cookie being set is not correct, as it changes after I press F5.

Anyone have an idea?

Mark Arndt Lønquist Wed, 28 Sep 2016 08:34:10 +00:00
How to develop Active Directory Authentication on Merchello Front-End? I have used OpenID Connect to sign-in users from a single Azure Active Directory tenant on Merchello (The sample code is available here). I have implemented some changes on Merchello as follow:

  1. Project Merchello.FastTrack.Ui

    • Web.Config

enter image description here

  • App_Start/MerchelloADAuthenticationStartup.cs

Note: I create a new class in App_Start. The code in this class is same with Startup.Auth.cs from Azure Sample project from GitHub. enter image description here

  • App_Plugins/FastTrack/Views/CustomerMembership/LoginForm.cshtml

Note: I have updated this file to add a button that can help user to login on Merchello using AD Authentication.

    @inherits Umbraco.Web.Mvc.UmbracoViewPage<Merchello.FastTrack.Models.Membership.LoginModel>
@using System.Web.Mvc.Html
@using Merchello.FastTrack.Controllers.Membership
@using Merchello.FastTrack.Ui
@using Umbraco.Web
<div class="panel panel-default">
    <div class="panel-heading"><strong>Login to existing account</strong></div>
    <div class="panel-body">
        @if (Request.IsAuthenticated)
            <ul class="nav navbar-nav navbar-right">
                <li class="navbar-text">
                    Hello, @User.Identity.Name!
                    @using (Html.BeginUmbracoForm<CustomerMembershipController>("SignOut", new { area = "FastTrack" }))
                        <div class="form-group">
                            <input type="submit" value="Sign out" class="btn btn-default pull-right" />
            using (Html.BeginUmbracoForm<CustomerMembershipController>("Login", new { area = "FastTrack" }))
                <div class="row">
                    <div class="col-md-12 form-group">
                        @Html.LabelFor(x => x.Username)
                        @Html.TextBoxFor(x => x.Username, new { @placeholder = "Your email address", @class = "form-control" })
                        @Html.ValidationMessageFor(x => x.Username)
                <div class="row">
                    <div class="col-md-12 form-group">
                        @Html.LabelFor(x => x.Password)
                        @Html.PasswordFor(x => x.Password, new { @placeholder = "Your password", @class = "form-control" })
                        @Html.ValidationMessageFor(x => x.Password)
                <div class="row">
                    <div class="col-md-12 form-group checkbox">
                            @Html.CheckBoxFor(x => x.RememberMe) Remember Me
                        @Html.HiddenFor(x => x.SuccessRedirectUrl)
                        <input type="submit" value="Login" class="btn btn-default pull-right" />
            <div class="row">
                <div class="col-md-12 form-group">
                    @using (Html.BeginUmbracoForm<CustomerMembershipController>("SignIn", new { area = "FastTrack" }))
                        <input type="submit" value="Login with Active Directory" class="btn btn-default pull-right" />

  1. Project Merchello.FastTrack

    • Controllers/Membership/CustomerMembershipController.cs

I have added three methods (SignIn, SignOut, EnSession) in this class: enter image description here

  1. Work follow

    • When I run Merchello.FastTrack.Ui project. The MerchelloADAuthenticationStartup will run first (I have set owin:appStartup in Web.Config to start up my Authentication class).

    • From Login Page on front-end of Merchello, I click button "Login with Active Directory" to call method "SignIn" from
      CustomerMembershipController. The method will redirect to Microsoft
      Login site.

    • When Microsoft user login successful and it redirect back to my

My Target: I want to my Merchello site use Microsoft user as logged
customer on my website. How can I do that?

Nguyen Dung Tri Wed, 28 Sep 2016 08:18:59 +00:00
Error importing to RTE Hi,

I'm trying to migrate a site from Wordpress and am getting the following error logged by CMSImport when trying to match the content node of the Wordpress XML to a Rich Text Editor datatype.

Any ideas?

Here's the error:

System.ArgumentException: value ' Hi, Im struggling trying to call an async method from my Umbraco controller. Can anyone give an example what to do to get it working?

Amigo Tue, 27 Sep 2016 19:15:45 +00:00
Multi-site Implemtentation I am combining several sites into one which share the same membership type and data to keep from custom synchronization code. So I have multiple root nodes with different layouts and the same doc types. I believe I understand how this works when I deploy to the server and actually have multiple IP's/dns names but what about dev? I have had to resort to setting umbracoHideTopLevelNodeFromPath to false and...

To elaborate I tackled the site template issues as follows in the child templates:

var site = Model.Content.AncestorOrSelf(1).Name;
Layout = string.Format("~/Views/{0}/SiteLayout.cshtml", site);

All of the templates point to a layout page that has no layout info just some base css and js require calls. By convention I have a folder under views named the same as the root site node and having a SiteLayout.cshtml page under it.

  • ~/Views/Site1/SiteLayout.cshtml
    • Layout = "~/Views/SiteLayout.cshtml"
  • ~/Views/Site2/SiteLayout.cshtml
    • Layout = "~/Views/SiteLayout.cshtml"
  • etc...
  • ~/Views/SiteLayout.cshtml (RootMaster)

Now the issue is everywhere that a relative url was hard coded in the html. I tried using @Url.Content("/") which doesn't do what I need so the only thing I can think of is adding a helper method that basically does the same as the above and appends the url to the closest root ancestor.


Any tips or suggestions. Maybe I am missing an obvious answer here? Am I completely barking up the wrong tree?

Jeremy Newman Tue, 27 Sep 2016 18:03:23 +00:00
Discount code in order confirmation email Hi

I have the following in my order confirmation email:

Discounts -{{TotalDiscountPrice}}

But I would like to also show the actual discount code used by the customer. Is there a way of doing this? I cannot see this option in the documentation.

(bearing in mind we're on merchello v1.11.0 if it makes a difference)

Thanks for any help

Bex Tue, 27 Sep 2016 15:27:34 +00:00
Data Types within a folder is not working Hi Kevin,

I have 2 environments running on Umbraco 7.5.3, and also with uSync installed.

To replicate the issue,

I have Environment A which i have data types within the Umbraco Folder. Eg like the below

enter image description here

I have done a Full Export on Environment A, i have then copy the uSync folder to Environment B (i've removed everything inside the uSync folder before i copy things in)

Within Environment B, I have then do a Full Import. What I've got is as below. Some of the default properties gets imported into the Richtext Editor folder which I'm not sure why.

Any ideas?


enter image description here

JLon Tue, 27 Sep 2016 14:48:34 +00:00
Ditto + Nested Content Hi All,

Was wondering if anyone tried Ditto + Nested Content before and if there's any code example with Custom Controllers for the Nested Content and also the Nested Nested Content mapping and rendering?


JLon Tue, 27 Sep 2016 08:37:29 +00:00
Failed-Network error when exporting form entries from Contour as CSV Hi all!

We've been having an error for a few weeks now in which we cannot download CSV files of our form entries in Contour. Across multiple browsers and operating systems, we are getting some version of a "Failed-Network Error" message on the file download in the tray at the bottom of the browser.

Just to clarify, we're using the icon that looks like this on the left side of the screen:

Screen One

Which gives us a lightbox like this:

enter image description here

Aaand clicking "export data" gets us this error:

enter image description here

This has been a pretty large issue for us, which we've been able to get around using the other export tools Contour offers, but we've had some trouble with corrupt exports using those other options. I'd definitely like to find a solution to this if there is one!


Katlynn Mon, 26 Sep 2016 16:11:19 +00:00
Razor search in a multilingual site @using Examine.LuceneEngine.SearchCriteria @inherits Umbraco.Web.Macros.PartialViewMacroPage @{ string searchTerm = Request.QueryString["keywords"]; if (String.IsNullOrWhiteSpace(searchTerm)) { searchTerm = ""; } var searcher = ExamineManager.Instance; var searchCriteria = searcher.CreateSearchCriteria(); var query = searchCriteria.GroupedOr(new[] { "nodeName", "siteTitle", "content" }, searchTerm).Compile(); var searchResults = searcher.Search(query).Where(r => r["__IndexType"] == "content").ToList(); } @if (searchResults.Any()) { <div class="search-results-box"> @foreach (var result in searchResults) { var node = Umbraco.TypedContent(result.Id); var pathIds = result["__Path"].Split(','); var path = Umbraco.TypedContent(pathIds).Where(p => p != null).Select(p=> new {p.Name}).ToList(); <div> <section class="results-box"> <h3> <a href="@node.Url">@String.Join(" > ", path.Select(p => p.Name))</a> </h3> @if (result.Fields.ContainsKey("siteTitle")) { <p class="results-title"><strong>@result["siteTitle"]</strong></p> } @if (result.Fields.ContainsKey("bodyText")) { <p>@result["bodyText"].Truncate(250)</p> } </section> </div> } </div> } else { <p> No result: @if (!String.IsNullOrWhiteSpace(searchTerm)) { <text>'@searchTerm'</text> } </p> }

I have now prepared the site for two language versions: < norwegian language < english language

The code works, but searches are currently showing result from both language versions.

How can I separate search so they appear in only one language at the time?

I would assume that it is the line that must be changed to distinguish between the language versions / subdomains, but how?

var searchResults = searcher.Search(query).Where(r => r["__IndexType"] == "content").ToList();
Tom Engan Fri, 23 Sep 2016 12:58:37 +00:00
Umbraco Theme Can you please any one help me to find Is any free umbraco theme available?

JansyRani Tue, 20 Sep 2016 06:27:24 +00:00
Umbraco ModelsBuilder v3 with Umbraco v7.5.2: More that one type want to be a model for content type File Hi, I have been developing a website for some time without using Umbraco ModelsBuilder. I have created a couple of my own models in the /Models folder: ContactModel for the custom contact form and ShowcaseProductModel for my product card. Everything went while I was developing the website in one language. Yesterday, I decided to freeze the development of the features and add two other languages using Vorto.

So, I have studied the ModelsBuilder Wiki and have read and watched some youtube videos of Jeroen Breuer on Vorto. I liked his idea to use the Umbraco.ModelsBuilder.Api to generate models inside my /Models folder instead of inside /App_Data and/or /bin. So, I configured ModelsBuilder in the Web.config

<add key="Umbraco.ModelsBuilder.Enable" value="true" />
<add key="Umbraco.ModelsBuilder.EnableApi" value="true" />
<add key="Umbraco.ModelsBuilder.ModelsMode" value="Nothing" />

I added a dummy Paraplu.cs class inside /Models, installed the ModelsBuilder Custom Tool and configured the Properties of theParaplu.cs` to use it:

enter image description here

I have also added .user file with the same name as the solution ed4u.UmbracoModelsBuilder.user:

<?xml version="1.0" encoding="utf-8"?><configuration>
    <modelsBuilder version="" umbracoUrl="http://localhost:19617" umbracoUser="user" umbracoPassword="password" />

Immediately, I got a compilation error as my IIS Express of the Visual Studio 2015 was not running yet and there was nothing listening on port 19617. So I hit Ctrl-F5. It opened my website and I could browse it as well as my Umbraco backend.

Back to models generation. Right clicked the Paraplu.cs file and then Run Custom Tool. I could see the model classes being generated. I have refreshed the cache in the browser and everything seemed still to be working. But I know that one can only be for 100% sure if the Visual Studio is completely restarted. So I did.

When I opened the solution again and hit Ctrl-F5 again, it threw this error at me even before I saw the website:

enter image description here

The error was thrown from ModelsBuilderApplication at line 32 (the long line on the error stack trace below ModelsBuilderApplication at line 55:

if (config.EnableFactory)

I have tried a lot of things as a workaround but each time it came back to this one error message.

I wonder if it has anything to do with the fact that I have already had 2 (not generated) models before triggering the ModelsBuilder.

Andre Roussakoff Sun, 28 Aug 2016 13:04:25 +00:00
How do I retrieve media entities? I'm in the process of building a twitter feed for my website using the utwit library. Overall it works well, except for the fact that the media data is missing from the Entities property of the Status object for tweets which contain an image.

This is true whether or not the tweet with an image in it is a retweet. When I inspect the returned object in visual studio, the entities object only contains urls, hashtags and user mentions (in agreement with the Entities definition in the Status model). The Twitter API itself contains additional properties (as detailed here:

Is there something extra I need to do in order to fetch the media information of a tweet with an image in it, or is this just an omission from the utwit API? The request I am using is built up as follows:

var config = SettingsNode.GetPropertyValue("auth-alias");

var tweets = GetLatestTweets(config, 4, true, true)

Any help would be appreciated.

Warren Lockhart Thu, 09 Jun 2016 13:22:04 +00:00
Using ApplicationContext.Current.ApplicationCache.Runtime I would like to store a small number of text strings in the runtime cache

using Umbraco.Core.CacheHelper



but after searching, I am not 100% clear on how to get and to set values - can anyone supply an example.

I think I can use get to also set values but how would I update them once set?

I have tried


where I have created a class myObject and and instance rC but this crashes

Compiler Error Message: CS0120: An object reference is required for the non-static field, method, or property 'Umbraco.Core.ApplicationContext.ApplicationCache.get'
Tim C Mon, 06 Jun 2016 10:08:28 +00:00
Models Builder Gripes The Models Builder has shipped with Umbraco for a while now and so far reactions seem to fit into three categories:

  • "Best thing since sliced bread, could not live without it anymore!"
  • "What an ugly mess. Can you disable it all by default?"
  • silence

Before it shipped with Umbraco, the Models Builder was mostly used by "advanced" devs, ie by people whose feedback would go "it would be nice if the generated classes could be marked with the GeneratedCodeAttribute". That type of concerns.

I'm starting this thread to try to collect feedback from "the vast majority", people who never used it before. Factual feedback, that is: apart from "lacking documentation", being "fantastic" or "a pain", practically, what issues are you encountering? Where are you wasting time? What's hard to understand / not working / not obvious / a pain?

This is a unique opportunity to rant: it does not have to be constructive, just describe your best Models Builder WTF moments.



Stephen Tue, 03 May 2016 06:23:20 +00:00
PayPal Updates With TeaCommerce Hi

I've just been sent a link by a colleague saying that Paypal are rolling out some changes in June.

We've got a few client sites running TeaCommerce with PayPal.

As this is an old version of TeaCommerce I am not quite sure what it means for us. Will this change break all these sites? If so, will there be a fix available or is it something we will need to do something about?

Thanks for your help


Bex Wed, 24 Feb 2016 12:20:19 +00:00
An entry with the same key already exists Hello,

I am building a site in Umbraco 7. I was on 7.3.x now updated to 7.4.0. On random occasions the site will break and I will get the following message.

 [ArgumentException: An entry with the same key already exists.]
   System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +52
   System.Collections.Generic.SortedList`2.Add(TKey key, TValue value) +6744873
   Umbraco.Core.MainDom.Register(Action install, Action release, Int32 weight) +128
   Umbraco.Core.Sync.DatabaseServerMessenger.Boot() +55
   Umbraco.Web.BatchedDatabaseServerMessenger.Startup() +186
   Umbraco.Web.BatchedDatabaseServerMessengerStartup.ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) +63
   Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) +37
   Umbraco.Core.CoreBootManager.<Complete>b__a(IApplicationEventHandler x) +230
   Umbraco.Core.EnumerableExtensions.ForEach(IEnumerable`1 items, Action`1 action) +141
   Umbraco.Core.CoreBootManager.Complete(Action`1 afterComplete) +293
   Umbraco.Web.WebBootManager.Complete(Action`1 afterComplete) +60
   Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +234
   Umbraco.Core.UmbracoApplicationBase.Application_Start(Object sender, EventArgs e) +34

I have narrowed the issue and it is related to the examine index. In the development environment I just need to rebuild and it works fine but on the test we need to stop application pool delete examin index and restart things.

I also get this from the logs

2016-02-16 08:12:50,006 [P4656/D62/T1] INFO  Umbraco.Core.DatabaseContext - CanConnect = True
 2016-02-16 08:12:50,051 [P4656/D62/T1] INFO  Umbraco.Core.DatabaseContext - CanConnect = True
 2016-02-16 08:12:50,051 [P4656/D62/T1] INFO  Umbraco.Core.DatabaseContext - CanConnect = True
 2016-02-16 08:12:50,072 [P4656/D62/T1] INFO  Umbraco.Core.DatabaseContext - CanConnect = True
 2016-02-16 08:12:50,072 [P4656/D62/T1] ERROR Umbraco.Core.CoreBootManager - An error occurred running OnApplicationStarted for handler Umbraco.Web.BatchedDatabaseServerMessengerStartup
System.ArgumentException: An entry with the same key already exists.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.SortedList`2.Add(TKey key, TValue value)
   at Umbraco.Core.MainDom.Register(Action install, Action release, Int32 weight)
   at Umbraco.Core.Sync.DatabaseServerMessenger.Boot()
   at Umbraco.Web.BatchedDatabaseServerMessenger.Startup()
   at Umbraco.Web.BatchedDatabaseServerMessengerStartup.ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
   at Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
   at Umbraco.Core.CoreBootManager.<Complete>b__a(IApplicationEventHandler x)
 2016-02-16 08:12:50,074 [P4656/D62/T1] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
System.ArgumentException: An entry with the same key already exists.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.SortedList`2.Add(TKey key, TValue value)
   at Umbraco.Core.MainDom.Register(Action install, Action release, Int32 weight)
   at Umbraco.Core.Sync.DatabaseServerMessenger.Boot()
   at Umbraco.Web.BatchedDatabaseServerMessenger.Startup()
   at Umbraco.Web.BatchedDatabaseServerMessengerStartup.ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
   at Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
   at Umbraco.Core.CoreBootManager.<Complete>b__a(IApplicationEventHandler x)
   at Umbraco.Core.EnumerableExtensions.ForEach[TItem](IEnumerable`1 items, Action`1 action)
   at Umbraco.Core.CoreBootManager.Complete(Action`1 afterComplete)
   at Umbraco.Web.WebBootManager.Complete(Action`1 afterComplete)
   at Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e)
   at Umbraco.Core.UmbracoApplicationBase.Application_Start(Object sender, EventArgs e)

I have read that this could be related to a duplicate user but no such things exists in the database.

Another issue that might be causing this is that the dev site and the test site share the same umbraco database. I am not sure if that could cause this kind of conflict.

In any case I am really confused about this error and any help would be highly appreciated as it is really critical.

Thanks in advance, Vasilis

Vasilis Mon, 15 Feb 2016 11:07:34 +00:00
Link External User Programmatically Hello, I was wondering if there was a way to link external users to a user through code. For example if I want to link a google account and want to link it to an existing user, can I do this programmatically?

after looking at the database it looks like I somehow need to insert a record into the dbo.UmbracoExternalUser table. Is this possible through the API?

Thanks in advance for your help.

Adam Zimmer Thu, 11 Feb 2016 15:23:41 +00:00
Courier support for nested content Hello,

Is there any Courier support for Nested Content? When transferring items with Nested Content fields with document types containing Media Pickers and Content Pickers, the references in those fields are broken.


John Ligtenberg Fri, 06 Nov 2015 14:40:47 +00:00
Disabling access to umbraco backoffice Hey all,

Is it possible to disable access to umbraco's backoffice while leaving all the surface and api contorllers working? What would be the correct way to achieve this?

I have 2 copies of the same solution running on the IIS in different websites. One is used as "backend", the other - "frontend". I would like to restrict the access to "frontend"'s /umbraco url aka backoffice.

Umbraco 7.2.6

Vaidas Fri, 16 Oct 2015 09:22:36 +00:00
Umbraco Forms validation for custom settings types Hi,

I'm building an Umbraco Forms 4.1.1 solution for a client, and we are building some custom setting types for this solution.

Our setting types are being rendered correctly and the data is being stored and received as expected.

I am now trying to add some validation for these fields and prevent closing the settings pane if the fields cannot be validated.

I see nowhere in the documentation on how to achieve this behavior, is it at all possible or is there workarounds that doesn't involve messing about the Umbraco Forms scripts?

Nick Frederiksen Tue, 08 Sep 2015 08:59:02 +00:00
Content Picker with a Start Node in Macro Hi!

I'm trying to modify a Content Picker in Umbraco in order to allow for a start node to be set when you are using macros. The start node should either be the current node, or a fixed node. Is there anyway to create this? I've tried to "copy" the Content Picker that already exists but I'm failing, since it isn't allowing me to click the "add" button.

If anyone have struggled with this before, please send me a hint in how to solve it! :)

Robert Stigsson Tue, 25 Aug 2015 13:44:44 +00:00
Umbraco 7 with child web-api application, unable to access CMS,-unable-to-access-CMS,-unable-to-access-CMS Morning all,
With umbraco 6. I've been able to add child applications under an Umbraoc install. The inheritance of the parent web config details has been prevented by wrapping <system.web>, <system.webserver>  and <system.web.webPages.razor>  with the <location path="." inheritInChildApplications="false" > element.

I've applied the same principles to an Umbraco 7.2.1 install framework 4.5 (IIS 7). Wrapping the <system.web>, <system.webserver> with the <location> element. The child application is a web-api project framework 4.5.

The Umbraco site works, the child application works. When I access the CMS, I get the folowing error:

HTTP Error 500.22 - Internal Server Error

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

It mentions several steps to try. The http modules section is in <system.web> and <system.webserver>. The validation validateIntegratedModeConfiguration attribute is set to false.

Has anybody come across this before? Is this the correct way to allow a child application to exist under an Umbraco application?

Thanks in advance

Efe Wed, 04 Feb 2015 10:46:12 +00:00
Add fields programmatically? Attach custom data? We have some data that needs to be attached to each record created in Contour / Forms. Currently we're adding some fields manually and let a workflow add the data. However - that requires editors to remember to add those (hidden) fields. And also it means the form gets a bit cluttered with the hidden fields. 

So one way would be to let the workflow check for the fields, and if they are not present - add them programmatically.

Another way would be to add the custom data to the record, "outside" the fields, but I don't think that is possible?


Jonas Eriksson Thu, 29 Jan 2015 13:35:55 +00:00
Content Picker with Configurable Start Node as a Macro Parameter in 7.1.4 Hello Umbraco Colleagues,

I'm using version 7.1.4.

I have a macro that inserts content into a rich text editor. The macro has a content picker parameter.

I need the content picker to have a start node that shows only the child nodes of that start node. The content picker for macros starts from the root node and I need to have it start deeper in the tree and limit the node choices that may be inserted.

How can I do this? Any help would be appreciated.

David Hill

David F. Hill Wed, 18 Jun 2014 20:13:07 +00:00
How to get MemberPicker on list of macro parameter types? Just wondering how to get the member picker on the list of macro parameter types?

Can't seem to find any() info or documentation on this.

I have searched the internet for "property editor" but not found the solution.

Basicly I just want to be able to pick a member when inserting a macro with a partial view, parsing memberID as parameter.

Weber Tue, 25 Feb 2014 16:35:21 +00:00
log4net public token issues (could not load file or assembly) We have some packages (and external modules) which we use who are using log4net. But after installing these packages we have the following error: Could not load file or assembly 'log4net, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Apparently umbraco depends on a log4net version without public key and the log4net (nuget package) has public key.

To use both log4net assemblies I solved this like this:

  1. get the umbraco version of log4net.dll and move it to a new folder: bin\log4net-1.2.11-nokey
  2. pull the new log4net nuget package (which is signed with a new key)
  3. Add the code below to the assemblyBinding section of the web.config:

if you recompiled the log4net dll, you might need to update the publicKeyToken (you can use dotpeek or ILspy to find the publicKey easily.

        <assemblyIdentity name="log4net" publicKeyToken="null" culture="neutral"  />
        <codeBase version="" href="bin\log4net-1.2.11-nokey\log4net.dll" />
        <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" />
          <bindingRedirect oldVersion="" newVersion=""/>
          <codeBase version="" href="log4net.dll" />

Hope it helps someone!

Damiaan Wed, 06 Nov 2013 11:41:18 +00:00
Notifications not sent after translator completes a translation task I just posted the following issue on CodePlex for the behavior that I've verified in Umbraco 4.0.1, 4.6.1 and 4.7:

The send to translation notification works as expected, but after a translator completes the translation and uploads the translated XML file, no notification is sent back to the person who assigned the translation task or to anyone who has subscribed to notifications for "Translate" or "Update", both of which I would expect to fire the notification.

No error is generated in the error log or for the user, it just doesn't work.

The translated page does get updated and is awaiting approval and publishing after the XML file is uploaded, it is just that no one is ever made aware of it through umbraco.

Craig Palenshus Wed, 16 Mar 2011 20:38:26 +00:00