Access to the path 'E:\Search.web\Stat\ShowData.gif' is denied. 
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.Source Error: 
Line 475:        string filePath = (Server.MapPath(".")) + "\\ShowData.gif";           //路径
Line 476:        //以字符流的形式下载文件
Line 477:        FileStream fs = new FileStream(filePath, FileMode.Open);
Line 478:        byte[] bytes = new byte[(int)fs.Length];
Line 479:        fs.Read(bytes, 0, bytes.Length);
 Source File: e:\Search.web\Stat\StatInfo.aspx.cs    Line: 477 

解决方案 »

  1.   

    aspnet账户没有读取这个文件的权限吧。
    给这个图片所在的文件夹赋予aspnet账户读取和修改权限。
      

  2.   

    恩,估计是权限的事,我遇到过只能读取access数据库而不能修改删除的问题。
    改改权限就可以解决
      

  3.   

    那你就把那个文件夹赋给aspnet所有的权限(完全控制)
      

  4.   

    asp.net用户赋权限是不对的,你应该是对internet来宾账户赋权限!!!可以参考http://help.powereasy.net/Safe/saft/1368.html