HighTechTalks DotNet Forums  

Force One Request per Worker Process

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Force One Request per Worker Process in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
stork
 
Posts: n/a

Default Force One Request per Worker Process - 12-28-2007 , 02:23 PM






I have an awful old COM object that periodically blows up. What I'd
like to do is set up my app pool in IIS 6.0 so that only one
concurrent request per worker process. This way, when the COM object
blows up, it won't take down the rest of my requests with it, as is
presently the case. There's a ton of settings for IIS 6, and I am
being too lazy to dig through them all and experiment. What's the
right way to set this up?

Reply With Quote
  #2  
Old   
John Saunders [MVP]
 
Posts: n/a

Default Re: Force One Request per Worker Process - 12-28-2007 , 06:44 PM






"stork" <Todd.Bandrowsky (AT) gmail (DOT) com> wrote

Quote:
I have an awful old COM object that periodically blows up. What I'd
like to do is set up my app pool in IIS 6.0 so that only one
concurrent request per worker process. This way, when the COM object
blows up, it won't take down the rest of my requests with it, as is
presently the case. There's a ton of settings for IIS 6, and I am
being too lazy to dig through them all and experiment. What's the
right way to set this up?
A try/catch block doesn't work for you?
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer




Reply With Quote
  #3  
Old   
stork
 
Posts: n/a

Default Re: Force One Request per Worker Process - 12-29-2007 , 12:42 AM



<snip>
Quote:
A try/catch block doesn't work for you?
--
No, it doesn't. The exception blows right past the try / catch and
terminates the asp_wp.exe process. I'm catching System.Exception.
I'm honestly surprised at this. I would have thought that try / catch
in C# would let me eat those. I even went looking for something that
let's C# catch structure exceptions ala the way C++ lets you eat GP
faults in a similar way, but to no avail. The only thing I could
think of would be if the exception being thrown wasn't a
System.Exception derived exception, which I've read can happen in
Biztalk, but in a mainstream C# application? I'm shocked.

I guess another approach to take would be to implement the web service
as a CGI. That would certainly force it to be an isolated process for
sure, but that basically leaves me doing the SOAP unwinding for the
web method.


Reply With Quote
  #4  
Old   
John Saunders [MVP]
 
Posts: n/a

Default Re: Force One Request per Worker Process - 12-29-2007 , 02:44 PM



"stork" <Todd.Bandrowsky (AT) gmail (DOT) com> wrote

Quote:
snip

A try/catch block doesn't work for you?
--

No, it doesn't. The exception blows right past the try / catch and
terminates the asp_wp.exe process. I'm catching System.Exception.
I'm honestly surprised at this. I would have thought that try / catch
in C# would let me eat those. I even went looking for something that
let's C# catch structure exceptions ala the way C++ lets you eat GP
faults in a similar way, but to no avail. The only thing I could
think of would be if the exception being thrown wasn't a
System.Exception derived exception, which I've read can happen in
Biztalk, but in a mainstream C# application? I'm shocked.
Try the following:

try
{
// Call your COM object
}
catch
{
Debug.WriteLine("Unmanaged exception thrown");
}

--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.