enigmaos
October 5th, 2001, 09:25 AM
I'm trying to save incoming files into a specific directory on a different server (not the web server where the ASP page is), but it's not working. Here's the code in the ASP page:
Dim xmlDoc
set xmlDoc = Server.CreateObject("MSXML.DOMDocument")
xmlDoc.LoadXML XMLFile
'The code below works fine, but the file can only be saved on the web server where the ASP page is saved (same directory)
xmlDoc.Save(Server.mappath(FileName & ".xml"))
'I have tried the code below, and it returned an error.
xmlDoc.Save("\\OtherServer\Test\FileName.xml")
Error:
error '80070005'
Access is denied.
Is there a code that can change the permission or just save incoming files into a specific directory? I already checked the permission on that directory, and it's not blocked or password-protected. It's on the same network, but different server.
THANKS!!
enigmaos@yahoo.com
Dim xmlDoc
set xmlDoc = Server.CreateObject("MSXML.DOMDocument")
xmlDoc.LoadXML XMLFile
'The code below works fine, but the file can only be saved on the web server where the ASP page is saved (same directory)
xmlDoc.Save(Server.mappath(FileName & ".xml"))
'I have tried the code below, and it returned an error.
xmlDoc.Save("\\OtherServer\Test\FileName.xml")
Error:
error '80070005'
Access is denied.
Is there a code that can change the permission or just save incoming files into a specific directory? I already checked the permission on that directory, and it's not blocked or password-protected. It's on the same network, but different server.
THANKS!!
enigmaos@yahoo.com