Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
VB
Message: Access is denied.

Line: 1
Char: 1
Code: 0
URI: http://192.168.3.154:8090/BPCSItax/TRFMASTDTA.aspx
Posted
Comments
arshad alam 9-Oct-12 6:40am    
can you share you code ?

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
 
Share this answer
 
v3
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
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900