Using ActiveX DLL from ASP pages (Error 800706F7)

D

Daniil Gromov

I am running ASP pages on IIS5 with and very simple ActiveX. All the ActiveX
contains is a number of basic classes. These classes are simply a collection
of setters and getters w/o any business logic. The reason I use this DLL is
to store instances of the classes in a session or application object, so
that I don't have to go to the DB for the data that never or rarely changes.

This setup worked fine for a while, but then crashed with Error: 0x800706F7
w/o any explanation. Reregestering DLL fixes the problem for some time befor
eit crashes again in a few days.

What could be the problem and how do I fix it? Thanks to everybody!

Exaple of my code:

VB ActiveX DLL:

Class MyClass
Public a
Public b
End Class

ASP Code:

Set myObj = Server.CreateObject( "MyActiveX.MyClass" )
myObj.a = "blah"
Set Session( "MyObject.Instance" ) = myObj
 
T

Tom Kaminski [MVP]

Daniil Gromov said:
I am running ASP pages on IIS5 with and very simple ActiveX. All the ActiveX
contains is a number of basic classes. These classes are simply a collection
of setters and getters w/o any business logic. The reason I use this DLL is
to store instances of the classes in a session or application object, so
that I don't have to go to the DB for the data that never or rarely changes.

This setup worked fine for a while, but then crashed with Error: 0x800706F7
w/o any explanation. Reregestering DLL fixes the problem for some time befor
eit crashes again in a few days.

What could be the problem and how do I fix it? Thanks to everybody!

Exaple of my code:
Set Session( "MyObject.Instance" ) = myObj

I see you're storing your object in session scope, are you following best
practices?
http://www.aspfaq.com/show.asp?id=2053
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top