Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 787
  • Last Modified:

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

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
elliottbenzle
Asked:
elliottbenzle
2 Solutions
 
Ryan ChongCommented:
>>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
 
ASPSQLServerCOMCommented:
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now