System.IO.File.Create 不会自动释放,一定要Dispose时间:2023-03-08 22:11:16 这样会导致W3P进程一直占用这个文件 System.IO.File.Create(HttpContext.Current.Server.MapPath(strName)) 最好加上Dispose System.IO.File.Create(HttpContext.Current.Server.MapPath(strName)).Dispose()