iis 7 \ windows 7 asp.net 访问被拒绝

发布于 2024-09-10 20:57:59 字数 220 浏览 0 评论 0原文

我正在尝试一个非常简单的操作,将文件保存到我的文件夹中。我使用 iis 7 在 Windows 7 上托管我的应用程序。当我尝试保存文件时,出现以下错误:

访问路径“C:\MyWebsite\MyFolder”被拒绝

我不是在模仿,我已授予网络服务完全控制权在文件夹上。可能是什么原因造成的?

谢谢你!

抱歉:我的错误,显然我安装的是 iis 7(不是 7.5)

I am trying a very simple action of saving a file into a folder of mine. I am hosting my application on windows 7 using iis 7. When I try saving my file I get the following error:

Access to the path 'C:\MyWebsite\MyFolder' is denied

I am not impersonating, I have given network service full control on the folder. What can be causing this?

Thank you!

Sorry: My mistake, apprently I have an installation of iis 7 (not 7.5)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

行雁书 2024-09-17 20:57:59

如果您从未解决过这个问题,则需要检查其他内容 - 您是否覆盖了现有文件?如果是这样,请确保它不是只读的。这会给你同样的错误,并且通常的权限更改都无法修复它。

我有类似的设置并尝试了一切。终于做到了。

If you never solved this, something else to check - are you overwriting an existing file? If so, make sure it's not read-only. That will give you this same error, and none of the usual permission changes will fix it.

I had a similar setup and had tried everything. That finally did it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文