ASP.NET MVC4移动网站正确显示本地主机没有部署服务器
我有一个ASP.NET MVC4站点的手机内容。当我部署此我的本地开发机器上,移动内容是我在Opera移动看到,当我去到localhost / mysite的。然而,当我部署此我实际的服务器,我看到的Opera Mobile的桌面版本。在我的Windows手机访问该网站时,我得到相同的桌面视图。
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.
我假设这不是一个DisplayModeProvider问题,因为网站的作品如预期本地主机上。我应该看什么?
I am assuming this is not a DisplayModeProvider issue as site works as expected on local host. What should I be looking at?
感谢。
安装了.NET 4.5 RC修正了这个问题。我可能已经错过了这个地方,ASP.NET MVC4需要.NET 4.5的文件中。
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.