访问共享驱动器时出现问题 [英] Problem acessing the share drive

查看:86
本文介绍了访问共享驱动器时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的求职尝试获取共享驱动器上的文件数.
我与用户IUSR_INFMY10296使用匿名访问.
但是问题总是我的应用程序返回的路径不存在.

Hi

My appliction tries to get the number of files on the share drive.
I am using Anonymous acess with the user IUSR_INFMY10296.
but problem is always my application returns path doesnt exists.

<br />
<pre lang="cs">Example:<br />
path="\\productivefiles\adoy\urs"<br />
<br />
if(Directory.Exists(path)<br />
{<br />
......<br />
return count;<br />
}<br />
else<br />
{<br />
return "path doesn''t exists";<br />
}</pre><br />
<br />


上面的路径是有效的,并且包含文件.但是我的应用程序总是不存在返回路径.
它们是否是在IIS 6.0上需要设置的任何特殊权限?

请让我知道如何解决此问题


the above path is valid and which contains files. but my application always return path doesn''t exists.
Is they any special permission required to be set on the IIS 6.0

Please let me know how to solve this problem

推荐答案

"\\productivefiles\adoy\urs"
=> productivefiles ==服务器名称(看起来不像一个)
& adoy \ urs ==在具有访问权限的服务器上共享的文件夹.

如果不是这种情况,请确保已正确配置.路径应该是有效的并具有权限.
"\\productivefiles\adoy\urs"
=> productivefiles == server name (doesn''t look like one)
& adoy\urs == folder shared on the server that has access permissions.

If this is not the case then make sure you have correctly configured it. Path should be valid and permissions given.


您是否检查过是否设置了安全性设置,以便您的代码可以访问该特定目录?

希望这个帮助!

问候,
Rajeev
Have you checked if the Security settings are set so that your code can access that particular directory?

May this HELP !

Regards,
Rajeev


尝试使用计算机名称插入的IP.
Try using the IP insted of the computer name.


这篇关于访问共享驱动器时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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