Hello,

I am encountering the error 'Could not complete the operation due to error c004800a' while trying to stream a text file from an IIS webserver to the Client. The code is VBScript executed on the client side. I know the code works because I am using it fine on a local test box. When I test the code on the live box I get this error.

I have had no luck in finding much information on this error. Any help would be great. Thanks.

This is the code:

<script language="VBScript">
' Set up an ADO Stream
Dim objStream
Set objStream = CreateObject("ADODB.Stream")
objStream.Type = 1 ' adTypeBinary

'open file on server

objStream.Open("URL=http://xxx.xxx.com/xxxxx/xxx/test.txt")

' Save to client

objStream.SaveToFile "C:\test2.txt", 2 ' adSaveCreateOverWrite

objStream.Close
Set objStream = Nothing
</script>