Reputation: 883
I've got a problem with IE 11 and ASP.net. Checking:
Request.Browser.ActiveXControls
returns false and Request.Browser
returns Mozilla
.
How to workaround this issue?
What about using headers["User-Agent"].Contains("Trident")
?
Upvotes: 3
Views: 1261
Reputation: 57075
There are multiple factors here. First, see http://blogs.msdn.com/b/ieinternals/archive/2013/09/24/10451776.aspx and more specifically http://msdn.microsoft.com/en-us/library/ie/dn423948(v=vs.85).aspx -- the IE team made it so checking for the ActiveXObject in the DOM using JavaScript will fail in IE11 mode.
Now, you probably also have outdated browser definition files on your server that lead ASP.NET to incorrectly conclude (via the UA sniffing alone) that IE11 doesn't support ActiveX (which is only partially true). See http://blogs.msdn.com/b/ieinternals/archive/2013/09/21/internet-explorer-11-user-agent-string-ua-string-sniffing-compatibility-with-gecko-webkit.aspx
Upvotes: 2