Help with DirectoryNotFoundException

L

Larry Viezel

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
 
D

Darren Kopp

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top