Up until two days ago, whenever I tried to edit a read-only file a
dialog box would pop up and warn me. The dialog would allow me to
overwrite or edit read only or just cancel my attempt. The dialog also
had an option to disable the dialog box from ever showing up again. I
happened to click that and now I don't get the dialoag box. But now I
want it back.
The current behavior I have is that when I try to edit a read-only
file, VS just "quietly" fails. The cursor may move to the beginning of
the line, but no editing is possible. My other option is to go to Tools
| Options | Documents | Allow editing of read-only files, warn when
attempt to save.
Under this option I can start editing a file, but get warned when I try
to save.
Neither of these options is satisfactory to me. I'd like to get the old
dialog box to pop up again and warn me that I'm editing a read-only
file and then let me decide what to do.
I'm using VS .NET 2003. I'm hoping someone knows what registry setting
I need to change to get this back. I don't see an option to restore
default settings (except for Window Layout which doesn't apply to this
problem)
Thanks,
Michael
"Gary Chang[MSFT]" - 08 Mar 2006 07:32 GMT
Hi Michael,
Based on my understanding, you disable the "Save of Read-Only File" dialog
several days before. But now, you want to call it back. Please let me know
if I have misunderstood anything.
However we haven't experienced such a problem, there is no such disabling
option in my VS2005 IDE "Save of Read-Only File" dialog. So I am unable to
perform tests on my side.
I suggest maybe you can do some tests on your side. Running the VS2003 IDE
with a different user account, you will have the default "Save of Read-Only
File" dialog. Using the Sysinternals' RegMon to monitor your registry
action when perform the test of disabling the "Save of Read-Only File"
dialog and then closing the IDE.
The Sysinternals' RegMon could be downloaded in the following URL:
http://www.sysinternals.com/Utilities/Regmon.html
Thanks for your understanding!
Best regards,
Gary Chang
Microsoft Community Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
======================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
billshewman - 08 Mar 2006 16:59 GMT
> Hi Michael,
>
[quoted text clipped - 3 lines]
> action when perform the test of disabling the "Save of Read-Only File"
> dialog and then closing the IDE.
Thank you for the suggestion. I did use the tool I found these entries:
7988 13.57367039 devenv.exe:2380 CreateKey HKCU\Software SUCCESS Access:
0x2000000
7989 13.57368660 devenv.exe:2380 CreateKey HKCU\Software\Microsoft SUCCESS Access: 0x2000000
7990 13.57370377 devenv.exe:2380 CloseKey HKCU\Software SUCCESS
7991 13.57372189 devenv.exe:2380 CreateKey HKCU\Software\Microsoft\VisualStudio SUCCESS Access: 0x2000000
7992 13.57373428 devenv.exe:2380 CloseKey HKCU\Software\Microsoft SUCCESS
7993 13.57375145 devenv.exe:2380 CreateKey HKCU\Software\Microsoft\VisualStudio\7.1 SUCCESS Access: 0x2000000
7994 13.57387638 devenv.exe:2380 CloseKey HKCU\Software\Microsoft\VisualStudio SUCCESS
7995 13.57428074 devenv.exe:2380 CreateKey HKCU\Software\Microsoft\VisualStudio\7.1\ToolsOptionsDefaults SUCCESS Access: 0x2000000
7996 13.57429409 devenv.exe:2380 CloseKey HKCU\Software\Microsoft\VisualStudio\7.1 SUCCESS
7997 13.57439327 devenv.exe:2380 CreateKey HKCU\Software\Microsoft\VisualStudio\7.1\ToolsOptionsDefaults\DontShowDialogAgain SUCCESS Access: 0xF003F
7998 13.57441711 devenv.exe:2380 CloseKey HKCU\Software\Microsoft\VisualStudio\7.1\ToolsOptionsDefaults SUCCESS
7999 13.57443619 devenv.exe:2380 QueryKey HKCU\Software\Microsoft\VisualStudio\7.1\ToolsOptionsDefaults\DontShowDialogAgain SUCCESS Subkeys = 0
8000 13.57447243 devenv.exe:2380 CreateKey HKCU\Software\Microsoft\VisualStudio\7.1\ToolsOptionsDefaults\DontShowDialogAgain SUCCESS Access: 0xF003F
8001 13.57470417 devenv.exe:2380 SetValue HKCU\Software\Microsoft\VisualStudio\7.1\ToolsOptionsDefaults\DontShowDialogAgain\Item1 SUCCESS "\SourceControl\UncontrolledInMemoryEditDialogSuppressed"
8002 13.57472992 devenv.exe:2380 CreateKey HKCU\Software\Microsoft\VisualStudio\7.1\SourceControl SUCCESS Access: 0xF003F
8003 13.57485104 devenv.exe:2380 SetValue HKCU\Software\Microsoft\VisualStudio\7.1\SourceControl\UncontrolledInMemoryEditDialogSuppressed SUCCESS 0x1
at first I just looked at the first few lines. I deleted the whole
DontShowDialogAgain folder. This didn't fix it. So I looked a little closer
and saw that the UncontrolledInMemoryEditDialogSupressed key was set to 1. I
changed this back to 0 and now my IDE is back to "normal".
Thanks,
Michael
"Gary Chang[MSFT]" - 09 Mar 2006 05:16 GMT
>So I looked a little closer and saw that the
>UncontrolledInMemoryEditDialogSupressed
>key was set to 1. I changed this back to 0
>and now my IDE is back to "normal".
That's wonderful, Michael!
Very thanks for sharing this useful resolution with our community members.
:-)
Have a nice day!
Best regards,
Gary Chang
Microsoft Community Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
======================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================