如何解决拒绝访问的问题? [英] How do I get around an access denied problem?

查看:257
本文介绍了如何解决拒绝访问的问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用C#编写的小型桌面实用程序,它将文件从网络共享复制到用户本地驱动器上的工作位置,然后继续处理。它以前工作过,网络设置没有重大变化,但是,我现在得到...



访问路径'\\ server\volume\chapter\page\filename\version\filename.ext'被拒绝。



我的机器上有管理员权限读取网络源的权限。我可以手动复制文件没有问题。



任何建议都会受到赞赏。

解决方案

I不知道为什么现在显示上面的消息,特别是当它之前工作并且现在停止工作时。我只能怀疑原因在于Windows如何为共享文件夹提供权限。几年前(约2),我在2个工作站遇到了同样的问题...



尝试这样做:



  1. 将共享文件夹映射到驱动器号并使用它来代替共享文件夹的路径
  2. 或/和

  3. 按照以下说明操作:< a href =http://blogs.msdn.com/b/helloworld/archive/2008/09/21/access-denied-when-accessing-a-share-in-windows-home-server.aspx>访问在Windows Home Server中访问共享时拒绝访问 [ ^ ]





不要忘记重新启动本地计算机!


检查同一程序的另一个实例是否正在保存文件。


< blockquote>您帐户的管理员权限是不够的。首先,尝试使用提升的权限运行此应用程序。请参阅:

http://msdn.microsoft.com/en-us /library/bb756929.aspx [ ^ ]。



检查所涉及的共享文件系统对象的权限。



-SA

I have a small desktop utility, written in C#, that copies a file from a network share to a work location on the users local drive then continues processing. It worked previously and there have been no major changes to the network setup, however, I am now getting...

"Access to the path '\\server\volume\chapter\page\filename\version\filename.ext' is denied."

I have admin permissions on my machine and read rights on the network source. I can manually copy the file with no problem.

Any suggestions would be appreciated.

解决方案

I have no idea why above message is displayed now, especially when it worked previously and stop working now. I can suspect only that the reason is in the way how windows provides rights to shared folders. Few years ago (about 2), i had the same problem on 2 workstations...

Try to do that:


  1. map shared folder to drive letter and use it instead path to the shared folder
  2. or/and
  3. follow this instruction: "Access Denied" When Accessing a Share in Windows Home Server[^]



Don't forget to restart your local computer!


Check if another instance of the same program is holding the file.


Admin permission on your account is not enough. To start with, try to run this application with elevated privileges. Please see:
http://msdn.microsoft.com/en-us/library/bb756929.aspx[^].

Check up permissions of the shared file system objects involved.

—SA


这篇关于如何解决拒绝访问的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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