Solved

server.create object failed error when trying to upload images in ASP

Posted on 2008-10-24
2
757 Views
Last Modified: 2011-10-03
I'm trying to build a page that will upload images, save the info to a database and resize the image. I'm following a tutorial at:

http://www.chestysoft.com/imagefile/resizedemo.asp

When I try to run the page I get error message:

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/uploadtest/process.asp, line 27
800401f3

Here is the code up to line 30

<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/conupload.asp" -->
<%
Dim reupload
Dim reupload_numRows

Set reupload = Server.CreateObject("ADODB.Recordset")
reupload.ActiveConnection = MM_conupload_STRING
reupload.Source = "SELECT * FROM Images"
reupload.CursorType = 0
reupload.CursorLocation = 2
reupload.LockType = 1
reupload.Open()

reupload_numRows = 0
%>
<%
'The database connection is made using OLE DB 4.0
'An alternative method using ODBC is included but remarked out.

'DataConnection = "filedsn=" & DirPath & "access.dsn;DBQ=" & Server.MapPath("ImageDB.mdb")

'DataConnection = "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=" & Server.MapPath("ImageDB.mdb")

'The following line creates the upload object, assuming the trial version is used
'Use "csASPUpload.Process" for the full version.
Set Upload = Server.CreateObject("csASPUploadTrial.Process")     <-------------------------------------------

%>
<html>

The file "csASPUploadTrial.dll" is in the same folder as the process.asp file.

Can anyone point me in the right direction here. Thank you.


0
Comment
Question by:elliottbenzle
2 Comments
 
LVL 50

Assisted Solution

by:Ryan Chong
Ryan Chong earned 200 total points
ID: 22797665
>>The file "csASPUploadTrial.dll" is in the same folder as the process.asp file.

You may copy "csASPUploadTrial.dll" to Windows System folder and register it via this command in Dos Prompt:

regsvr32 csASPUploadTrial.dll


and then try your scripts again.
0
 
LVL 7

Accepted Solution

by:
ASPSQLServerCOM earned 300 total points
ID: 22797813
hi, just register the component using
start -> run->
regsvr32 "c:\....\...\csASPUploadTrial.dll"


c:\....\...\csASPUploadTrial.dll means your component path like c:\Intepub\..  where to component is residing
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
API not working 33 62
Question to locate the problem 18 111
Connection String to remote Server not working 3 88
Select case on click 3 16
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question