Click to See Complete Forum and Search --> : Problems with Directory.CreateDirectory
drayyarb
May 11th, 2004, 08:32 AM
I keep getting an error when trying to create a directory using the directory.createdirectory. For the path, I am using a unc path ("//SERVERNAME/SHARE/FOLDER/FOLDER"). The problem comes in to play when I deploy the app on the web server. On my development box, it works fine, but when I deploy it on the server, all of a sudden I get an error saying that it cannot find part of the path "//SERVERNAME/SHARE". It doesn't even pick up the whole path for some reason. I have checked path variable, and it is not being truncated. I am using impersonation and the share and folder have the neccessary rights. In fact, I can do it on my development box but not on the server, so I know it is not a permissions problem. Any ideas?
Jim Bassett
November 16th, 2004, 05:22 PM
Did you ever resolve the problem as I am having a problem that is nearly the same. In my case the entire path gets passed and used but I get an error of "Bad file name or number"
drayyarb
November 16th, 2004, 08:26 PM
Unfortunately, I never did resolve this issue. I simply had to use an existing folder and just name the files so that I could find the one I needed. I'll try to help you if you can give me a few more details on exactly what you are trying.
Jim Bassett
November 17th, 2004, 09:24 AM
Thanks. See the post I put up yestraday as it contains an attachement> http://www.codeguru.com/forum/showthread.php?t=318355
maggiemay
November 22nd, 2004, 10:16 PM
MakeSureDirectoryExists()
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.