• Configure browser caching in DXC/Azure environment

    The following settings need to be placed in the Web.config   <configuration>         <system.webServer>                 <staticContent>                         <clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />                 </staticContent>         </system.webServer> </configuration>     <configuration>         ...         <configSections>              ...

  • License errors and solutions for Episerver

    Description Known Episerver license errors and solutions. Resolution License ’xxxx’ is already active for a different instance on the current machine. Symptom: This errors shows up for Episerver Relate+ 2R2 sites when there are multiple communities installed. Solution: A hotfix is available i.e. #124397. Another solution is to load a specific Relate license for each Community. In your web.config, configure <episerver.community>'s <site>-element for the Relate site t...

  • A/B testing doesn't work after setting up Azure IP restrictions

    Description This article describes an issue with A/B Testing after setting up Azure IP Restrictions. The error 403 occurs for A/B testing thumbnail images because the requests for the thumbnails are made from the server on which the site is running. Resolution In Azure, you can add IP rules that allow/deny traffic to your site or app. When you create a single rule for access, everything else is denied. So, if you set rules to allow/protect access to your site, add a rule to al...

  • Autodiscover 404 errors

    Description In some cases, autodiscover requests can create numerous 404 errors. If the Exchange server is configured to reach out to a domain used by a website and the file autodiscover.xml file does not exist there, IIS logs will show thousands of 404s every day. In the case of Office 365, autodiscover requests will always be routed to the domain. For example, https://domain.com/autodiscover/autodiscover.xml.   These additional requests are unlikely to create significant site traffic,...

  • 409 conflict Creating page/block

    Description A couple of partners was trying to create a page or block in editmode but the Create Page/blocks button doesn’t appear. Instead they get a javascript error displaying some internal dojo-error. Request URL: http://mydomain/EPiServer/cms/Stores/contentdata/ Request Method: POST Status Code: 409 Conflict Resolution Please check and see if you use custom errors handling in the following fragment of web.config file:<httpErrors errorMode="Custom" exi...

  • Duplicate Block Tab in CMS Commerce UI

    Description Are you seeing the below in the Episerver CMS Commerce UI after updating to CMS 11.6 or higher?    Resolution Search for shared blocks in the CMS web.config and comment out its parent <viewManager> section.  If you have other block component code you may need to remove this as well. 

  • Remove Trailing Slash From the URLs

    Description IIS URL rewrite module for removing Trailing Slash From the URLs do not work in CMS edit mode, page collapses and show error "too many redirects". Resolution   Add below rewrite rule for trailing-slash in web config.  <rewrite> <rules> <rule name="Remove trailing slash" stopProcessing="true"> <match url="(.*)/$"/> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile&quo...

  • Caching of Static Files in Blobs

    Description This article contains some resources for caching static files in Episerver Blobs. Resolution Please review all the links and try the settings and recommendations. DXC CDN recommendationsHow: Caching of static files in Blob's?Configuring staticFile

  • If you can't use TLS 1.0 anymore

    Description If you can't use TLS 1.0 anymore using a commerce site and you get errors like this for instance: “Could not establish trust relationship for the SSL/TLS" Resolution Add the following in an initialization module or under Application_Start(): ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

  • Google Analytics missing in Episerver CMS

    Description Google Analytics does not show in Admin => Tool Settings. Also, Google Analytics gadget is missing in CMS. Resolution The virtual roles GoogleAnalyticsReaders and GoogleAnalyticsAdministrators to authorize editors to the gadget and administrators to the administrative interface. Please add this in <virtualRoles> section of <episerver.framework> config: <add name="GoogleAnalyticsReaders" type="EPiServer.Security.MappedRole, EPiServer...

  • The settings property 'SubscriptionInfo' was not found

    Description This article describes an error in the Episerver workspace and how to disable it. The complete error message is regarding the EPiServer Subscription Job. Job: EPiServer Subscription Job (Hourly)Message: Exception has been thrown by the target of an invocation. [The settings property 'SubscriptionInfo' was not found.] Resolution Subscriptions were configurable and were available in Episerver CMS 6.0/R2  as seen here.  If you are not using the built-in subscription f...

  • Blob Application logging shows empty log

    Description In CMS 11, the integration environment is configured with Blob storage, log level information and is using Episervers Logging classes. When trying to log with the lines of code below, nothing shows up in the application logs.  @using EPiServer.LoggingILogger logger = LogManager.GetLogger(); logger.Debug("Some debug message"); logger.Error("Some error message"); logger.Information("Some info message"); Resolution In EPiserver CMS 11 ther...

  • Custom Cultures in Episerver DXC

    Description This article describes an issue with registering custom cultures in Episerver DXC. Resolution While it is possible to register a custom culture language locally using the CultureAndRegionInfoBuilder, it doesn't work in Azure WebApp. The CultureAndRegionInfoBuilder.Register method throws UnauthorizedAccessException. Since running Episerver DXC as a PaaS WebApp in a multi-tenant environment, this puts certain limitations on what can be changed on the OS level. These ...

  • Issue with visitor group Geographic Coordinate

    Description This article describes an issue when trying to set up a visitor group with a geographic location and have setup the Google Api but seeing the 'Google Maps API Terms of Service' pop up when trying to use it. The app key is setup as following: <add key="googleMapsApiV3Url" value="https://maps.googleapis.com/maps/api/js?key=AIzaSyCkPtIlRi3rEqG1MDY"/> Resolution Setting the key up this way is incorrect. Instead it should have it in application...

  • DataTime over different timezones.

    Description A customer runs a website which is hosted on Azure. For example West Europe (The Netherlands), this is also where the company is located. Now their question: When they enter a date in the Cms the date on the website is shown with a 2 hour difference. How do you fix the 2 hour difference issue? Resolution There are two solutions: Try to set the timezone of the webapp to the same timezone the company is in. They can set it under application settings in azure: WEBSIT...

  • How to troubleshoot EPiServer.Framework.Initialization.InitializationException

    Description An exception of type 'EPiServer.Framework.Initialization.InitializationException' occurred in EPiServer.Framework.dll but was not handled in user codeAdditional information: Initialize action failed for Initialize on class EPiServer.Data.DataInitialization, EPiServer.Data, Version=10.10.3.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7 Resolution This error indicates that there is a problem during initialization. It may be the code cannot accept data from the d...

  • Missing modules or packages when loading Episerver site

    Description If you see the following error see the resolution below Did not find a module by assembly 'EPiServer.GoogleAnalytics, Version=1.10.3.0, Culture=neutral, PublicKeyToken=null'Parameter name: moduleAssembly Resolution Usually when you first build a project it will build the necessary package updates. In some cases you may not have a package on first load or due to your own changes.  Right click on the solution and click "restore nuget packages."  If this fai...

  • Seeing other environment URLs under the Cloud Licenses screen

    Description When you navigate to the Cloud License tab of Manage Websites in the administration portal of Episerver you may see URLs that belong to environments you are not currently in (for example QA URLs in Production or Production in QA). Resolution This behavior is expected so don't be alarmed. If you use the same license.config file in multiple environments you will see a list of every URL you have authorized to use that license key. Since URLs are tied to a license key ...

  • Issue with Visitor Group Geographic Location criteria

    Description This article describes an issue when using the built-in (Geographic Location) criteria. The editor can see the personalized content in edit mode but not after logged out/when clicking on view on website. Resolution Make sure GeocityLite database is available in App_Data. Check in the IIS logs to see where's the real client IP come from e.g firewall, load balancer, proxy server etc...?http://blogs.iis.net/deanc/iis7-8-logging-the-real-client-ip-in-the-iis-hit-logsIf...

  • Find UI is missing

    Description On a website with active directory membership and role provider active, the tab for Find is missing.  The Find tab relies on SearchAdmins group as well as WebEditors. Those groups cannot be created in Active directory and adding virtual roles for WebEditors and SearchAdmins does not work. Resolution In the <episerver.framwork> section of Web.config file try changing from: <virtualRoles addClaims="true"> to: <virtualRoles addClaims="fal...

  • Further information on DXC and caching mechanisms

    Description How does caching work under the hood for DXC sites? (on default setups) Resolution Default DXC sites do not use a distributed cache (such as Azure Managed Cache Service or Redis -  agreement must be made with episerver for this to be added). Each running application has its own instance of an in-process cache. When an item is evicted from cache in one running application instance (e.g. due to an content update) a message is sent to the other running instances (in DXC ...

  • Episerver Scheduled Mirroring Job Error: The connection was closed unexpectantly

    Description If the following error occurs during mirroring see below for a potential solution. Failure during export: The underlying connection was closed: The connection was closed unexpectantly Resolution This is likely due to a timeout. First to verify it is a timeout issue try reducing the amount of data moved by mirroring. To do that deleting the existing mirroring configurations(after noting their settings) in the mirroring configuration  found at admin > config >...

  • httpCacheVaryByParams values in web.config not honored

    Description When you set parameter names in the web.config's <applicationSettings> node's httpCacheVaryByParams value they appear to not be honored for caching when using the MVC version of Episerver. Resolution This setting in the web.config applies only to the Web Forms version of EpiServer, if you are using the MVC version this setting will not function. Instead you will need to use the built in ASP.Net MVC ContentOutputCache attribute at the action level in your cont...

  • Error when deploying to a DxC environment

    Description When viewing a newly published (local or in Azure) you may run into the following errors EPiServer.Framework.Initialization.InitializationEngine : Initialize action failed for 'Initialize on class EPiServer.Events.EventsInitialization, EPiServer.Events, Version=10.10.0.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' EPiServer.ServiceLocation.ActivationException: Activation error occurred while trying to get instance of type EventProviderService, key "" ---> ...

  • Browsing to expired page defaults to 302 redirect instead of 404

    Description This article covers the issue on browsing expired pages and how these exceptions are handled. It will also cover the code resolution and workaround for earlier versions. The expected behavior is that when browsing to an expired page we should get a 404 but what we see is a 302 to login.  This is also relevant with commerce. Resolution This was an issue resolved in EPiServer.CMS.Core 10.0.1 as part of the escalation here. The recommended and supported resolution is ...

  • Mirroring Error: Failure during page package transfer

    Description Below are steps to troubleshoot the following mirroring error: Mirroring state: Failure during page package transferThe following errors occured:The type initializer for 'EPiServer.MirroringService.Common.RemoteEventsHandler' threw an exception. Resolution Verify that the assembly bindings in the mirroring site's web.config match the bindings versions of site it belongs to.  Verify the .dll files in the mirroring site match those of the site it belongs to.  Recycl...

  • Application Log Table Cleanup

    Description The Application Log table, dbo.ApplicationLog, is growing larger than you want and needs to be cleaned up. Resolution The Application Log table tracks ever time there is a change to content, either it being added, updated, or deleted, there is a log entry added to the table. If there are a lot of changes happening to content this can cause the table to swell fast. You can safely remove any or all data from the table, but we do recommend keeping the last 30 days of ...

  • License error after upgrade to CMS 11.x/Commerce 11.x

    Description If you upgrade your site and get a license error like: Current version 11.x.x is newer than the required version 10.65535 Resolution Then you need to get a new license file. You can contact licenseadmin@episerver.com

  • Linkvalidator does not complete the scheduled job

    Description 1. Can't load property type 'EPiServer.Fields.LongString, EPiServer.Fields'. 2. FAILED The scheme for the url "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASoAAADRCAIAAAD0emgWAAAgAElEQVR4nOydZ0AT2drHs9Xd9W6/u3vv3X636zbb2hV17b0gFlBAKQLSq9I7UqVKFQUEpPfee2+hJKSQEBKSkF4nmZnzfsC+6IKCd+978/ugw8w5M0+S+c+c8jzPwYCnBH1wG73z5/QGercE+nAxFSpUPARmAc6pkpwKFbNiIeSnQoWKWaGSnwoV/" in not http or https. Resolution Take a look at the following post and see if the suggestio...

  • 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...