使用asp.net将文件从客户端系统上传到网络系统路径 [英] Upload file from Client system to network system path using asp.net

查看:112
本文介绍了使用asp.net将文件从客户端系统上传到网络系统路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要帮助文件上传到asp.net.i想要上传的文件存储在网络路径地址不在inetpub folder.i尝试在调试模式下它将正常工作但本地托管之后它将显示访问被拒绝error.i给予该文件夹的完全访问权限。


I need help for file uploading in asp.net.i want uploaded files stored in network path address not in inetpub folder.i tried in debugging mode it will work properly but Local hosting after it will show access denied error.i gave full access to that folder.

推荐答案

IIS在有限的信任帐户下运行,即使使用该帐户也无法访问该文件夹每个人的权限。尝试使用< identity impersonate =true>打开web.config文件中的模拟在< system.web>中部分。另外请不要忘记,如果您的网络目标是共享,则需要在文件夹的共享设置和安全选项卡中添加写入权限。
IIS runs under a limited trust account, that wont have access to that folder even with Everyone permissions. Try turning on impersonate in your web.config file with <identity impersonate="true"> in the <system.web> section. Also dont forget that if your network destination is a share you need to add write permissions in both the share settings and security tab on the folder.


这篇关于使用asp.net将文件从客户端系统上传到网络系统路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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