I have a MVC3 web application, I followed the instruction is below link to make my site mobile friendly,
http://www.hanselman.com/blog/ABetterASPNETMVCMobileDeviceCapabilitiesViewEngine.aspx
everything is fine on my local IIS and it works when I connect to my local site via Mobile device,
I uploaded the site to the production server but it doesn't work, I traced the site and I figured out that on production server someController.HttpContext.Request.Browser.IsMobileDevice
return false when I brows even with the mobile device. The mobile device is the same as in local tests.
Can everyone give me a clue?
Edit 1
someController.HttpContext.Request.UserAgent
is User-Agent:Mozilla/5.0 (Linux; U; Android 4.1.2; en-us; GT-N7000 Build/JZO54K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
Edit 2
I am using .net4
and I can access to production server via WebSitePanel
I don't have direct access to server.