Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 13th, 2007, 07:11 AM
Authorized User
Join Date: Jan 2007
Location: , , India.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saurabhj Send a message via Yahoo to saurabhj
Default ASP Upload Error

Hello Everyone,

I have a problem with my ASP Upload Script.

I am getting the error says
quote:Invalid Procedure Call Or Argument
Set MyFileObject = Server.CreateObject("Scripting.FileSystemObject")
Set objFile = MyFileObject.CreateTextFile(filename,,-1)
For i = 1 to LenB(value)
   objFile.Write chr(AscB(MidB(value,i,1)))  'Error On This Line
Set objFile = Nothing
Can anybody here aware of this?

Any Help would be greatly appreciated.....

Thanks in Advanced......

Reply With Quote
  #2 (permalink)  
Old May 5th, 2007, 12:53 AM
Authorized User
Join Date: May 2007
Location: Bangalore, Karnataka, India.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts


Put the below code in the action page and find out the value of Session.CodePage

response.write "Session.CodePage=" & Session.CodePage

if result is: Session.CodePage=65001, do write the below code at the top of your action page...

If Session.CodePage = 65001 then
    Session.CodePage = 1252
end if

Or [u]just set the Session.CodePage to 1252</u>, that it :)

Akash - The Sky

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
File upload error balesh.mind ASP.NET 2.0 Professional 2 August 20th, 2007 02:52 PM
ASP Upload nabeeljohn Classic ASP Professional 1 November 28th, 2005 05:59 AM
error in upload function blur_ivy .NET Web Services 0 February 26th, 2005 11:37 AM
file upload error Ashleek007 Beginning PHP 2 June 8th, 2004 05:44 PM
Upload Error Message isai Classic ASP Basics 0 September 10th, 2003 10:24 PM

All times are GMT -4. The time now is 04:06 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.