Solved

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

Posted on 2008-10-24
2
751 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 49

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now