I am trying to change the name of the folder containing my web project. I've tried to use suggestions from other users' questions, however no matter where or how I try to change the folder name (in wwwroot, in Visual Studio project folder, or in IIS) I get an error message, for example "Cannot rename <folder name>: Access is denied. Make sure the disk is not full or write-protected and that the file is not currently in use" None of these things are true. In other cases the error message suggests sharing violations, however the folders are not shared.
Does anyone have suggestions? Thanks.
Now the problem is we have to find out the way to stiop iis service progratimatically then rename the directory and start iis
service.
I will look out for solution to start and stop service programatically.
Mean while you can kill InetInfo.Exe and Rerun it after renaming directory.