消息:访问被拒绝. [英] Message: Access is denied.

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

问题描述

当我尝试在按钮单击事件中打开共享文件夹时,出现以下提到的错误,但在Visual Studio中它没有打开任何问题.

when i try to open a shared folder in button click event, i got below mention error but in visual studio it opened no problem.

Message: Access is denied.

Line: 1
Char: 1
Code: 0
URI: http://192.168.3.154:8090/BPCSItax/TRFMASTDTA.aspx

推荐答案

要解决此问题,必须关闭简单文件共享",然后获取文件夹的所有权:

关闭简单文件共享:
单击开始",然后单击我的电脑".
在工具"菜单上,单击文件夹选项",然后单击查看"选项卡.
在高级设置"下,单击以清除使用简单文件共享(推荐)"复选框,然后单击确定".
右键单击您要拥有所有权的文件夹,然后单击属性".
单击安全性"选项卡,然后在安全性"消息上单击确定"(如果出现).
单击高级",然后单击所有者"选项卡.
在名称"列表中,单击您的用户名,如果您以管理员身份登录,则单击管理员",或者单击管理员"组.

如果要对该文件夹的内容拥有所有权,请单击以选中替换子容器和对象的所有者"复选框.
单击确定.

您可能会收到以下错误消息,其中Folder是您要拥有所有权的文件夹的名称:
您无权读取目录Folder的内容.您是否要使用授予您完全控制权限的目录替换目录权限?如果按是,将替换所有权限.
单击是.
单击确定",然后重新应用所需的文件夹和文件夹内容的权限和安全设置.

来源:http://support.microsoft.com/kb/810881> http://support.microsoft.com/kb/810881
To resolve this issue, you must turn off Simple File Sharing, and then take ownership of the folder:

Turn off Simple File Sharing:
Click Start, and then click My Computer.
On the Tools menu, click Folder Options, and then click the View tab.
Under Advanced Settings, click to clear the Use simple file sharing (Recommended) check box, and then click OK.
Right-click the folder that you want to take ownership of, and then click Properties.
Click the Security tab, and then click OK on the Security message, if one appears.
Click Advanced, and then click the Owner tab.
In the Name list, click your user name, Administrator if you are logged in as Administrator, or click the Administrators group.

If you want to take ownership of the contents of that folder, click to select the Replace owner on subcontainers and objects check box.
Click OK.

You may receive the following error message, where Folder is the name of the folder that you want to take ownership of:
You do not have permission to read the contents of directory Folder. Do you want to replace the directory permissions with permissions granting you Full Control? All permissions will be replaced if you press Yes.
Click Yes.
Click OK, and then reapply the permissions and security settings that you want for the folder and the folder contents.

source: http://support.microsoft.com/kb/810881">http://support.microsoft.com/kb/810881


这表示,您不您没有足够的权限访问位置或文件",因为您不是文件的所有者.
http://192.168.3.154:8090/BPCSItax/TRFMASTDTA.aspx [
It means that, "You don''t have sufficient privilege to access the location or file" as you are not the owner of the file.
The http://192.168.3.154:8090/BPCSItax/TRFMASTDTA.aspx[^] is asking for the credentials, it is not available publicly. You will have to provide sufficient credentials to access the site.

--AMit


这篇关于消息:访问被拒绝.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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