error occuring "Server object: 006~ASP 0177~Server.CreateObject Failed~Invalid class string"

I am getting an
ie., " Server object: 006~ASP 0177~Server.CreateObject Failed~Invalid class string ".

This error i am getting at below line

set objUp = Server.CreateObject("ASPSmartUpload.SmartUpload").

I place all my code below.
Can you please help me why i am getting this error.
<%
dim objUp
 
set objUp = Server.CreateObject("ASPSmartUpload.SmartUpload")
 
objUp.DownloadFile DOWNLOAD_DIR & Request.QueryString("hh"), , Request.QueryString("hh")
 
set objUp = nothing
%>

Open in new window

ravindra333Asked:
Who is Participating?
 
spprivateConnect With a Mentor Commented:
Seems the smart upload component is not registered in the system

Start --> Run
regsvr32 "C:\..\smartupload.dll  (I am not sure about the dll name.So find that and put the path correctly.
0
 
JoachimMartinsenCommented:
You are missing something between two commas on line 6.
Try adding e.g a empty string, like this:
objUp.DownloadFile DOWNLOAD_DIR & Request.QueryString("hh"), "" , Request.QueryString("hh")

Open in new window

0
 
ravindra333Author Commented:
Sorry,
1) According to first solution, i am getting error at
set objUp = Server.CreateObject("ASPSmartUpload.SmartUpload")

This is above the line which you said. So this is not correct solution

2) According to second solution .I already have smartupload.dll  in my C:
I verified it by Run-->regedit-->find (smartupload.dll ).
So this solution also doesnt help me.

Can you please give me other solution?
Thanks in advance
0
 
JoachimMartinsenConnect With a Mentor Commented:
If the attached code gives an error message there's something wrong with the component. If so, try to download the component again and register it.
<%
set objUp = Server.CreateObject("ASPSmartUpload.SmartUpload")
set objUp = nothing
%>

Open in new window

0
 
spprivateCommented:
do this steps

regsvr32 -u "c:\smartupload.dll"
then
regsvr32  "c:\smartupload.dll"
you are unregistering and re registering it.
If that doesnt work you have a corrupt component.You have to download a new one
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.