如何在asp.net中提供访问路径以在IIS中上传文件 [英] how to give access path to upload files in IIS in asp.net

查看:85
本文介绍了如何在asp.net中提供访问路径以在IIS中上传文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.
当我在本地服务器上上传文件时,我的应用程序运行正常.
但是,如果将其托管在IIS中,则会抛出一条错误消息,
"访问路径被拒绝"



有任何建议..?

Hello All..
My application is working fine when i upload files in local server.
But when it is hosted in IIS ,it is throwing an error saying
''access path denied''



Any Suggestions..?

推荐答案

1.转到运行您的网站的AppPool.
2.导航到高级设置,并找出运行它的帐户的身份.

最后一步是为上述帐户的文件夹分配权限.
1. Go to the AppPool under which your website is running.
2. Navigate to the advance setting and find out the identity of the account under which it is running.

Final step would be to assign rights to the folder for above account.


您需要授予用户IUSR _
You need to give access to user IUSR_


这篇关于如何在asp.net中提供访问路径以在IIS中上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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