Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 534859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:39:23+00:00 2026-05-13T09:39:23+00:00

When using Visual Studio 2008 or 2010, every time you attach to IIS w3wp.exe

  • 0

When using Visual Studio 2008 or 2010, every time you attach to IIS w3wp.exe you get the Attach Security Warning:

Attach Security Warning

How do you turn this of?

It would be cool to know also, how to keep it attached for longer, as this seems to time out after a while.

Also, I’ve tried the Microsoft Docs page Security Warning: Attaching to a process owned by an untrusted user can be dangerous, but it didn’t work

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:39:23+00:00Added an answer on May 13, 2026 at 9:39 am

    Also found in the article mentioned by Tzury, but to sum up the answers in this thread:

    Make sure Visual Studio is not running when changing the registry key or it will be overwritten on exit with the old value

    Visual Studio 2022: Follow these instructions, then reboot.
    Visual Studio 2019: Follow these instructions, then reboot.

    For older versions of Visual Studio:

    Change (or create) the following registry key to 1:

    Visual Studio 2008 HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Debugger\DisableAttachSecurityWarning

    Visual Studio 2010 HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Debugger\DisableAttachSecurityWarning

    Visual Studio 2012
    HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\Debugger\DisableAttachSecurityWarning

    Visual Studio 2013
    HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\Debugger\DisableAttachSecurityWarning

    Visual Studio 2015
    HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\Debugger\DisableAttachSecurityWarning

    For VS2015, you might need to create the Registry Key referenced above.

    1. Make sure Visual Studio is not running, and open the Registry Editor.
    2. Navigate to
      HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\Debugger, right-click and create a new DWORD:
    • Name: DisableAttachSecurityWarning
    • Value: 1.

    Update: If you don’t want to open up regedit, save this gist as a *.reg file and run it (imports the keys for all VS versions lower than VS2017).

    Visual Studio 2017

    The configuration is saved in a private registry location, see this answer: https://stackoverflow.com/a/41122603/67910

    For VS 2017+, save this gist as a *.ps1 file and run it as admin, or copy and paste the following code in a ps1 file:

    #IMPORTANT: Must be run as admin
    
    New-PSDrive HKU Registry HKEY_USERS
    
    dir $env:LOCALAPPDATA\Microsoft\VisualStudio\*.* | % {
        #https://stackoverflow.com/a/41122603
    
        $filePath = "$_\privateregistry.bin"
        if (Test-Path $filePath) {
            reg load 'HKU\VSPrivateRegistry\' $filePath
    
            $BasePath='HKU:\VSPrivateRegistry\Software\Microsoft\VisualStudio'
    
            if (Test-Path $BasePath) {
                $keysResult=dir $BasePath
                $keysResult | ? {$_.Name -match '\\\d+\.\d+_[^_]+$'} | % {
                    $keyName = $_.Name -replace 'HKEY_USERS','HKU:'
                    Write-Host -ForegroundColor Green "ADDING key to reg path $keyName in file $filePath"
                    New-ItemProperty -Path $keyName\Debugger -Name DisableAttachSecurityWarning -Value 1
                }
                $keysResult.Handle.Close()    
            }
            [gc]::collect()
    
            reg unload 'HKU\VSPrivateRegistry'   
        }
    }
    Remove-PSDrive HKU
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 342k
  • Answers 342k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer These are linker errors - they mean you haven't linked… May 14, 2026 at 5:12 am
  • Editorial Team
    Editorial Team added an answer By default, JMeter only flags typical HTTP error response codes,… May 14, 2026 at 5:12 am
  • Editorial Team
    Editorial Team added an answer I suppose you could always use Enumerable.Range as a compact… May 14, 2026 at 5:12 am

Related Questions

Introduction I've always been searching for a way to make Visual Studio draw a
I want to install Visual Studio 2010 Beta 2 and I see several versions
I run the Visual Studio 2008 profiler on a RelDebug build of my app.
The basic problem is that upon trying to uninstall the default SQL 2005 express
I tried to flag a collection property on a class as Obsolete to find

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.