Pure ASP Upload 2 Support Product Page

This topic is locked
This topic was archived

Invalid procedure call or argument: 'MidB'

Reported 28 Oct 2002 12:11:27
1
has this problem
28 Oct 2002 12:11:27 euan green posted:
Hi,

I use ASP UPload 2.09 in a Content Management System to allow a company to add/update/delete press releases. They can add a press release with an image AND/OR a word document.

Adding it is fine, however, when it comes to updating it I am having major problems. Invariably the error message below appears when I try toi submit the updated press release

Microsoft VBScript runtime error '800a0005'

Invalid procedure call or argument: 'MidB'

D:\HOME\MILLER\ADMIN(NEW)\LOGIN\NEWS\../../../ScriptLibrary/incPureUpload.asp, line 104

I have checked the code in the incPureUPload.asp and it seems to be a problem with the MidB(...) call a value that doesn't exist.

Sometimes, when a user updates a record, they may not add an image or word document, so no files need to be upladed but the PureUPload code will still be run.
Could this be the problem? As it would mean that the PureASP Upload code is trying to execute String commands such as MidB(...) on null values?

I have added functions such as delete exisiting image from server if a new image or word document exists, and this involves a check box which when checked, deletes the file from the server when the form is submitted. I don't think this is the problem though as the code that executes this occurs after the ASPUpload code.

Has anyone got any ideas?

Thanks in advance

Euan





Replies

Replied 30 Oct 2002 11:07:41
30 Oct 2002 11:07:41 George Petrov replied:
You are probably trying to upload so weird text, like mixed unicode or some special characters that should normally be translated to the html codes - like &euro and chars

This happens when you copy and paste from older Word versions for example.

Greetings,
George

-----------------------------------------------
George Petrov - Co-Founder, www.UDzone.com
The site for Macromedia
Dreamweaver UltraDev Developers!
-----------------------------------------------
Replied 20 Nov 2003 10:42:47
20 Nov 2003 10:42:47 jon mold replied:
<font face='Arial'>#HI George, I have been redirected to this thread as I have a similar issue. Do you know whether there is an issue with what versions of VBScript and ASP Upload the server is running?

Any known problems with Win 200 servers? Old versions of ASP?

The reason I ask is that the upload works fine on my server running Win 2003, VBScript 5.6, ASP v3.0, ASP Upload v3.0.

Nowever my clients server is running some different settings, Win 2000.

Kind regards

Jon Mold

</font id='Arial'>
Replied 20 Nov 2003 10:46:33
20 Nov 2003 10:46:33 jon mold replied:
<font face='Arial'>#HI George, I have been redirected to this thread as I have a similar issue. Do you know whether there is an issue with what versions of VBScript and ASP Upload the server is running?

Any known problems with Win 200 servers? Old versions of ASP?

The reason I ask is that the upload works fine on my server running Win 2003, VBScript 5.6, ASP v3.0, ASP Upload v3.0.

Nowever my clients server is running some different settings, Win 2000.

Kind regards

Jon Mold

</font id='Arial'>
Replied 20 Nov 2003 19:36:25
20 Nov 2003 19:36:25 jon mold replied:
<font face='Arial'>Some of the porblem has gone away when certain permissions were changed on the upload folder.

Dont ask me why, my client who have their own server told me they were looking into the problem independently of me and said they had changed folder permissions. So I tested the pages and it seems to be working. Now I thought folder permissions produced a different error and not the "Invalid procedure call or argument: 'MidB'".

Can't complain, just wish I knew why it's now working

Regards - Jon </font id='Arial'><img src=../images/dmxzone/forum/icon_smile_dissapprove.gif border=0 align=middle>

Edited by - jonmold on 20 Nov 2003 19:37:42

Edited by - jonmold on 20 Nov 2003 19:38:10
Replied 24 Jun 2004 01:51:19
24 Jun 2004 01:51:19 Jared Cobb replied:
I am also using Windows Server 2003 and getting the same error. Does anyone know which folder(s) needed to have their permissions changed? (The upload folder or the ScriptLibrary folder)? Thanks for your help!

Edited by - jaredcobb on 24 Jun 2004 01:51:52
Replied 30 Nov 2006 22:55:52
30 Nov 2006 22:55:52 Ron Kidwell replied:
This is an old topic, but I have yet to see/receive a resolution. I have been getting the following error when using PureASP Upload 3.05 on Windows 2000 Server:

Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument: 'MidB'

It works fine on my XP Pro machines used for testing, but there has to be something to make it work on Win2K Server. It occurs only when submitting a form with a large amount of text. I removed the behavior and the form submits fine without it, so I know it's nothing to do with the database or form.

I have seen suggestions that copying and pasting from Word or similar apps can cause problems, but this is happens with plain text as well.

Any ideas? Anyone? Please help...I bought this extension specifically for this purpose and cannot use it. I feel like I just threw money out the window.

Thanks in advance
Replied 06 Dec 2006 12:51:11
06 Dec 2006 12:51:11 George Petrov replied:
this topic is for Pure ASP Upload 2 - you should post version 3 topics in its own forum at:

www.dmxzone.com/forum/default.asp?newsid=12064

Greetings,
George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------

Reply to this topic