Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

Help with DirectoryNotFoundException

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Larry  Viezel - 15 Feb 2006 19:04 GMT
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/

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.