Lior Levy
2007-09-03 18:15:37 UTC
Hello,
I am trying to Upload & save a file in the web server, When I specify a physical path like:
FileUpload1.SaveAs("C:\Files\" & FileUpload1.FileName))
It works fine.
But when I map the drive & use something like this:
FileUpload1.SaveAs("F:\foldername\" & FileUpload1.FileName))
I get the error:
Could not find a part of the path F:\foldername\globalsProc.doc'.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'F:\foldername\globalsProc.doc'.
If I use this:
FileUpload1.SaveAs("\\comuterName\D$\foldername\" & FileUpload1.FileName))
I get the error:
The SaveAs method is configured to require a rooted path, and the path '\\comuterName\d$\foldername\globalsProc.doc'' is not rooted.
I have Full NTFS control for the user on the drive.
Any idea?
Thanks in advance,
Lior.
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
I am trying to Upload & save a file in the web server, When I specify a physical path like:
FileUpload1.SaveAs("C:\Files\" & FileUpload1.FileName))
It works fine.
But when I map the drive & use something like this:
FileUpload1.SaveAs("F:\foldername\" & FileUpload1.FileName))
I get the error:
Could not find a part of the path F:\foldername\globalsProc.doc'.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'F:\foldername\globalsProc.doc'.
If I use this:
FileUpload1.SaveAs("\\comuterName\D$\foldername\" & FileUpload1.FileName))
I get the error:
The SaveAs method is configured to require a rooted path, and the path '\\comuterName\d$\foldername\globalsProc.doc'' is not rooted.
I have Full NTFS control for the user on the drive.
Any idea?
Thanks in advance,
Lior.
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com