[英]Add view function is not working in ASP.NET MVC
Whenever I right-click on return View()
in a controller method to add a view, I get an error. 每当我在控制器方法中右键单击
return View()
以添加视图时,都会出现错误。
Previously it was showing an error to turn Fusion!Log to 1. Something like that. 以前,将Fusion!Log设置为1时显示错误。 I was done with it.
我已经完成了。 But then it shows another error:
但随后显示了另一个错误:
Error is showing System.Text.Encoding is missing in your reference. 错误显示System.Text.Encoding在您的引用中丢失。 please add dll using tools->nuget package manager->package manager console and run the following command.
请使用工具-> nuget软件包管理器->软件包管理器控制台添加dll并运行以下命令。
Install-Package System.Text.Encoding -Version 4.3.0
after that rebuild your solution and try. 之后,重建您的解决方案并尝试。 Thank you
谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.