mouthpiec
mouthpiec

Reputation: 4033

w3wp.exe keeping files locked after processing in webservice

I have a webservice and I noted that some dlls in the wwwroot folder are kept logged after the webservice is executed.

After restart of pc, the problem is solved.

Can i have something in my code that releases the dlls?

Upvotes: 3

Views: 10011

Answers (1)

Mikael Svenson
Mikael Svenson

Reputation: 39695

Try to either recycle the AppPool which your webservices runs under, or use iisreset.

iisreset /stop will stop IIS and release the dll's. iisreset /start will start IIS back up again.

If you recycle the Application Pool, then the lock of dll's will be released until someone hits your webservice again, and aquires a new lock.

Upvotes: 12

Related Questions