Persits Software, Inc. Knowledge Base Articles

Wrong number of arguments or invalid property assignment error

Problem Description

When calling the method Upload.Save with no arguments, the following error is generated:

Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment: 'Save'

Solution

The Save method can be called with no arguments starting with version 3.0, of AspUpload which is equivalent to calling SaveToMemory in previous versions.

The above error message indicates that your server is still running version 2.1 or earlier of AspUpload. Therefore, you should either upgrade to AspUpload 3.0+ or replace Save by SaveToMemory . The latter is supported by versions 2.x and 3.x.