Request中的Files属性返回值是System.Web.HttpFileCollection类型的对象HttpFileCollection中实现了一个索引器,可以通过int32或string来索引取值,这个索引返回的值类型是System.Web.HttpPostedFile对象。你将System.Web.HttpFileCollection类型的对象赋值给了System.Web.HttpFileCollection类型的变量,当然会报错