c#中的Windows服务无法访问UNC路径中的文件夹 [英] Windows service in c# unable to access a folder in UNC path

查看:88
本文介绍了c#中的Windows服务无法访问UNC路径中的文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用c#3.5



编码Windows服务时,我们将UNC路径指定为\\192.168.1.1 \NAS_FOLDER \ LIVE \\ \\ b


但是,我们可以通过在web.config中指定模拟来访问我们网站上面的UNC路径



请帮助....

解决方案

这可以帮助您解决问题,最好是在您的配置文件中提供模拟。 />
http://stackoverflow.com/questions/659013/accessing-a-shared-file-unc-from-a-remote-non-trusted-domain-with-credentials [ ^

We are using c# 3.5

While coding the windows service, we have specified UNC path as \\192.168.1.1\NAS_FOLDER\LIVE\

However, we are able to access the above UNC path in our website by specifying impersonation in web.config

Please help....

解决方案

this may help you to resolve the issue, the best will be to provide impersonation in your config file.
http://stackoverflow.com/questions/659013/accessing-a-shared-file-unc-from-a-remote-non-trusted-domain-with-credentials[^]


这篇关于c#中的Windows服务无法访问UNC路径中的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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