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!

ASP pages access files on another server.

Status
Not open for further replies.

joejack0330

Technical User
Jan 27, 2006
95
US
Hi, trying to be able to bring up file list in asp page where files are on another local server but unable to do. We have tried using virtual directory, using the domain admin user for asp connection, creating an iusr_computer account with same name as local iusr computer name as mentioned in some online searches but alwasy seem to get the error below. It works fine if folder is on same server but not on another. Also, if we are able to display fine if just using html code for image path, it displays image fine even if on another machine but not when using filesystemobject. One thing that we have it kind of narrowed down to is that it seems to work on an older server with .net 1.1 but on server running .net 2.0? This is some sample code and error we get is below that. Thanks.

strPath="\\app1\webreports\customers\970000"
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(strPath)
For Each objItem In objFolder.Files
'Some code to display results
next

Error that we get.
Microsoft VBScript runtime error '800a004c'

Path not found
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top