[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

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

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?!?
0
kevp75
Asked:
kevp75
  • 9
  • 4
  • 3
2 Solutions
 
kevp75Author Commented:
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
%>
0
 
PreeceCommented:
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
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
PreeceCommented:
0
 
kevp75Author Commented:
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?
0
 
CtrlAltDlCommented:
Try giving IUSR_<machine name> permissions to execute and read the ImageMagickObject.dll.

I believe the ImageMagick folder needs to be in your PATH variable to.  At least that it is how I have it, but I'm shelling out to the prompt in PHP to execute it.
0
 
kevp75Author Commented:
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
0
 
kevp75Author Commented:
ok.   folder permissions have been set, as well as file persmissions and the error still happens.

any ideas?
0
 
kevp75Author Commented:
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?
0
 
CtrlAltDlCommented:
I think your SOL if you can't set those permissions.
0
 
kevp75Author Commented:
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.
0
 
CtrlAltDlCommented:
OIC
0
 
kevp75Author Commented:
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???
0
 
PreeceCommented:
You might try restarting IIS?

Preece
0
 
kevp75Author Commented:
been there done that, gone so far as restarting the computer as well...still the same issue
0
 
kevp75Author Commented:
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!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 9
  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now