简体   繁体   English

在 Windows Server 2012 上发布 ASP.NET MVC 4 应用程序后的问题

[英]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.

相关问题 在Windows Server 2012中部署ASP.NET MVC 5应用程序 - Deploying a ASP.NET MVC 5 Application in Windows Server 2012 将Asp.Net Mvc,Web Api应用程序发布到Windows Azure - Publishing an Asp.Net Mvc,Web Api Application to Windows Azure 使用本地计算机上的IIS8在Windows Server 2012上托管Asp.Net MVC 4应用程序 - Hosting an Asp.Net MVC 4 application on windows server 2012 with IIS8 from a Local Machine 无法在Windows Server 2012上部署ASP.net应用程序 - can't deploy ASP.net application on windows Server 2012 ASP.NET 应用程序在发布到 windows 服务器 2008 机器时使用了错误的文件路径 - ASP.NET application using the wrong file path when publishing to a windows server 2008 machine 将ASP.NET MVC Core应用程序的[部分]发布到Web主机 - Publishing [part] of ASP.NET MVC Core application to web host 在Windows Server 2012 R2上运行Asp.net 5 vNext项目(MVC6)发布生成 - Run Asp.net 5 vNext project (MVC6) publish build on Windows Server 2012 R2 将 asp.net MVC csproj 发布到 IIS 服务器 VSTS - Publishing asp.net MVC csproj to IIS server VSTS 发布后的ASP.NET MVC页面非常慢 - ASP.NET MVC page is very slow after publishing 发布到本地主机后,jQuery无法在asp.net mvc中工作 - jquery not working in asp.net mvc after publishing to localhost
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM