473,387 Members | 1,925 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,387 software developers and data experts.

Classic ASP page error ActiveX component cannot create object error

1
I have a web project that used a vb6 class library. The asp page would call a createobject() to access the class library. I recently updated the vb6 class library to .net2005. I unregistered the old class library and registered the new .net dll using regasm using /codebase and registered the dll in the GAC. I can access the dll using a vbscript that just does this:
dim o
set o = createobject( "DataAccess_NET.DataAccess" )
Wscript.Echo o.test

Works perfectly.

if I put the same code in the asp page. I get the error ActiveX Component cannot create the object (DataAccess_NET.DataAccess)

Thinking it might be some security setting I created an aspx page in the same project and on page load I call the same above code. - Works fine.

Does anyone know why it does not work with classic asp. and works in a standalone vbscript and a .net aspx page. Even if I call the same vbscript file from the classic asp page it does not work. I would assume that since I can call the dll the other ways that it is registered correctly. Any help I would appreciate it. I have been struggling on this for a few days!!!
Feb 24 '09 #1
1 4186
jhardman
3,406 Expert 2GB
Server objects in classic ASP have been a major source of frustration for me lately and I have given up using all but the standards. If I were you, I would do it as a .NET web service (if you really wanted to keep the interface in classic ASP) which can not only be accessed in classic ASP, it wouldn't need to be updated when the front-end technology changes.

Jared
Feb 26 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Cathy Thomas | last post by:
Has anyone run into this problem? An ASP page creates a command object that calls a stored procedure. This was working one day; next, it stopped. I am not in control of the various patches that get...
6
by: Patrick | last post by:
Following earlier discussions about invoking a .NET class library via ..NET-COM Interop (using regasm /tlb) at...
99
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
3
by: Web Webon | last post by:
Hi everybody! I wonder if this is possible? I need to determine if a client is using "windows classic folders" or anything else. If I instantiate a Shell ActiveX object is there a way of...
4
by: Patrick | last post by:
I have a middle tier object that generates Excel spreadsheet here is the code moExcel = CreateObject("Excel.Application") moWorkBook = moExcel.Workbooks.Add moSheet =...
9
by: Charles Law | last post by:
Hi chaps I realise that this is a .NET group, but please don't shoot me down quite yet. I looked in the vb classic groups and there seems to be so little activity there that I was not hopeful of...
3
by: Supriya | last post by:
Hi All, How to add ActiveX Control to the web page. I added Object tag in the source html. Only ActiveX control is coming on the design. If I want to access the properties and manipulate them , I...
1
by: tristanpc | last post by:
Hi, I've got to the Hello World stage of wrapping a .net component with a CCW and calling it from wscript.exe. By placing the .tlb and .dll in the same folder as wscript I get this to work (I...
1
by: mahesh123 | last post by:
Hi Folks, I am getting an Error "Activex Component Cannot Create Object" While I am exporting the Data from the MSFlexgrid to the MS Excel. Here In my Client System MSOffice is not Installed....
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.