【问题标题】:after moving the asp.net app from IIS 6 to IIS 7 on windows server 2008 R2 IIS 7 is not allowing to save the doc/execl files locally在 Windows Server 2008 R2 上将 asp.net 应用程序从 IIS 6 移动到 IIS 7 后,IIS 7 不允许在本地保存 doc/execl 文件
【发布时间】:2013-10-30 02:59:14
【问题描述】:

我们最近将我们的一个 ASP.Net 应用程序从 IIS 6 windows server 2003 移到了 IIS 7 windows server 2008 R2。当应用程序在 IIS 6 中时,我们能够对其进行处理,并能够在本地保存 doc/excel 文件。但在 Windows Server 2008 R2 上将其移至 IIS 7 后,我们可以浏览该应用程序,但无法在本地保存 doc/execl。

谁能帮帮我。

感谢和问候,

克里希那穆提

【问题讨论】:

  • 大家好,现在我遇到了错误。错误:本地保存请求的文件时发生意外错误。错误详细信息 - Word 无法打开文档:用户在 c:\Proposal\GetFile.aspx 中的 GetFile.SaveLocalCopy(Object filePath) 没有访问权限 (C:\Document\0667-DP-13-0007865-A.doc) .cs:第 146 行在 GetFile.Page_Load(Object sender, EventArgs e) in c:\Proposal\GetFile.aspx.cs:第 30 行请帮助我。
  • 确保您的应用程序池有足够的权限访问该目录。

标签: asp.net iis


【解决方案1】:

您需要检查您网站的应用程序池以哪个用户身份运行。这可能是:

ApplicationPoolIdentityNetworkService 或其他指定用户。

如果您将应用程序池更改为使用 NetworkService,您将能够为您的目录分配安全权限,允许 NetworkService 读取/修改权限。

查看此链接了解更多信息:http://technet.microsoft.com/en-us/library/cc771170(v=ws.10).aspx

【讨论】:

    猜你喜欢
    • 2011-05-11
    • 2010-11-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-21
    • 2011-07-23
    • 2010-11-30
    • 1970-01-01
    相关资源
    最近更新 更多