Link to home
Start Free TrialLog in
Avatar of monacoassociates
monacoassociates

asked on

Need to change folder name in wwwroot

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.
Avatar of Mohamed Zedan
Mohamed Zedan
Flag of Canada image

try looking in the task manager for this process "aspnet_wp.exe"
And end that process
then try to rename the folder ... hope this helps :)
ASKER CERTIFIED SOLUTION
Avatar of DEEPESH
DEEPESH

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Dowload Process Explorer from www.sysinternals.com  "procexp.exe"

and do a search on the folder name (It should show up what is blocking the rename ie: using the folder for something) kill the process and search again.
It could be anything from aspnet_wp.exe as said above, notepad, virii or even antiviris.

But even rebooting can generally fixed this, if you dont open anything before hand.
Avatar of monacoassociates
monacoassociates

ASKER

Stopping the website in IIS did the trick.  We don't have much going on on this website, so it was OK to bring the whole thing down for a few minutes.  Thanks.

Just for the record, I changed the project name after the entire project was finished.  That was a very bad idea which caused a lot of name mismatches.  Fortunately, it was a very small project so I was able to chase down and correct all of the problems, but it is definitely important to get the names established before creating the web pages.