问题错误:"访问路径<路径>被拒绝&QUOT。 [英] Problems with error: "Access to the path <path> is denied."

查看:98
本文介绍了问题错误:"访问路径<路径>被拒绝&QUOT。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找的伎俩来解决这个错误(谷歌,stackoverflow.com等),每一个没有什么作品。
我需要动态地创建通过asp.net应用程序.aspx文件。

I was looking for the the trick to resolve that error (google, stackoverflow.com etc) and every nothing works. I need to dynamically create an .aspx file via the asp.net application.

我所做的尝试修复它:

1)在文件夹的属性 - >安全,我已经添加IUSR_TONY也IIS_IUSRS,让他们完全控制到该文件夹​​。只是为了检查是否会有所帮助。不,不会。

1) In the folder's Properties -> Security, I've added IUSR_TONY and also IIS_IUSRS and allow them the Full control to the folder. Just to check if that will help. Nope, it won't.

2)在IIS管理器中,我试图改变应用程序的默认池标识(依据一href=\"http://$c$czest.com/archive/2009/12/14/system.unauthorizedaccessexception-access-to-the-path-is-denied.aspx\"相对=nofollow>这)我检查了所有选项,但没有成功。

2) in the IIS Manager, I tried to change the Application's Pool Defaults Identity (based on that) I checked all options, with no success

我不知道该怎么做更多来解决它。任何想法?

I don't know what to do more to fix it. Any ideas ?

推荐答案

请注明IIS的操作系统和版本。

Please state your operating system and version of IIS.

您需要授予访问运行在IIS中的应用程序池的帐户。它通常是NT AUTHORITY \\ Network服务,所以尽量给予完全控制该帐户。

You need to grant access to the account that is running the app-pool in IIS. It is usually NT Authority\Network Service, so try granting full control to that account.

不过,如果你正在使用Windows集成安全性(并有模拟= TRUE)在您的网站,也必须被授予访问权限的用户,是请求页面的用户。

However, if you are using windows integrated security (and have impersonation=true) on your website, the user that must be granted access, is the user requesting the page.

最后,我真的想从拍动态创建ASPX文件的博客系统阻止你。它根本就没有做到这一点。

Finally, I really want to discourage you from making a blog system that creates aspx files on the fly. It's simply not the way to do it.

这篇关于问题错误:"访问路径<路径>被拒绝&QUOT。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆