从IIS虚拟目录访问文件时,ASP.net错误访问被拒绝 [英] ASP.net Error Access is denied when Accessing file from IIS virtual Directory

查看:419
本文介绍了从IIS虚拟目录访问文件时,ASP.net错误访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在此先感谢,

我已经在IIS中创建了一个虚拟目录,并已授予IIS_IUSRS(完全控制)的权限,甚至添加了所有人,但是当我从网页访问附件时,它给出了错误

Thanks in advance,

I have made a virtual Directory in IIS and has given permissions to IIS_IUSRS (Full Control) and Even added everyone,But when i am accessing attached file from the webpage its giving error

报价:

异常详细信息:System.ComponentModel.Win32Exception:访问被拒绝

Exception Details: System.ComponentModel.Win32Exception: Access is denied



在Visual Studio中,当我单击链接时,文件正在打开,仅当我从IIS浏览时,它会报错.当我添加标识时,会冒充="true"
在web.config中,它会导致页面加载错误



while from Visual studio when i click on the link , files are opening , Only when i browse from IIS it gives error.when i adds identity impersonate ="true"
in web.config,it gives error on page load

报价:

检测到ASP.NET设置不适用于集成托管管道模式.

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.



有什么建议吗?



Any suggestions ?

推荐答案

我想到的一个原因是,导致此问题的原因是,应用程序中某处的sql连接未正确关闭,可能导致最大数量的连接.打开连接.您正在做与此有关的事情吗?如果是这样,请两次查看.
One reason comes to my mind, cause this issue is, somewhere in your application sql connection is not properly closed and it may leads to maximum number of open connections. Are you doing anything related to that? If so have a look twice.


这篇关于从IIS虚拟目录访问文件时,ASP.net错误访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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