×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

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!

*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

Com+ cache problem - have to restart box to update!!

Com+ cache problem - have to restart box to update!!

Com+ cache problem - have to restart box to update!!

(OP)
We are having a problem with COM + in thatit sometimes gets into a state where you can't update a com object.

You can even delete it through the interface and the server will still create instances without error ??

I am going through the correct process - stopping the application, deleting the object, replacing the source then dragging it back to com+.

The component supposedly registers without errors, but has the old version there.  Restarting the box will cause the new com object to be used - however... need i say more.

I believe that components are cached by the server to save resources - is there any control over this. Is there any services that can be restarted to fix this (Com + event system)?

Hmmmm. Thanx for any help.

RE: Com+ cache problem - have to restart box to update!!

Espar,

Have you also stopped the MS DTC service before attempting to update the component?  If you right-click on My Computer within Component Services, you can stop the MSDTC service.

King

RE: Com+ cache problem - have to restart box to update!!

(OP)
No i wasn't stopping DTC.  Would have guessed that by stopping (so 0 active instances) then deleting the object that any transactions would have been cleaned up.

But it sounds like a good suggestion - it only happens occasionally - i'll try next time -

thanx King.

RE: Com+ cache problem - have to restart box to update!!

(OP)
Have found that repeatedly deleting then re-adding component can fix problem - sooner or later...

Happened on a live server, i was too scared of the effects of stopping DTC while transactions were possibly still running / being started, and wasn't about to suggest that the company stop work while i update a com object. :)

Guess that while an instance of the object remains the package is removed from interface but not somewhere deep inside windows...  Even waiting a couple of minutes and watching activex errors appear did not matter, perhaps you have to be lucky enough to delete when there are no active instances.

RE: Com+ cache problem - have to restart box to update!!

(OP)
bump - happenin again on anther dev server - anyone else got any clues ??

RE: Com+ cache problem - have to restart box to update!!

(OP)
OK - think its figured :)

I was working in a web environment - so an asp page instantiating the object.

When running locally using say wscript the com object has the new methods and code - so i assume that IIS's caching scripts and executables extends to COM objects !!  

Guessing that IIS has no way of knowing that the source object has changed so doesnt mark as dirty also.

An iisrestart fixes the problem !

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! Already a Member? Login

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