|
-
October 5th, 2001, 09:25 AM
#1
Saving a file from the web
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!!
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|