Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / April 2004

Tip: Looking for answers? Try searching our database.

new Prcoess

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Abdur Rahman - 26 Apr 2004 05:11 GMT
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??

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.