473,287 Members | 3,240 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

Help with DirectoryNotFoundException

Two developers here are working on the same code in slightly different
environments. Jason programmed code to access a public folder on an
outside machine "\\usnynyc01ap002\". The code works fine on his box. He
is running Win2k3. I am running Windows 2000 Server. Running the same
code I get:

System.IO.DirectoryNotFoundException: Could not find a part of the path
"\\usnynyc01ap002\uploadedfiles".

Using the watch window in Visual Studio I discovered that from inside
the code "\\usnynyc01ap002" does not exist. I can explore it locally,
but the code can't seem to access it.

I am guessing its a permission issue. The folder on the network is set
to be publicly accessible for everyone. But I still can't seem to find
it. Any suggestions?

Larry Viezel

Feb 15 '06 #1
1 1394
What machine is hosting the folder and what type of set up is it (ie AD
controller, NetBIOS only, etc).

A bit more information may help. You may want to check the ACL list
for the folder, and check inherited permissions. I believe that IUSR_
and INET_ are services or local users or somethin like that so the app
may not be able to access the share.

You might want to try having the application impersonate a user as well
(through web.config or IIS).

Again, more information would be helpful, but maybe my blind guesses
may help.

HTH,
Darren Kopp
http://blog.secudocs.com/

Feb 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Matthias Ludwig | last post by:
I'm trying to create a directory on the web server with a vb.net code: .... Dim dirName As String = "w:\filepath\images" If Not Directory.Exists(dirName) Then...
4
by: Frederico Caldeira Knabben | last post by:
Hello, I'm having a problem when trying to use the Directory.CreateDirectory() method. It throws a DirectoryNotFoundException exception. I'll try to illustrate it: Suppose you have the...
5
by: Andy Lim | last post by:
Hello all, I just moved one of my ASP.NET application to a new hosting. But the same application that used to work perfectly before now returns this error: System.IO.DirectoryNotFoundException...
4
by: Jacques Wentworth | last post by:
I'm trying to access a Folder on a different Server using ASP.NET, and are getting a DirectoryNotFoundException. It works fine when I access the local drives on the server. I made sure the folder...
3
by: Joe | last post by:
Hi, I have written a webpage that allows a user to delete files in asp.net with I am having a small problem. To access this page a user has to login via login.aspx page. After successful...
0
by: Larry Viezel | last post by:
I posted this problem on another forum previously, any help here would be appreciated: Two developers here are working on the same code in slightly different environments. Jason programmed code...
1
by: Bruce W. Darby | last post by:
My application, prior to building it into an .exe, was working as it should. As soon as I performed the build and attempted to run the application outside the IDE, I got an error message stating...
0
by: Dan Christensen | last post by:
Hi, I've been using MSBee to build a small program for some time now (since not everyone seems to have the 2.0 CLI installed yet). Recently I decided to add some buttons that used images, so I...
0
by: cw808 | last post by:
Hi all. I'm new here but hoping I can get some help for my problem. My situation is that I need to upload files through a C# .NET web application to a file server. I done a search and followed...
1
by: Berryl Hesh | last post by:
I don't know where the "%" sysmbols are coming from, but without them this is a valid directory. I've pasted both the exception and code that triggeered it below. The purpose of this code block is...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.