title: ASP Bizarre Session COM+ Object Lost!
body: <p>I'm needing a lot of help from yours.</p>
  
  <p>I have an application in ASP, not ASP.NET ... Which uses several COM+ components developed for me.</p>
  
  <p>Below is an example of using one of the components.</p>
  
  <pre><code>Dim componentXPTO
  Dim xpto
  
  componentXPTO = Server.CreateObject("NAMESPACE.XPTO")
  
  Set xpto = componentXPTO.myFunction(variables)
  
  Set Session("XPTO") = xpto
  
  Set componentXPTO = Nothing
  
  Set xpto = Nothing
  
  ---------------------------------
  
  Session("XPTO").name
  </code></pre>
  
  <p>The problem I'm experiencing is something intermittent. I access several times the variable XPTO in the session without any problems. Thus this code is running. What happens is that sometimes when I access the same variable XPTO in the same user session bellow error occurs:</p>
  
  <pre><code>| 27 | 800a01ce | The_remote_server_machine_does_not_exist_or_is_unavailable: _'Session (...). name '
  </code></pre>
  
  <p>My suspicion is that as the XPTO object was returning from a COM+ function is keeping dllhost reference to the process and the moment that the recycling mechanism(Lifetime 10 minuts) terminating the process a reference to this object is lost and for this I am getting this error in my application ...</p>
  
  <p>It has some logic that I'm talking about? Return of functions with references and keeping at the time of the recycling process loss this reference?</p>
  
  <p>I've tried every way to debug and the only question that remains is exactly this ..</p>
  
  <p>Please someone help me!</p>