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
Darren Kopp - 15 Feb 2006 19:18 GMT
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/