Skip to content

Disable/turn off ‘Attach Security Warning’ in Visual Studio 2008/2005

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

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.

VN:F [1.9.10_1130]
Rating: 4.4/5 (12 votes cast)
VN:F [1.9.10_1130]
Rating: +5 (from 9 votes)
Disable/turn off 'Attach Security Warning' in Visual Studio 2008/2005, 4.4 out of 5 based on 12 ratings
Bookmark and Share
kick it on DotNetKicks.com
Shout it

NOW, FOR A WORD FROM OUR SPONSORS

3 Comments

  1. Dewang

    Nice one! That was really annoying me.

    VA:F [1.9.10_1130]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.10_1130]
    Rating: 0 (from 0 votes)
    Posted on 11-Jun-10 at 7:45 pm | Permalink
  2. 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

    VA:F [1.9.10_1130]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.10_1130]
    Rating: 0 (from 0 votes)
    Posted on 17-Jun-10 at 9:17 pm | Permalink
  3. Never knew this warning could be disabled. After a few years of web development with asp.net, that warning window really gets annoying.
    thanks

    VA:F [1.9.10_1130]
    Rating: 5.0/5 (1 vote cast)
    VA:F [1.9.10_1130]
    Rating: 0 (from 2 votes)
    Posted on 19-Aug-10 at 8:08 pm | Permalink

One Trackback/Pingback

  1. [...] 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

Your email is never published nor shared. Required fields are marked *
*
*

My name is Graham O'Neale and I'm a software architect from Gold Coast, Australia. I am an overtime thinker, full time coder and awake part time in the real world. I have a keen interest in software development, particularly in the realm of programming (C#, ASP.NET, ASP.NET MVC, LINQ (2 SQL), Entity Framework, Silverlight, Blend, WCF, WPF) and a keen interest in the cutting edge and innovation. I have a new found love for design patterns, ALT.NET practices and well crafted software architecture. The purpose of this blog is to express any thoughts, findings, tips and gripes along my travels in the wonderful world of coding and technology...