Avatar of Starr Duskk
Starr Duskk
Flag for United States of America asked on

How to stop a webservice from running

I have a webservice that ran with a bug in it. The web service is still running and I'd like to stop it from continuing to loop.

I am using Windows Server 2012R2 and IIS Version 8.5. It is a Windows Web Server.

I have stopped the website. I have stopped the application pool. I have waited a few minutes before restarting them.

But the webservice still keeps running in the background.

I have not reboot the box, but that is the next thing I am considering.

Any ideas? Thanks!
* iis8Microsoft IIS Web Server

Avatar of undefined
Last Comment
zc2

8/22/2022 - Mon
zc2

Why just not kill the w3wp.exe process?

If the service is the only application on the server, restart the whole IIS by executing the command "iisreset" (as Administrator).
Starr Duskk

ASKER
okay, I googled that:

At the command prompt type “taskkill /IM w3wp.exe /F”. Press Enter.

How do I start it up again though?
Starr Duskk

ASKER
oh, I was reading this about it.
https://nathondalton.wordpress.com/2013/04/15/quick-tip-how-to-kill-net-worker-process/

It says it is a task, so I was thinking, I should just be able to kill the IIS Worker Process in the task manager?

Looks like there are 3 running. But I don't know enough about it to know I'm not going to break something.

What is the IIS Worker Process?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
SOLUTION
zc2

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Starr Duskk

ASKER
Thanks! I don't know if that didn't kill the process or if I have something else going on. It's still creating the bogus records as though it is still running. So back to the drawing board.
zc2

When you stop a WP, it will be started again if the IIS still receives requests to the app.
Starr Duskk

ASKER
I found this method is being called elsewhere in the code, not in the webservice, so that is what is triggering the failed records also.

I'll have to publish the fix tonight and hopefully we'll be all good.

Thanks!
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
zc2

Was glad to help!