Hi
I have a unique problem , i wil highly appreciate if any one would help me out of thi
i have a web application which uses a API to communcate and fetch data
This API is single threaded one and if mulitple user access it the same time it crashes the whole web application
After much work i found that if i run this API on a seperate process for each call it does not crash
i want a solution such that when ever i create objects from this API, i want to create it in a new process(not even new APP Domain)
Is this possible?
Paul Glavich [MVP - ASP.NET] - 26 Apr 2004 08:56 GMT
Sounds like the component/API you are trying to call is STA (Single threaded
Apartment) and .Net objects/components are multi/free threaded by default.
Try changing the web pages that access this component/api include the
"aspcompat=true" directive at the top of the .aspx page (eg. <%@ Page
aspcompat=true %> ) which will ensure they are using STA mode and not
accessing an STA component using the free threaded model which can cause
problems.
--
- Paul Glavich
Microsoft MVP - ASP.NET
> Hi,
> I have a unique problem , i wil highly appreciate if any one would help me out of this
[quoted text clipped - 5 lines]
> i want a solution such that when ever i create objects from this API, i want to create it in a new process(not even new APP Domain).
> Is this possible??