views:

303

answers:

5

Hi every one!

I am programming via Visual Studio 2008. I change my html page and save it using Ctrl + S and then hit Ctrl+F5 on the browser to test it. My problem is when I save my file in VS after refreshing the browser, "Save File As" dialog appears and when I want to save it with that file name, an error dialog appears which says file exists!!!. I am doing this every time in my company which uses Windows 2003 and Windows XP, but there I have no problem. At home I am using Windows 7, and this error is killing me.

Please help me.

+1  A: 

I have the exact same problem.

In addition, I can't open the original file. I have to close the solution first... which deletes the original file!

So, be very carful when this problem arise, save the file under a new name. Close the solution (which will delete the original file), then rename the saved file under it's original name.

Have you found a solution to this problem? It's not only annoying, it's dangerous!

jflessard
A: 

I'm unable to reproduce on Vista.

Do you get the same error with when browsing with IE? Right-click on your HTML file in Solution Explorer and select Open With... IE.

Firefox may be locking the file for some reason.

What Firefox Add-Ons are you running? Perhaps one of those have a strange lock on the file?

Gordon Bell
I think FF locks the file and VS cannot save it and thinks the file does not exist. I should have a delay between refreshing the page and saving the file in VS. but I don't know why?
Hossein Margani
+1  A: 

hi, same problem here

Windows 7 Professional Visual Studio 2008 TS SP1

I've to save the file with another name and then (the original one disappears as it was deleted) rename it back. it's a pain in...

luigi
+1  A: 

I had the same problem My C# projects were all under XPsp3 I installed Win7, then Vis Studio 8 SP1 and the rest of my development tools. Opened up my C# projects and got the Save As problem. , try this, it worked for me.

Make sure you are running Visual Studio as an Adminstrator. To do this, create a Desktop Short cut for Visual Studio 2008. Right click on it, and select Properties. Then select the Compatibility tab. At the bottom under Priviledge Level, make sure Run the program as an adminstrator is checked. Select the OK button. Start Vis Studio again

Also, try this

1) Open the Visual Studio command prompt 2) Then run the following : devenv /ResetSettings.

Roy
A: 

I got similar problem after sending file over Skype. I had to restart Skype to release file.

Odugen