Søren Kruse | Sitecore and .NET

  1. Sitecore Social Connected Exception: "Application in args should not be null"

    You might run into this exception when trying to log in using one of the social connectors that is part of the Sitecore Social Connected module (Facebook, Twitter, LinkedIn, Google+) ERROR Sitecore.Social: Application in args should not be null Exception: Sitecore.Social.NetworkProviders.Exceptions.AuthException Message: Exception of type…

  2. Sitecore MVC: StackOverflowException when returning views instead of partial views

    If you end up getting a StackOverflowException in one of your controllers when using MVC with Sitecore it might be because you are returning View() instead of PartialView(). If you want to return View() in your controller then you either need to set layout to null/empty string on the…

  3. Collection of small useful javascript functions

    Every once in a while I'll be working on some minor javascript stuff and need some little nifty function that is usually available through whatever javascript framework being used - be it lodash, jQuery, angular or something else - but I can't or don't want/need to use one of…

  4. Sitecore 8 Web Forms For Marketers (WFFM) email settings cheat sheet

    I've just been working with WFFM a bit - migrating forms from Sitecore 6.5 - and had to also set it up to use TLS for the mail server. This post is basically just a cheat sheet of the email options that can be configured and where you can…

  5. Sitecore MVC Exception on Content Delivery servers

    If you use MVC and follow Sitecore's guidelines with regards to which config files should be enabled/disabled on CD servers you might run into this exception: InvalidOperationException: No route in the route table matches the supplied values. The issue This can happen when you have deleted/disabled the Sitecore.…

  6. Infinite loop with language fallback and non-standard named standard values item

    Enable item-level language fallback and have a non-standard named __Standard Values item and you're going to have bad time - specifically a StackOverflowException. Those are notoriously hard to troubleshoot. Trust me... Apparently the name of the standard values item, __Standard Values, is hardcoded inside Sitecore in several places - which…

  7. The new DataMapper attribute in Glass Mapper

    Late last year I got my pull request to Glass Mapper merged, adding a [DataMapper(Type)] attribute for use in attribute configuration of models. Before this it wasn't possible to explicitly state which data mapper should be used for mapping a property. You had to do add the data mapper…

  8. Hidden config "include folder" feature in Sitecore

    All Sitecore developers knows about \App_Config\Include - that all *.config files in that folder is merged into the final Sitecore configuration. They also know that they are loaded in alphabetical order and if you want to overwrite something in the default Sitecore configs you have to make sure…