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


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

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

posted on 2010-01-29 19:37  craig  阅读(1933)  评论(0编辑  收藏  举报
我要啦免费统计