1

If I have 2 startup projects as explained here.

One is a WebSite/WebService; the other is a WinForms app.

How do I stop the Service when the C# WinForm app is closed.

UPDATE

Im running IIS Express within my Solution.

Ther are the 2 projects (WebSite/WinForms) When the WinForms app closes it must also stop the instance of IISExpress.

Im noticing that while debugging, I close the app but the Service is still running.

Community
  • 1
  • 1
IEnumerable
  • 3,230
  • 11
  • 42
  • 72

1 Answers1

-1

I didn't use IIS Express before but I guess it works over a process. So probably you will find and kill that process at all.

Checking this link may help.

Community
  • 1
  • 1
Orkun Bekar
  • 1,349
  • 1
  • 12
  • 34