Click to See Complete Forum and Search --> : AspSmartUpload Error while accessing component


pgnbn
06-11-2004, 07:46 AM
Hi!

I'm trying to use aspsmartupload from advantsys and i'm always getting this error:

Error Type:
Server object, ASP 0178 (0x80070005)
The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
/scripts/aspSmartUpload/Sample1.asp, line 15


I'm using windows 2000. I've followed all the instruction from developer site and still get this error. I'd also set permissions on the C:\Temp folder where .ddl com is.

I really need to make this work because I'm working in someone else's work that's using aspSmartUpload.

Could someone give me some help on this.

Thank you,
Pedro

simflex
06-11-2004, 08:10 AM
show some code.
what line is line 15?
I bet it has to do with setting permission on the folder from where you are uploading files.

The folder that contains the files to be uploaded need to be granted permission.

pgnbn
06-11-2004, 10:01 AM
This is the advantys code for sample1.asp:

<HTML>
<BODY BGCOLOR="white">

<H1>aspSmartUpload : Sample 1</H1>
<HR>

<%
' Variables
' *********
Dim mySmartUpload
Dim intCount

' Object creation
' ***************
Set mySmartUpload=Server.CreateObject"aspSmartUpload.SmartUpload")

' Upload
' ******
mySmartUpload.Upload

' Save the files with their original names in a virtual path of the web server
' ****************************************************************************
intCount = mySmartUpload.Save("/aspSmartUpload/Upload")
' sample with a physical path
' intCount = mySmartUpload.Save("c:\temp\")

' Display the number of files uploaded
' ************************************
Response.Write(intCount & " file(s) uploaded.")
%>
</BODY>
</HTML>

I gave full permissions on my testing file and followed every single instruction on the http://www.aspsmart.com/aspSmartUpload/ advantys site but still doesn't work. Any idea on what can be happening?

buntine
06-11-2004, 11:52 AM
Im not sure whether it is simply a type, but your missing a parantheses on your createObject statement.
It should look like this.

Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")

Regards,
Andrew Buntine.

pgnbn
06-11-2004, 12:11 PM
That's not the problem...was a mistake...but thanks anyway.

Pedro