Link to home
Start Free TrialLog in
Avatar of kevp75
kevp75Flag for United States of America

asked on

ImageMagick component issue

I am having a situation with this component.

I keep getting an error:
Microsoft VBScript runtime error '800a01ad'

ActiveX component can't create object: 'ImageMagickObject.MagickImage.1'

/test/test.asp, line 4


I have verified that his component is indeed installed on the server.

the code that I am using is simple:
<%
Set ObjImg = CreateObject("ImageMagickObject.MagickImage.1")
    IF IsObject(ObjImg) THEN
        Response.write("ImageMagick is installed in the server")
    ELSE
        Response.write("ImageMagick is not installed in the server, Houston we have a problem")
    END IF
set ObjImg
%>

this is urgent...please help?!?
Avatar of kevp75
kevp75
Flag of United States of America image

ASKER

removing the .1 and adding server. to createobject gives me this error:
Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/test/test.asp, line 4

800401f3


updated code would be:
<%
Set ObjImg = Server.CreateObject("ImageMagickObject.MagickImage")
    IF IsObject(ObjImg) THEN
        Response.write("ImageMagick is installed in the server")
    ELSE
        Response.write("ImageMagick is not installed in the server, Houston we have a problem")
    END IF
set ObjImg
%>
If you haven't already done so, you may need to reboot the server.  That error usually means that your ActiveX component (dll) is not registered on your web server.

Preece
ASKER CERTIFIED SOLUTION
Avatar of Preece
Preece
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kevp75

ASKER

I have done all except the WSCRIPT solution.  I will try that out a little later today.

Is there any other ideas, as I would rather keep away from using WSCRIPT to execute the .exe file for it?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kevp75

ASKER

just wanted to post that I'm not ignoring you :)

i'm working with the host (my company), now but I live on the east coast and they are on the west coast, so unless my guy out there gets back to me that it is done (or I fly out and do it, as they have not setup RDP for me yet), I am afraid I may be in for a waiting game.

in the meantime I am going to try our that WSCRIPT method
Avatar of kevp75

ASKER

ok.   folder permissions have been set, as well as file persmissions and the error still happens.

any ideas?
Avatar of kevp75

ASKER

WSCRIPT method does not work either stating permissions error.  And I cannot allow IUSR_ access to where the script needs access to.

any other ideas?
I think your SOL if you can't set those permissions.
Avatar of kevp75

ASKER

i only mean the permissions that WSCRIPT would need  (to execute cmd)  Other than that the permissions are set for the dll file and the folder that it is contained in.
Avatar of kevp75

ASKER

any other ideas.   I've given the install path iusr access, and the file it's supposed to open, via using the wscript method, but it still fails on permissions???
You might try restarting IIS?

Preece
Avatar of kevp75

ASKER

been there done that, gone so far as restarting the computer as well...still the same issue
Avatar of kevp75

ASKER

the issue still exists on the production server, however I have doen what was suggested by you both on my server at home, and not only did I have to set IUSR_ persmissions to the folder containing the image, but also to convert.exe so I could shell to it, and it did work.

I have since gotten rid of this component, free as it may be, and I'm sure it is great for PHP, and the other languages they claim to support, I really have no use for it.  I shelled out the 150$ for ASPJpeg, a few years back, and found it to be one of (if not The) best for an ASP solution.

Thanks for the discussion folks!