Multimobile Development: Building Applications for any Smartphone
IIS hanging in ASP.Net/Component Services
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.component_services.


Jim
We are experiencing a problem with component services in .Net and IIS. We
use component services to handle transactions against SQL Server. At some
point of usage, IIS will hang up and the lowest level in the stack trace is
at System.EnterpriseServices.Thunk.Proxy.CoCreateObject and also sometimes
at System.EnterpriseServices.Thunk.Proxy.RevokeObject. Each thread that
comes in after this gets stuck in the same spot and IIS is hung at that
point and requires us to restart IIS. No exceptions are thrown; the threads
are simply hung up. Looking at SQL Server Enterprise Manager, it does not
look like there is a deadlock in SQL Server so that can be ruled out. Its
almost like COM+ is getting hung up when the objects need created or
remoting communications are blocked.

Here is a partial call stack displaying when it wa stuck at
System.EnterpriseServices.Thunk.Proxy.RevokeObject:

>
system.enterpriseservices.thunk.dll!System.EnterpriseServices.Thunk.Proxy.Re
vokeObject(int cookie) + 0x80 bytes

system.enterpriseservices.dll!System.EnterpriseServices.ServicedComponentPro
xy.CleanupQueues(bool bGit) + 0x5f bytes

system.enterpriseservices.dll!System.EnterpriseServices.ServicedComponentPro
xyAttribute.CreateInstance(System.Type serverType) + 0x3b bytes

mscorlib.dll!System.Runtime.Remoting.Activation.ActivationServices.IsCurrent
ContextOK(System.Type serverType, System.Object[] props, bool bNewObj) +
0x4b bytes

When this happens the CPU is not at 100% so this is like a wait state thats
blocking the execution of Component Services methods.

Anyone have any ideas of what's going on?

Thanks,
-Jim

Reply to this message...
Vote that this is a GOOD answer...
 
Really good experience at the Apple Store
MonoDroid – looking *awesome*
 
    
Boris Partensky
GOOD ANSWER
Hello Jim!
Have you ever found a solution to the IIS hanging problem, which would
produce a following call stack:

at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32
errorCode, IntPtr errorInfo)
at System.EnterpriseServices.Thunk.Proxy.RevokeObject(Int32 cookie)
at System.EnterpriseServices.ServicedComponentProxy.CleanupQueues(Boolean
bGit)
at System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type
serverType)
at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type
serverType, Object[] props, Boolean bNewObj)

We encountered a similar issue, same call stack, which is very hard to
reproduce. The only difference is that in our case IIS does not hang.
ASP
Page pukes with E_ENVALIDARG with "parameter is incorrect" message.
Please let me know.

Boris
Reply to this message...
Vote that this is a GOOD answer... (1 vote from another user already)
 
 
    
Dev
Boris,

If your server is crashing or hanging you might want to
download our ReJuvin8 tool. It's free for the first
15-days. It can keep your site running despite problems.

It's designed to detect problems then restart or reboot.
It can restart ANY programs, services, or processes in
precise order. It doesn't fix bugs but it does give you some
breathing room while you are finding them. ReJuvin8 also
gives you email and telephone alert messages and graphic
status reports. It runs as a Windows Service.

It can also test, alert, and report on URLs running anywhere
on any server on your net connection. So if you use multiple
servers you can use them to watch each other, too.

ReJuvin8 has both an automatic and a custom mode. In the
auto mode you make all the settings by pointing and
clicking. This will handle most applications.

The custom mode uses heartbeat synch files to get absolute
detection that key processes are working. Tools and
instructions are provided to help you do this. We also offer
customization as a contract service.

Charles

Get ReJuvin8 at: http://www.rejuvin8.net?ac=ch1

"Boris Partensky" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

e
[Original message clipped]

e
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
 
    
Boris Partensky
Jim!

If you are still interested in this issue,
Microsoft identified it as a bug in COM+ async finalization code. It was
NOT fixed in any official .NET 1.1 hot fixes, however it was fixed in
1.2 (Whidbee timeframe I think).

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Reply to this message...
Vote that this is a GOOD answer...
 
First volume of Multimobile Development nearly ready to go to press
A mention on Developing for the iPhone and Android: The pros and cons
 
    
J Tremblay
(Type your message here)

--------------------------------
From: J Tremblay

?%$&*%$?... It looks like my previous post wasn't processes correctly.
OOOPS! (Red face) I just saw the capcha test this time :D

Here we go again:

Hello Boris,

I experience exactly the same problem.

System.ArgumentException: The parameter is incorrect.
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
......

I am looking for aditional information for that problem.
Bug description, fix date, architecture changes to avoid the problem... anything that could help me fixing my production system. I did look in Microsoft Knowledge Base but I didn't find anything interesting for me. I am fairly new to MIcrosoft KB, I did read the "Searching the Knowledge Base" tips... It didn't give me any additional trick to find what I am looking for. It would be nice if you could point me where to look to find that information. According to what you wrote in the previous post, you know where to find that.

Thank,

Jade
RoR
Reply to this message...
Vote that this is a GOOD answer...
 
First chapters of Multimobile Development book now available on Apress Alpha program
iPad
 
    
J Tremblay
Hello Boris,

I experience exactly the same problem.

System.ArgumentException: The parameter is incorrect.
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
......

I am looking for aditional information for that problem.
Bug description, fix date, architecture changes to avoid the problem... anything that could help me fixing my production system. I did look in Microsoft Knowledge Base but I didn't find anything interesting. I am fairly new to MIcrosoft KB, I did read the "Searching the Knowledge Base" tips... It didn't give me any additional trick to find what I am looking for. It would be nice if you could point me where you find information about release date for a fix, etc. According to what you wrote in the previous post, you know where to find that.

Thank,
Jade

--------------------------------
From: J Tremblay
Reply to this message...
Vote that this is a GOOD answer...
 
 
    
prasad dabak
GOOD ANSWER
Hello,

I am exactly running into same issue. Is there any solution for this?

Here is the post I made about the issue on google.

http://groups.google.co.in/groups?q=Dabak&hl=en&lr=&ie=UTF-8&scoring=d&selm=96ca2fd2.0406162341.213093d3%40posting.google.com&rnum=2

Thanks.
-Prasad

--------------------------------
From: prasad dabak
Reply to this message...
Vote that this is a GOOD answer... (1 vote from another user already)
 
 
 
System.ArgumentException
System.IntPtr
System.Object
System.Runtime.InteropServices.Marshal
System.Type




Multimobile Development: Building Applications for any Smartphone
Ad
BootFX
Reliable and powerful .NET application framework.
iOS, Android and Windows Phone Development Training and Consultancy
Hosted by RackSRV Communications
 
Multimobile Development: Building Applications for any Smartphone
Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734