If you are fed up with continually having to press “Attach” to attach to the IIS w3wp.exe to enable debugging in Visual Studio for IIS as seen in this screenshot:
Then never fear, this is a way around it.
All you need to do is adjust the registry setting (via regedit.exe) as Visual Studio wasn’t kind enough to supply as a checkbox for us on the dialog:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Debugger | DisableAttachSecurityWarning = 1
The same setting can be found for Visual Studio 2005 under:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Debugger | DisableAttachSecurityWarning = 1
*** Make sure you make this change after you have closed Visual Studio, or it may not save properly! ***
Hope that has helped ya.
PS. I’ve been swamped will full time work lately, but I have a bunch of drafts I want to inevitably publish on this blog, so stay tuned.

3 Comments
Nice one! That was really annoying me.
Kind of stating the obvious, but I have tested it and it works on VS 2010 too:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Debugger | DisableAttachSecurityWarning = 1
Never knew this warning could be disabled. After a few years of web development with asp.net, that warning window really gets annoying.
thanks
One Trackback/Pingback
[...] 20th, 2010Mañé http://goneale.com/2010/01/20/disable-turn-off-vs-attach-security-warning-in-visual-studio-2008-2005…. IIS, Visual Studio This entry was posted on May 20th, 2010 at 2:27 PM and is filed under [...]
Post a Comment