5

When trying to run the following code on my local machine

var _deviceCache = new DeviceDetectionCache();
var device = _deviceCache.GetDeviceInformation(Request.UserAgent)

I am getting the following exception

device detection is disabled at Sitecore.CES.DeviceDetection

Most of the articles I found spoke about how Sitecore uses Netbiscuits to detect devices, and how to set goals based on device detection but I still haven't found anything on where to enable to it, and if I can enable it on a local machine.

Thanks.

Further info : I'm using Sitecore 8.1 (rev. 151207)

1

1 Answer 1

2

In the sitecore/Settings folder, set DeviceDetection.Enabled to true Add the enable Sitecore.CES.DeviceDetection.config file in the (App_Config/Include/CES/) folder

2
  • It's already set to true, could there be something else?
    – Muradious
    Commented Oct 6, 2016 at 10:23
  • You need to have the Device Detection enabled as part of your license. You can get it from the App Center I believe. Commented May 3, 2018 at 18:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.