467,168 Members | 983 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,168 developers. It's quick & easy.

Classic ASP page error ActiveX component cannot create object error

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
  • viewed: 3974
Share:
1 Reply
jhardman
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

Post your reply

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

Similar topics

9 posts views Thread by Charles Law | last post: by
3 posts views Thread by Supriya | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.