Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO 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 May 11th, 2004, 01:47 PM
Registered User
 
Join Date: Jul 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to flaviostz
Default Error '80020009' with upload object

Dear Members:

I have been working in a small applications to upload files and I am having the following error message:

  * Error Type:
      Microsoft VBScript runtime (0x800A01FB)
      An exception occurred: 'ProcessRequest'
      /EAI_INTRANET/Techsupport/KnowledgeBase/KBUploadReceive.asp, line 116

    * Browser Type:
      Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7b) Gecko/20040316

    * Page:
      POST 588075 bytes to /EAI_INTRANET/Techsupport/KnowledgeBase/KBUploadReceive.asp

    * POST Data:
      error '80020009'

      Exception occurred.

      /iisHelp/common/500-100.asp, line 223


The piece of code that it is refering to is:

Dim StringAux
    Dim owNoOverwrite, owOverwrite, owUnique
    Dim objUpload


    Set objUpload = New Upload

    ' If we want to limit the size of uploads set the lMax value to the
    ' max amount of kb we want to load.
    ' 2048 = 2mb.
    ' For no limit set this to -1

    objUpload.MaxUploadSize = -1

    ' If we want to limit the type of files to upload add the extensions of valid
    ' files to sExtensions as a comma separated list. If you don't want to
    ' limit the extensions simply make the variable blank ("")

    objUpload.ValidExtensions = "zip,txt,jpg,gif,bmp,dwg,pdf,doc,dot,xls,ppt," '' in order to test this, try upload a .ini file for exmple.

    ' Define the overwrite constants

    owNoOverwrite = 0 ' the upload will not overwrite an existing file of the same name
    owOverwrite = 1 ' the upload will overwrite an existing file of the same name
    owUnique = 2 ' if a file exists with the same name the uploaded file will be given a new, unique name

    ' Set the overwrite mode
    objUpload.OverwriteMode = owUnique

    ' Set the path we want the files to be saved to. If this is not
    ' supplied it defaults to the directory that the page is in
    ' objUpload.Form(1) means the vnew_Resource and objUpload.Form(2) means the v_ID

   '' StringAux="../UploadedFiles/"&objUpload.Form(2)&"s"
    ''response.write(StringAux)
    objUpload.UploadPath = server.MapPath ("UploadedFiles/")

    ' Do the work
    objUpload.ProcessRequest


The error line is the last one.

I have been seen some posts to this forum that the solution is to use an older service pack ( sp 3 ). Is that true ? Can someone out there help me? Does anyone know how to solve it?

:(

Thanks for any information you may supply...



Flávio de Souza
======================
[email protected]
ICQ: 78458203
======================





Similar Threads
Thread Thread Starter Forum Replies Last Post
converting .NET error object in VB error object webnet .NET Web Services 0 February 5th, 2007 06:02 AM
HELP PLEASE!! error '80020009' Brolin99 Classic ASP Professional 3 April 29th, 2006 02:20 AM
error '80020009' Exception occurred. hauruapai Classic ASP Basics 2 April 10th, 2006 05:05 PM
ADODB.Field error '80020009' EricTheViking Access ASP 2 August 16th, 2005 12:45 AM





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