Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't find file via UNC path

Status
Not open for further replies.

hc98br

ISP
Aug 14, 2003
46
Hi, I've have an ASP app running in IIS6 on Windows 2003

One of the things it does is to look for a file on another server, simply using the line: fileSys.FileExists("\\server\folder\file.mdb")

This was working fine, but recently it started to return False, it now constantly returns false even though the file is there!

I have done some searching and can't come up with any answers, the best I have found is checking the permissions, I've added the IUSR to the share permissions and to the folder permissions - I even tried giving Everyone full permissions, but still the webpage cannot see the file!!!

The server can open and see the share and the file!

Any ideas!?!

Thanks


Ben.


ben-robinson.com
 
When you refer to a server using \\server you are usually using NetBios and not DNS.

Try using the fully qualified domain name (FQDN) instead of just the server name.

(e.g. if your domain is "mycompany.net" then your server would be "\\server.mycompany.net\folder\file.mdb")

Good luck,
 
Hi, thanks for your reply - I tried as you suggested and still no joy - File not found, I even tried with the IP address of the server!

Any more ideas?!

Thanks!!!


ben-robinson.com
 
Well, what I would do is try to track down what changes took place between the time this used to work and when it stopped working.

Good luck,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top