ERROR: “System.Web.Mvc.Controller.File(string, string, string)”是一个“方法”,这在给定的上下文中无效

 

这是一个与Controller.File方法和System.IO.File类名称冲突的问题,只要完整输入明确类名就可解决。

比如:File.ReadAllText(file);   》改为》  System.IO.File.ReadAllText(file);

转载自:http://www.cnblogs.com/craig/archive/2010/01/29/1659456.html#undefined

相关文章:

  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
  • 2022-02-11
  • 2021-12-01
  • 2021-08-08
猜你喜欢
  • 2021-07-03
  • 2022-12-23
  • 2021-07-14
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案