Solved

Need to change folder name in wwwroot

Posted on 2006-11-30
5
1,335 Views
Last Modified: 2008-02-01
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.
0
Comment
Question by:monacoassociates
5 Comments
 
LVL 7

Expert Comment

by:Mohamed Zedan
ID: 18049503
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 :)
0
 
LVL 5

Accepted Solution

by:
DEEPESH earned 500 total points
ID: 18051656
This is taking place because of IIS, try stopping IIS and then rename directory it will work for u.
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.
0
 
LVL 11

Expert Comment

by:coopzz
ID: 18065090
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.
0
 

Author Comment

by:monacoassociates
ID: 18072300
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.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question