×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

ActiveX: MTS implementation needed or not.

ActiveX: MTS implementation needed or not.

ActiveX: MTS implementation needed or not.

(OP)
Hi,
   I want to create an ActiveX DLL that will be implemented on an ASP page and will be stored in a session object.  This ActiveX will store information and write it to a DB when needed.  the question is: do I need to create it as an MTS package or can I just create it as a normal ActiveX DLL?

Thank you.

RE: ActiveX: MTS implementation needed or not.

Because your dll will write to DB i suggest you use MTS component.You will enjoy the transaction support,connection pool,etc. of MTS executive.

Regards!

IPO_z@cmmail.com
Garbage in,Garbage out

RE: ActiveX: MTS implementation needed or not.

You do not need to use MTS but it is suggested.  If you do not and your dll hangs it can take down the web service running on that server.  MTS will run the dll in a protected memory space, so if the dll hangs mts will terminate the tread and return an error to the caller.  

Very important: It is very bad practice to store objects in a session or application variable, this work ok under small loads but will not scale.  MTS offers connection pooling of the objects and will make your app scalable.

RE: ActiveX: MTS implementation needed or not.

Thoriumg8 -

Like tdube says, storing objects or program state in the session object is bad practice.  It is OK to store the key to a database table in the session object, as that's only a few bytes.  You might want to think about storing it in a cookie, too (depending on whether your customers allow their browsers to save cookies).

Chip H.


RE: ActiveX: MTS implementation needed or not.

(OP)
Hi,
   I have been creating an ActiveX DLL with Visual Basic. I used MTS component to register the ActiveX DLL. After, I implement it on an ASP page.  The object is stored in a simple variable. I load the page in internet.
I have this error :

"Pages ASP error 'ASP 0241'

Exception CreateObject

Objet Server error 'ASP 0177 : c0000005'

Échec de Server.CreateObject"

What can I do ?

Thank you.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close