20
May

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:

Visual Studio Debugging Attach Security Warning for IIS

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! ***

via: http://goneale.com/2010/01/20/disable-turn-off-vs-attach-security-warning-in-visual-studio-2008-2005-iis/.

,

Add reply