Can't create component in ASP

S

Stan

I have a third party COM component registered on my machine which we use to
display barcodes on web pages. My problem is that when I try to create the
components (2) in ASP I get object creation errors. This would seem to
indicate that the component files are not registered correctly or are
missing dependencies or something along those lines. However I AM able to
create the components in Visual Basic, and also if I install the required
files I am using on someone elses machine they do work correctly, and I have
re-registered them umpteen times on my machine.

i.e.
<%
Dim BC
on error resume next
Set BC=Server.CreateObject("IDAuto.BarCode")
if err <> 0 then
Response.Write("ERROR " & err.number & " - " & err.description)
end if
%><br><%
Dim IX
on error resume next
Set IX=Server.CreateObject("IDAutomationGDI.ImgX")
if err <> 0 then
Response.Write("ERROR " & err.number & " - " & err.description)
end if
%>

Produces

ERROR -2147319779 - 006~ASP 0177~Server.CreateObject Failed~Library not
registered.
ERROR 32797 - 006~ASP 0177~Server.CreateObject Failed~800a801d

My VB code,

Dim BC
Set BC = CreateObject("IDAuto.BarCode")
Debug.Print BC.FixedResolutionCM

, creates and uses the object without issue in VB.

BTW I have enabled every permission I possibly can in the IIS folder where
the script is resides.

Any help appreciated,

Dave
 
S

Stan

BTW I'm using Windows XP version 5.1 (Build xpsp2.030422-1633: SP1) and IIS
5.1 and I install all the latest patches.
 
D

dlbjr

Try this line in your ASP.

Set BC = CreateObject("IDAuto.BarCode")

-dlbjr

invariable unerring alien
 
S

Stan

OK thanks, that does work for that component, though for the other one I
still get an error even if I remove the Server object, though the error is
different

32797 - Unknown runtime error

And that one does create in VB too. Can you please give me some insite into
what is going on here. Why would Server.Create not work for me but does work
on other machines? What is the difference between having it and not having
it? And is there some way I can get the other component to create? BTW I'm
new at this as you probably worked out already.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top