Karger78 has asked for the wisdom of the Perl Monks concerning the following question:

Hello, my program will work when running it from command line on the web server. However, when trying to access the mapped directory from a web page, it keeps on saying that the directory does not exist. I am using iis with windows 2003. Just curious if anyone has had this issue before.

Replies are listed 'Best First'.
Re: windows auth
by ikegami (Patriarch) on Jul 06, 2009 at 19:32 UTC
    The user as which web server executes CGI scripts doesn't have permission to access the network and/or doesn't have those drives mapped.
Re: windows auth
by psini (Deacon) on Jul 06, 2009 at 19:47 UTC

    As a rule, I avoid using logical drive mapping in my win script, and try to always use the full network path. This saves time if you don't have full control on the server running the script, but can generate other problems when someone renames a file server...

    Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."

      ok then. What about unc path. it doesn't seem to have access to that server aswell. How can I make it popup for the end user to enter in their windows info to auth correctly?
        ok i narrowed it down, not the web server but possibly the script. When the script goes and access's the unc path, it indicates that the No such file or directory at within the webpage that I am viewing. When i run it from cmd line, it works. Is there any verbose logging i can setup that will tell me why it cannot find the directly, something along with the lines of an auth error. right now I have or die $!