Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 5th, 2005, 02:21 AM
Registered User
 
Join Date: Dec 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP ADODB.Stream Open via URL (Unspecified error)

Hi. I'm stumped.

Im getting an 'Unspecified error' on the line marked in red (see code below) on the server Microsoft 2000 Service Pack 4(IIS5, IE6) where on the server Microsoft 2000 Service Pack 2(IIS5, IE6) executes no problems.

Any ideas?

<%
var adModeRead = 1;
//
var adOpenStreamUnspecified = -1;
//
var adTypeBinary = 1;
var path = "http://servername/virtualpathtoddoc/docname.ext";
        try {
            var objStream = Server.CreateObject("ADODB.Stream");
            //This is where the error is invoked
objStream.Open("URL=" + path, adModeRead, adOpenStreamUnspecified);
            objStream.Type = adTypeBinary;
            Response.Write(objStream.Size);
        } catch(e) {
            Response.Write(e.description + " " + e);
        } finally {
            objStream.Close();
            objStream = null;
            Response.End;
        }
%>






Similar Threads
Thread Thread Starter Forum Replies Last Post
Unspecified error mahesh_82 ADO.NET 1 January 10th, 2007 06:24 AM
ADODB.Stream Open via URL (Unspecified error) blackadder_ba2 Classic ASP Components 2 December 7th, 2005 01:30 AM
read url file as array or text stream w_g_day Excel VBA 0 May 19th, 2005 05:49 AM
Problems with ADODB.Open zippo BOOK: Beginning ASP 3.0 1 April 22nd, 2005 05:16 AM
Adodb.stream File could not be opened. irabba Javascript 6 July 6th, 2004 06:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.