CurrentBrowser evaluates different browser version on CMSContext (IE11)

Dilan Quesada asked on January 10, 2018 22:07

Hi there!, I am having some issues with CMSContext.Current.CMSContext.CurrentBrowser.BrowserVersiontext. It evaluates differently in the same browser from one site deploy to another. I am testing it on IE11, and the result from one site to an other is different. Here are some screen shots to show whats happening.

Images 1: IE11 - Site 1 Correct evaluation

Images 2: IE11 - Site 2 Wrong evaluation

Recent Answers


Trevor Fayas answered on January 10, 2018 22:21 (last edited on January 10, 2018 22:26)

are the 2 sites on differnet kentico versions, and IIS / .Net versions?

There is an issue where IE 11 isn't recognized until .Net 4.5.1 i think... it's an annoying issue.

https://stackoverflow.com/questions/17417420/app-browsers-definition-file-for-ie-11

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on January 11, 2018 15:17

Not sure what version you're working in but this macro works for me across all browsers and in different environments (server, desktop, etc).

CMSContext.Current.CurrentBrowser.BrowserMajorVersion

0 votesVote for this answer Mark as a Correct answer

Zachary Perry answered on January 11, 2018 22:50

Do you have your browser in compatibility mode or something on one site and not the other?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.