[英]Issues after publishing ASP.NET MVC 4 application on Windows Server 2012
I am facing an issue after publishing my MVC 4 application on windows server 2012 (IIS8).在 Windows Server 2012 (IIS8) 上发布我的 MVC 4 应用程序后,我遇到了一个问题。 Issue is with System.Web.MVC.
问题在于 System.Web.MVC。 When i browse my website it displays an error that referenced version (means System.Web.MVC) is higher.
当我浏览我的网站时,它显示引用版本(表示 System.Web.MVC)更高的错误。 To solve this issue whatever i did is to open the project on live server and remove the System.Web.MVC version and the add the older version of System.Web.MVC.
为了解决这个问题,我所做的就是在实时服务器上打开项目并删除 System.Web.MVC 版本并添加旧版本的 System.Web.MVC。 Like if i used System.Web.MVC 4 in local machine then i remove this on server and add System.Web.MVC 3 and the publish but this solution is so frustrating me because whenever i update my application it cause that error.
就像我在本地机器上使用 System.Web.MVC 4 然后我在服务器上删除它并添加 System.Web.MVC 3 和发布但是这个解决方案让我很沮丧,因为每当我更新我的应用程序时它都会导致那个错误。
Please guide me what should i do with this as i am a beginner in .Net technologies.请指导我应该怎么做,因为我是 .Net 技术的初学者。
So i got the solution of this issue.所以我得到了这个问题的解决方案。 Actually this isn't an issue or problem.
实际上这不是问题或问题。 All i did is to update visual studio and server.
我所做的只是更新 Visual Studio 和服务器。 My added reference of MVC4 was 4.0.0.1 on my local machine and 4.0.0.0 was on server.
我添加的 MVC4 引用在我的本地机器上是 4.0.0.1,而 4.0.0.0 在服务器上。 I just update the reference and solve this problem.
我只是更新参考并解决了这个问题。
Thanks for your support.谢谢您的支持。 :)
:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.