简体   繁体   English

IIS 7 \\ Windows 7 ASP.NET访问被拒绝

[英]iis 7 \ windows 7 asp.net access is denied

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: 我使用iis 7在Windows 7上托管我的应用程序。当我尝试保存文件时,出现以下错误:

Access to the path 'C:\\MyWebsite\\MyFolder' is denied 拒绝访问路径“ C:\\ MyWebsite \\ MyFolder”

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) 抱歉:我的错误,我正确地安装了iis 7(不是7.5)

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. 终于做到了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM