0

My ASP.NET SOAP Web Service is getting "Out of memory" run-time error after a few hundred calls. The "Out of Memory" issue is happening because of my using of a third-party component in my web service. To solve the "Out of Memory" issue I'd like to restart my web service from within itself when it captures "Out of memory" run-time error.

I have found how to restart a web service using a "hacking" solution "How to restart asp.net application besides modifying web.config".

Question: Is there any other more "elegant" non-hacking ways to restart an ASP.NET web service (both SOAP and Web API) from within itself by, e.g., using a special .NET Framework API call? I'm using .NET Framework 4.0+ in my web service.

2
  • 1
    You want to kick the chair from under a running application, there's no way to call that elegant. Let the third-party component be fixed or just try the various ways offered on this site. Commented Jul 22, 2014 at 8:29
  • @CodeCaster: AFAIU the "ways offered on proposed site" do use external to a running Web Services restarting methods (am I wrong?) and I'm looking for internal ones. Commented Jul 22, 2014 at 20:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.