473,324 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Server object, ASP 0177 Error posting data from form

I have a form with various info and when the submit form button is pressed
the code in referral_process.asp is run:
<FORM action=referral_process.asp
method=post encType=multipart/form-data>

I am trying to upload the data (in PDF format) to an FTP site:
This is the referral_process.asp code:
Thank you for uploading your file.<br>
<% Set upl = Server.CreateObject("Referral.pdf") %>
<% upl.SaveAs "C:\temp\upload.out" %><BR>
Total Bytes Written: <%=upl.TotalBytes%>

it is failing on server.createObject("Referral.pdf") above. I don't have a
much experience instantiating objects and I was wondering if anyone could
give me some ideas on what to do here?

Thanks,
Phil
Nov 22 '05 #1
1 983
The problem is that Server.CreateObject() is expecting a ProgId as a
parameter. For instance, "ADODB.Recordset" is an example of a ProgId. It
looks like you are trying to invoke the name of a PDF file as a ProgId. A
ProgId usually has nothing to do with the name of the DLL it references.

Are you trying to use a file upload component to process the uploaded file?
If so, review the help documentation for that upload component. It should
include, amongst other things, the ProgId to use in code and installation
instructions for the DLL.

"Phil @ Zak" wrote:
I have a form with various info and when the submit form button is pressed
the code in referral_process.asp is run:
<FORM action=referral_process.asp
method=post encType=multipart/form-data>

I am trying to upload the data (in PDF format) to an FTP site:
This is the referral_process.asp code:
Thank you for uploading your file.<br>
<% Set upl = Server.CreateObject("Referral.pdf") %>
<% upl.SaveAs "C:\temp\upload.out" %><BR>
Total Bytes Written: <%=upl.TotalBytes%>

it is failing on server.createObject("Referral.pdf") above. I don't have a
much experience instantiating objects and I was wondering if anyone could
give me some ideas on what to do here?

Thanks,
Phil

Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Austin | last post by:
I have a Win2k server running IIS5.0. I have another server in the network that has a web based application that i would like to make public. On the IIS, I have created a Virtual Directory to...
1
by: gulrez alam | last post by:
Dear All In my application i am using VS.Net 2002 , C# . there is asp page Bank.asp . i am redirecting our users from our site to Bank site along with some parameters user is able to...
2
by: Kevin G. | last post by:
I am trying to instantiate an in-house DLL within my ASP application and I'm getting the following error: Error Type: Server object, ASP 0177 (0x800AEA5F) 800aea5f I have tried...
0
by: kanagaraju | last post by:
Hi every body, I am using the coding Asp files it is coding in running and output display that local server.But I put in all the files into Client server(ISP) it server running to another...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.