Unsolved

This post is more than 5 years old

3 Posts

8613

March 4th, 2007 08:00

File and Folder Permissions - Read Only C:\ Drive

Hi
 
I have just brought a new Dell Precision with Vista Business. And I have just installed IIS7 on it for my ASP.Net development.
 
Usually quite a simple task, I have hit a very strange yet frustrating issue... I can't seem to copy and paste files from my remote web server or save items using my applications such as Visual Studio into my local wwwroot directory.
 
Actually it won't let me save files to anywhere in the C:\ drive unless in my account related locations such as My Documents.
 
I am logged in as the administrator for my laptop and have checked permissions are set to FULL CONTROL. The messages I recieve are 1 of 2:
 
FTP from remote server:
error copying file or folder
Access denied
Saving using application:
Cannot save C:\inetpub\wwwroot\myfolder\myfile.aspx. The folder is marked as Read Only.
I have tried to change the read only attribute for all files and folders (using right-click - properties) within wwwroot but it seems to ignore my request.
 
Your help would be much appreciated as this laptop is pretty much useless to me until I have sorted this.... probably something simple that I am missing.
 
Warm Regards
 
Rit

March 4th, 2007 12:00

I take it you're running an FTP session in a command prompt window.
 
You need to run the command prompt elevated.
 
Click Start, type cmd and in the list right-click on cmd and click Run as administrator
 
Now the title bar of the window should say Administrator c:\ ......
 
Let us know your results.

3 Posts

March 4th, 2007 13:00

penguinspenguins , I think we are making progress thanks to you!
 
Have I totally missed something here?... My account has Administrative rights already but the only way I can copy and save stuff outside of my account i.e. wwwroot or c:\ is if I right-click on an application and then select 'Run as administrator'.. though I am one already???
 
Thanks for your time on this one.
 
Rit

3 Posts

March 4th, 2007 14:00

Mmmm. This sounds like my issue... http://support.microsoft.com/kb/931277/en-us THough I have just tried to format my C drive as per MS's instructions but my paltop won't let me due to the following message:
 
Your cannot format this volume
It contains the version of windows that you are using.
Formatting this volume could cause your computer to stop working
 
Give me mercy!
 
Rit

March 4th, 2007 18:00

While you are an administrator on that computer, not all programs are automatically given full and unrestricted access to everything. When they request that access, that's when you get the UAC prompt. (the thing that makes you confirm everything). That's part of Vista's new security stuff (see http://images.apple.com/movies/us/apple/getamac/apple-getamac-security_480x376.mov for some comedic relief).
 
Some program don't automatically request this access when needed, so you need to explicitly tell Windows to run it that way.
 
If you right-click on a shortcut and go to Properties then click on the Compatibility tab, you can place a checkbox next to Run this program as an administrator to save you the hassle every time.
 
Hope this helps

March 4th, 2007 18:00

Oh, and as for the formatting, you're basically trying to erase a volume while you're in the middle of using it, kinda like trying to change the tires while you're going down the highway. That's why windows won't let you :smileyhappy:

Top