Reputation: 759
I'm working on a function that takes longer than 2~3 hours to finish, but i found some errors in the code and i want to stop the execution of the one that is already running.
Anyway to stop this?
I already updated the bin folder with the new version publish, but the old one keeps executing. (i know cause it sends me a keepalive email every 20mins).
Obs.: i tried to kill the dllhost.exe process but my user don't have permission (this is in production).
Upvotes: 0
Views: 462
Reputation: 12748
Try restarting the application in IIS or just the application pool. If that doesn't work, you might be stuck at restarting IIS. You might want to think of putting a timeout. If it's connecting to a database, you can try to kill the database session, this will cause a .net error.
Upvotes: 0
Reputation: 124
You can restart IIS which should free up the dll. Of course, that will restart all the other sites hosted on that server. Not sure if there is another way to free up a dll.
Upvotes: 1