I am using a third party COM componenet which is not thread safe in a .Net
web application using Interop. When two threads (two requests) are trying to
access the componenet it is giving an error and crashing. It works fine if
the request is made only one at a time. How can I code around this problem
so that only one thread operates on the COM object at one time.
Any help will be greatly appreciated.
Thanks
Rajesh
Willy Denoyette [MVP] - 10 Sep 2004 11:05 GMT
Please don't multipost !
As reply'd to microsoft.public.dotnet.framework...
Make sure you set aspcompat attribute to true in your aspx page
<%@ Page aspcompat="true" ...%>
Willy.
>I am using a third party COM componenet which is not thread safe in a .Net
> web application using Interop. When two threads (two requests) are trying
[quoted text clipped - 7 lines]
> Thanks
> Rajesh