Open your Web.config file and search for the <add key="ek_EnableDeviceDetection" value="XXX" /> tag. If it is set to true, set it to false:
<add key="ek_EnableDeviceDetection" value="false" />
If you continue to receive that error, you'll need to check that your XHTML is valid in your files.