Solved

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

Posted on 2008-10-24
2
761 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 52

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
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…

734 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