Link to home
Start Free TrialLog in
Avatar of heyday2004
heyday2004

asked on

"Access is denied" when I want to rename an ASP.NET website app deployed in another server.

I have a ASP.NET website application deployed in QA server, for example, the project files are at directory: ...wwwroot/TestApp1
And of course it's configured in IIS and everything is working fine.

Now I want to rename this directory name to wwwroo/TestApp2

It reported error: "cannot rename TestApp2: Access is denied.
Make sure the disk is not full or write-protected and that the file is not currently in use."

I've stopped IIS, but still got the same error message. When I tried to delete the directory, the same error happened too.

Maybe it's because the file is currently in use? How could I disable all the use of this website (I've closed all the known usae of this website) and could rename it in the server? Thanks.
Avatar of Anurag Agarwal
Anurag Agarwal
Flag of India image

Go to IIS manager & right click on your website folder then click properties, in that remove this website as web application  (Or right click on your website folder & click properties and then remove web sharing.). Now go to command prompt from RUN -> type "cmd". Then in command prompt write iisreset, then try.

Sometimes stopping iis from IIS manager doesn't work. Also close the VS .Net IDE before doing all this.

Anurag
Avatar of heyday2004
heyday2004

ASKER

Thanks. Is there anyway to rename the file directory without resetting IIS because there are other applications on this IIS. Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Anurag Agarwal
Anurag Agarwal
Flag of India image

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