473,385 Members | 1,449 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Can't create component in ASP

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
Jul 19 '05 #1
6 11618
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.

"Stan" <st****************@yahoo.com.au> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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

Jul 19 '05 #2
Try this line in your ASP.

Set BC = CreateObject("IDAuto.BarCode")

-dlbjr

invariable unerring alien
Jul 19 '05 #3
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.

"dlbjr" <do******@do.u> wrote in message
news:eJ**************@TK2MSFTNGP09.phx.gbl...
Try this line in your ASP.

Set BC = CreateObject("IDAuto.BarCode")

-dlbjr

invariable unerring alien

Jul 19 '05 #4
Sounds like a user issue.

Check out this site:

http://support.microsoft.com/default...;EN-US;q296114
-dlbjr

invariable unerring alien
Jul 19 '05 #5
Thanks that was it!

"dlbjr" <do******@do.u> wrote in message
news:ef*************@tk2msftngp13.phx.gbl...
Sounds like a user issue.

Check out this site:

http://support.microsoft.com/default...;EN-US;q296114
-dlbjr

invariable unerring alien

Jul 19 '05 #6
Here is the other info you requested on
Server.CreateObject vs CreateObject

http://www.4guysfromrolla.com/webtech/043099-1.shtml

-dlbjr

invariable unerring alien
Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: brazilnut52 | last post by:
I am going to outline the steps I go through to produce the problem. Hopefully this will help you understand the problem better I have created a simple COM DLL in .NET by using the COM class...
2
by: Blake | last post by:
I'm using late binding to create Outlook email from an Access2K database. I am not referencing the Microsoft Office 9.0 Object Library nor the Microsoft Outlook 9.0 Object Library. Instead, I have...
1
by: Blake | last post by:
I'm using late binding to create Outlook email from an Access2K database. I am not referencing the Microsoft Office 9.0 Object Library nor the Microsoft Outlook 9.0 Object Library. Instead, I have...
4
by: Ismadi bin Nawang | last post by:
how to solve this problem. "activeX component can't create object" its happened when i want to create a new form in ms access.
2
by: Susan Bricker | last post by:
Hi. I have a routine (BldEmail) that is causing an error on my user's PC but not on mine. HELP!!! I have to fix this tonight. She reports an error with err.number=429 and the error message...
4
by: Abdhul Saleem | last post by:
Hi, I am recieving error ActiveX component can't create object in the following line in the asp page. set ExcelApp = CreateObject("Excel.Application") Previously this code was working fine....
0
by: syedsarfaraz | last post by:
Hi There! Could anybody please help regarding the below issue. We had a COM+ component deployed on Windows 2000/NT machine it was working fine, I mean when it was being invoked from other...
3
by: Keith G Hicks | last post by:
I created a dll for com (in vb.net 2005) so that I could access it's functions from an ms access app. I created the tlb file successfully. On my dev machine I referenced it in my access app and...
0
by: Cainnech | last post by:
Hi all, For my work I need to create a jpeg-file with Photoshop. In order to maintain the same Name-format I decided to create an application in VB6. That way I'm sure that the names always stay...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.