joejack0330
Technical User
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
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