D
Dan
Hello,
I am creating an ASP.NET web service with VB, and I need to be able to
create a directory on a network share. When I attempt to create the
directory (\\server\share\test), I receive the DirectoryNotFound
exception, stating "Could not find part of the path '\\server\share'."
I have also found that when I create the "test" folder in that
network share, and run Directory.Exists("\\server\share\test"), it
returns false.
All of the code works fine when dealing with local paths (such as
"C:\test"). I have verified that the account the web service is
running as has all the necessary permissions.
Any ideas?
Here is the actual code that throws the exception: (strFilePath =
"\\server\share\test")
If Not Directory.Exists(strFilePath) Then
Directory.CreateDirectory(strFilePath)
....
Thank you!
I am creating an ASP.NET web service with VB, and I need to be able to
create a directory on a network share. When I attempt to create the
directory (\\server\share\test), I receive the DirectoryNotFound
exception, stating "Could not find part of the path '\\server\share'."
I have also found that when I create the "test" folder in that
network share, and run Directory.Exists("\\server\share\test"), it
returns false.
All of the code works fine when dealing with local paths (such as
"C:\test"). I have verified that the account the web service is
running as has all the necessary permissions.
Any ideas?
Here is the actual code that throws the exception: (strFilePath =
"\\server\share\test")
If Not Directory.Exists(strFilePath) Then
Directory.CreateDirectory(strFilePath)
....
Thank you!