ASP.NET MVC4移动网站正确显示本地主机没有部署服务器 [英] ASP.NET MVC4 mobile site displays correctly on local host not deployment server

查看:162
本文介绍了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.

这篇关于ASP.NET MVC4移动网站正确显示本地主机没有部署服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆