Excel无法访问IIS7和Windows Server 2008 R2(64位)的文件

我有一个Web项目(.NET 4),需要访问一个Excel文件,但它结束了以下错误信息:

Error occurred during file generation.Microsoft Excel cannot access the file 'D:\xx\xx\abc.xls'. There are several possible reasons: • The file name or path does not exist. (Actually it is there) • The file is being used by another program. (It can not happen) • The workbook you are trying to save has the same name as a currently open workbook. 

在IIS7中,我使用属于Administrators组的身份为“myservice”的DefaultAppPool。

在IIS下的我的网站的身份validation页面中,启用了匿名身份validation,并将其设置为“应用程序池标识”,并禁用了ASP.NET模拟。

search解决scheme的小时后,我发现以下,但没有一个工作

  1. 在C:\ Windows \ SysWOW64 \ config \ systemprofile \ Desktop中创build文件夹。 请参考: 这个
  2. 在组件服务中授予“myservice”权限。 请参考: 这个

有一件事很奇怪,IIS_IUSRS组中没有任何东西。 这是正常的吗? 我记得至less有两个用户(DefaultAppPool&Classic .NET AppPool)。

我认为这是IIS的权限问题,但我无法解决它。

问题解决了!!!!!!!!!! 我的Excel是2010,应该在C:\ Windows \ System32 \ config \ systemprofile中创build“桌面”文件夹