Re: Server.CreateObject failing after 15 minutes of inactivity on virtual

From: Egbert Nierop \(MVP for IIS\) (egbert_nierop_at_nospam.invalid)
Date: 12/14/04


Date: Tue, 14 Dec 2004 19:05:57 +0100


"Dave B" <david_brisco@aotx._NOSPAM_uscourts.gov> wrote in message
news:%23LB1MZW4EHA.2288@TK2MSFTNGP11.phx.gbl...
> "Egbert Nierop (MVP for IIS)" <egbert_nierop@nospam.invalid> wrote in
> message news:%23AOkOP13EHA.1564@TK2MSFTNGP09.phx.gbl...
>> "Dave B" <david_brisco@aotx._NOSPAM_uscourts.gov> wrote in message
>> news:eE5sP3w3EHA.2592@TK2MSFTNGP09.phx.gbl...
>> >I am using a COM object that I am able to create/destroy on a given
> virtual
>> > as long as the virtual has at least one request every 15 minutes. If
> more
>> > than 15 minutes pass I receive the error message below when I attempt
>> > to
>> > create this object:
>>
>> So, basically are you caching the object in the application?
>> ps: Try to do this with CreateObject instead of Server.CreateObject.
>
> I am not caching the object in the application. Although the object may
> be
> putting something in the application/session environment (it was written
> by
> a third party). I have tried to create the object with creatobject over
> server.createobject with the same outcome.
>
>>
>> Another issue, FlsSetValue is doing thread or fiber storage. A Both
>> marked
>> component should not persist values in memory this way. It should have no
>> thread affinity.
>
> The object is marked as 'Both' in its ThreadingModel registry key. I
> tried
> setting it to 'Apartment', but it would not allow itself to be created,
> stating invalid configuration/registration.

This is not making sense. It is marked as both or apartment, but how it was
compiled and programmed really makes the difference.

> How would the typical application use FlsSetValue in a code sense?

Not quite sure. I believe the component is compiled as 'both' but in fact,
it still uses Thread Local Storage (TLS) which is a bad thing. Ask the
builder of the component if he knows about it.

> Also do you know of a way to turn off whatever is setting this 15 minute
> timer, and destroying things (or even what in IIS might be doing this)?
> Is

You can configure IIS6 using the console for IIS. In the application pool,
the default one, you can set not to destroy the pool. By default it destroys
the pool after x minutes idle time.

> this configurable. I believe I have tried setting most of the
> configurable
> properties that related to time (like session timeout, lifetime limit,
> expiration timeout) through the IIS MMC snap-in or component services.
> None
> of the changes, have appeared to change the stated behavior.
>
> Should the component I am using be listed under the legacy components for
> the COM+ Application virtual? The COM object I working with was written
> about 5 or 6 years ago.

A little tricky. You might even not need COM+. Just avoid the COM+ stuff and
register the component using regsvr32. But only do this, if you are sure,
the component has no dependencies on COM+.

>
>



Relevant Pages

  • Re: IIS caching output of pages
    ... but it's definitely IIS that's caching the web pages - ... We have verified this by disabling caching in IE, ... > temporary foler rather than on the serverside. ... Then the browser will download these resources and cached ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IIS6 caching
    ... > We've run into a situation with Windows 2003 Web server edition where IIS ... > Initially the hosting client contacted us and it appeared to be a caching ... > a client site or proxy caching issue. ...
    (microsoft.public.inetserver.iis)
  • Re: Issues with multiple website development on Windows 2000 pro box
    ... This problem is being caused from caching. ... Stopping and restarting IIS does ... > be a way of stopping the caching of the browser in developemnt mode. ... >> problem is occuring on windows XP pro as well. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IIS 6.0 Not Caching Images
    ... correct place to determine whether IIS is caching or not. ... A 304 "Not Modified" does NOT indicate that the server cached the response. ... please give me the resource". ... IIS served out of the cache, you'd see a 200 response with no round-trip to ...
    (microsoft.public.inetserver.iis)