home / software / tips and tricks / The process cannot access the file because it is being used by another process FROM IIS, Why?

The process cannot access the file because it is being used by another process FROM IIS, Why?

Updated:  11/01/2013 12:11 PM
Author:  Shiju Mathews

Status:    Resolved.


In Internet iformation Server(IIS) when a file or dll can be locked due to, one of the previously ran process holds the resource that is not yet completed the process this error can be thrown.

The best way to release the resource in IIS is to

1. Stop the IIS Run the command in command prompt: IISRESET /Stop

2 Delete the temp files : The file is located depending on the Operating system and dot net frame work used. Run the command in command prompt:

    DEL "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\*.*" /Q /F

3. restart the IIS (Run the command in command prompt): IISRESET /start

The best way to accomplish this is by creating a batch file with extension “.bat” and place in desktop. Now you can run it by double clicking on the icon.

Sample code ( ):
Tags: The process cannot access the file because it is being used by another process FROM IIS Why?
Updated on: December 2024