ADO Stream/CopyRecord failure
I have a series of problems:
1) objRecord.Open Filename, URL1, Mode,, Options, UserName1, Password1
objRecord.CopyRecord "", URL2, UserName2, Password2
In this case, the line 1 works and line 2 causes "Server cannot complete the operation" error. I checked the write checkbox of the virtual directory, file folder's security box, etc. but the result is the same.
2) objRecord.Open Filename, URL1, Mode,, Options, UserName1, Password1
objStream.Open objRecord ,,adOpenStreamFromRecord
In this case, the line 1 works and line 2 cuases "Unspecified error"
3) objRecord.Open Filename, URL1, Mode,, Options, UserName1, Password1
objStream.Open URL1, Mode, Oprions, 8, UserName1, Password1
In this case, the line 1 works and line 2 causes "Permission denied"
4) objRecord.Open Filename, URL1, Mode,, Options, UserName1, Password1
objStream.Open
objStream.LoadFromFile Filename
In this case, it works.
So, method 4) is ok, as long as I get a file from a computer in the same private network. However, I cannot get a file from a computer in remote location even if it is connected by VPN. I assume methods 1) to 3) should be used for getting a file from a remote computer. I tried many user name permission combinations but no success. The ASP server is in a Workgroup and the file exists in a server within another Domain. Any help is appreciated.
ken
|