System.UnauthorizedAccessException
From: Peter Afonin (peter_at_gudzon.net)
Date: 09/07/04
- Next message: Wayne Wengert: "Create Gradient Background on Web Page"
- Previous message: Danny Bloodworth: "ASP.NET application alone can't do it!!! Right???"
- Next in thread: Joyjit Mukherjee: "Re: System.UnauthorizedAccessException"
- Reply: Joyjit Mukherjee: "Re: System.UnauthorizedAccessException"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 7 Sep 2004 16:40:36 -0700
Hello,
I'm using this code to access a network share from an asp.net page:
Dim dir As DirectoryInfo = New DirectoryInfo("\\10.0.0.150\FormLib\")
Dim files() As FileInfo = dir.GetFiles("*.eps")
When I try to do it, I get this error:
System.UnauthorizedAccessException: Access to the path
"\\10.0.0.150\FormLib\" is denied. at System.IO.__Error.WinIOError(Int32
errorCode, String str) at
System.IO.Directory.InternalGetFileDirectoryNames(String fullPath, String
userPath, Boolean file) at System.IO.Directory.InternalGetFiles(String path,
String userPath, String searchPattern) at
System.IO.DirectoryInfo.GetFiles(String searchPattern) at
Wip7b.WorkInProcess.btnGetEPS_ServerClick(Object sender, EventArgs e)
All permissions to this folder and a file share are set to Everyone.Usually
I don't have this problem. The only thing that is different about this
particular machine that it is not a part of the domain to which all other
PCs in our company belong, so I cannot access any users from our Active
Directory.
This is a Win 2000 SP4 machine.
I would greatly appreciate your help.
Thank you,
-- Peter
- Next message: Wayne Wengert: "Create Gradient Background on Web Page"
- Previous message: Danny Bloodworth: "ASP.NET application alone can't do it!!! Right???"
- Next in thread: Joyjit Mukherjee: "Re: System.UnauthorizedAccessException"
- Reply: Joyjit Mukherjee: "Re: System.UnauthorizedAccessException"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|