posts - 138,  comments - 48,  trackbacks - 2
公告

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 阅读(118) 评论(0) 编辑 收藏
我要啦免费统计