ASP.NET MVC4 mobile site displays correctly on local host not deployment server

天涯浪子 提交于 2020-01-06 02:33:08

问题


I have an ASP.NET MVC4 site with mobile content. When I deploy this on my local development machine, the mobile content is what I see in Opera Mobile when I go to localhost/mysite. However, when I deploy this to my actual server, I see the desktop version on Opera Mobile. I get the same desktop view when visiting the site on my Windows Phone.

I am assuming this is not a DisplayModeProvider issue as site works as expected on local host. What should I be looking at?

Thanks.


回答1:


Installed .NET 4.5 RC fixed this problem. I may have missed this somewhere in the documentation that ASP.NET MVC4 requires .NET 4.5.



来源:https://stackoverflow.com/questions/11170117/asp-net-mvc4-mobile-site-displays-correctly-on-local-host-not-deployment-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!