将文件从ASP.NET Web服务复制到网络共享文件夹。 [英] Copy file from ASP.NET web service to network shared folder.

查看:84
本文介绍了将文件从ASP.NET Web服务复制到网络共享文件夹。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用asp.net(VB)Web服务。

我希望将文件复制到网络共享文件夹\\FSShares001 \AMS_to_CMS_Dev。我们的网络茶提供了域名服务帐户,如帐户名称sa_AMS_to_CMS_Dev密码为*******。

我需要使用参考帐户名称为cdorav00 \sa_AMS_to_CMS_Dev。 />


现在问题是我不知道如何在代码中使用此凭证&需要进一步设置。



请帮我解决这个问题。



我尝试过:



我已经查看以下链接... http://www.codeproject.com/Articles/19830/How -to-Access-Network-Files-using-asp-net

I am working with asp.net(VB) web service.
Fro the web service i want to copy the file to network shared folder "\\FSShares001\AMS_to_CMS_Dev". Our network tea has provided domain service account for this like Account name as sa_AMS_to_CMS_Dev Password as *******.
I need to use reference account name as "cdorav00\sa_AMS_to_CMS_Dev".

Now the problem with this is i am not understanding how to use this credential in code & what further setting need to make.

Please help me to resolve this is issue.

What I have tried:

I have reviewed following link for this..http://www.codeproject.com/Articles/19830/How-to-Access-Network-Files-using-asp-net

推荐答案

如果AppPool运行ASP.NET代码,则无需在代码中执行任何操作在IIS服务器上使用该帐户。
You don't need to do anything in code if the AppPool running your ASP.NET code on the IIS server uses that account.


这篇关于将文件从ASP.NET Web服务复制到网络共享文件夹。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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