网络可以服务接入服务器硬盘 [英] Can web service access Server hard disk

查看:178
本文介绍了网络可以服务接入服务器硬盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的脸在我的Web服务需要访问partion d。在服务器硬盘,并可以发送,接收文件到/从客户的情况。

I face a situation where my web service needs to access partion D in server hard disk and can send, receive files to/from client.

这是真的,一个Web服务能做到这一点,即使有文件夹?

Is it true that a web service can do that even when there's no permission on the folder?

我知道我可以使用的MapPath函数添加到asp.net路径的文件夹...

I know that I can add to the folder of asp.net path using mappath function...

任何一个可以说明我如何做到这一点做,哪有Web服务访问的服务器本地磁盘?

Can any one illustrate to me how this would be done and how can the web service access the server local disk?

推荐答案

为了使Web服务能够读取或写入文件到你的服务器上的文件夹,它必须有这样做的权限。

In order for the web service to be able to either read or write files to a folder on your server it must have permission to do so.

您需要确定的第一个问题是哪些用户是Web服务下执行?一旦你知道,那么你可以设置相应的权限有问题的文件夹中。

The first question you need to determine is what user is the web service executing under? Once you know that then you can set the appropriate rights to the folder in question.

这篇关于网络可以服务接入服务器硬盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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