• Episerver and Bot Management

    Description Websites can have a sizable number of bots which can contribute to a large number of page views in analytics. This article provides information on mitigation of bots on the site. Resolution Episerver does not have a documented 3rd party Bot detection tool that unequivocally can be recommended and supported.  Bot Detection can be done programmatically as seen in example below: How do I detect bots programaticallyThe discussion moves towards a smart Robots.txt and we...

  • Selecting block rendering on a content area

    Description Problem: How to make the CMS display different "display options" for different Block / ContentArea fields. e.g: A news block that has multiple views: Detail, Call to Action, Summary with three display options for this block as well. In the Content Area that sits in side bar, one displays the summary display option. In the Content Area that sits in the center of a page the detail and summary display options should show. Resolution Based on this post https://getadig...

  • Page loads slower after updating to .NET 4.7

    Description The following issue occurred in Microsoft's 4.7 .NET framework update.  "The internal implementation of System.Web.Caching.Cache uses Coordinated Universal Time (UTC) time-stamp for absolute expiration. But this particular Cache.Insert (string, object, CacheDependecy, DateTime, TimeSpan) Insert overload method does not make sure whether the expiration time is converted to UTC. Therefore, expiration for items that are inserted into the Cache object by using this overload will...

  • The link you specified does not work. This may either be the result of temporary maintenance or an incorrect link

    Description After deploying to an Azure environment the following error message is thrown when attempting to access or log into the site. Page could not be loaded The link you specified does not work. This may either be the result of temporary maintenance or an incorrect link. Resolution This error is often thrown when multiplexing is set as the default providers are set to multiplexing, which is not supported within an Azure environment. Often changing the default providers r...

  • Cloud Flare not caching images when cache-control is public

    Description When images have a their Cache-Control header set to "PUBLIC" CloudFlare's CF-Cache-Status header is set to "MISS" causing images not to be served from the CDN cache even when the web.config file is properly configured to allow caching of images. Resolution This can sometimes be caused by JavaScript doing image handling or manipulation. This can be tested by disabling JavaScript in your browser and doing a hard refresh of the page using crtl+F5. If doing this gives...

  • Uploading Blobs to Azure Storage with PowerShell

    This article describes the PowerShell command to upload local Blob storage to Azure Blobs  Resolution When uploading media in Episerver, the binary data are stored in a system called blob providers. By default, media are stored on disk in a folder located at <path_to-site>\App_Data\blobs. Moving all those Blobs to Azure is just one line of code in the Azure PowerShell console (just make sure the current directory is the blobs folder): ls -File -Recurse | Set-AzureStorageBlob...

  • Set <staticFile> Configuration in web.config to Ensure Latest Media Files Retrieved Client Side

    Media asset caching is controlled by configuration. The associated class that handles this is EPiServer.Web.StaticFileHandler. This class inherits from MediaHandlerBase which is in the same namespace as StaticFileHandler. Within MediaHandlerBase there is a method called SetCachePolicy which takes into account the configuration in web.config. Here is the comment in the decompiled source: /// <summary> /// Configures cache policy of a static file based on configuration rules ...

  • Reusing the same License.config file across multiple Episerver sites in your local environment

    If you have a local environment where you have added multiple episerver sites in IIS, it can save you time to use the same License.config file across all sites. For example, let us say you went to license.episerver.com. You created and downloaded a partner developer license that was bound to your machine's MAC address. Instead of creating a new license for each site you add after the fact, you can just use the same one by referencing it with a bit of configuration. In addition, if t...

  • Preview unavailable in edit mode

    No preview in edit mode. Instead the users see this text: Preview Unavailable Failed to load the preview within the given time constraints. Cause The server took to long to return the preview. The default preview timeout is 15 seconds. Resolution Update the preview timeout by adding this configuration in web.config: <appSettings> <!-- Set iframe timeout to 20 seconds --> <add key="episerver:ui:PreviewTimeout" value="20000" /> </appSettings> The value is in mi...

  • Episerver recycle bin(trash) appears to be blank

    The recycle bin appears empty when attempting to view the permissions as an admin user, despite the entries in the database. Cause Improper permissions for the recycle bin can cause this issue. The following image shows default permissions that may not allow web admins to view files there.  Resolution Add the WebAdmins role to the recycle bin with the Read/Create/Change permissions. If the user needs to be able to empty recycle bin (Empty Trash), add the Delete permi...

  • Episerver load balancing example - Configuring events over WCF with TCP/IP

      Episerver load balancing can be used to improve both security and performance. This KB article shows a common load-balancing configuration with one content authoring (CA) server and two content delivery (CD) servers.  In this example, content authors publish on the CA server which, in turn, broadcasts events to a listening service on the two Content Delivery (CD) servers. Next, a "publish is made" event is generated on CA, which expires the cache on CD1 and CD2. The cache on CD1 and ...

  • [DirectoryServicesCOMException (0x80072030) There is no such object on the server]

    EditUser and AdminGroup pages not loading in Episerver CMS UI for some users.  The error thrown is in the Episerver logs.   [DirectoryServicesCOMException (0x80072030) There is no such object on the server] Resolution This error:[DirectoryServicesCOMException (0x80072030) There is no such object on the server] is typically associated with an incorrect reference to an LDAP path that is invalid. In order to resolve the issue, one will have to troubleshoot the actual account is...