[英]Downgrading ASP.NET MVC 5 from .NET 4.5 to 4.0
Sitting with an interesting problem. 坐着一个有趣的问题。 .NET 4.5 is not supported on the server (client didn't mention this) 服务器上不支持.NET 4.5(客户端没有提到这个)
BUT the app is written using ASP.NET MVC 5 (which only runs on .NET 4.5). 但该应用程序是使用ASP.NET MVC 5(仅在.NET 4.5上运行)编写的。
So downgrading the dot net means to downgrade the ASP.NET MVC version. 所以降级点网意味着降级ASP.NET MVC版本。
One of the many errors we are getting is 我们遇到的许多错误之一是
The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' 命名空间'System.Web'中不存在类型或命名空间名称'Mvc'
I can only assume this is due to the implementation of all the Owin middleware in ASP.NET MVC 5. 我只能假设这是由于ASP.NET MVC 5中所有Owin中间件的实现。
Has anyone had any experience with removing these references and being ASP.NET MVC 4 capable? 有没有人有任何删除这些引用和具有ASP.NET MVC 4能力的经验?
Following Greg's suggestion below I ran the nuget which removed v5, and added in v4, but now all the Owin stuff is an issue 根据Greg的建议,下面我运行了去掉v5的nuget,并在v4中添加了,但现在所有Owin的东西都是个问题
Try these steps: 请尝试以下步骤:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.