“Unable to attach to the process. Access is denied.” When Attaching Debugger to IIS Process in Windows 7

Ever since we upgraded to Windows 7 some people have experienced problems when trying to attach Visual Studios debugger to IIS. Up until this weekend it hadn’t happened to me, but when I started my local SQL server to work on a locally hosted project during the weekend I got this error message:

Unable to attach to the process. Access is denied.

Turns out Visual Studio doesn’t automatically figure out that I want to debug managed of code when the process runs several types of code. Telling it what type of code to debug, managed, fixes the problem.

In the Attach to Process dialog, under the “Attach to” heading click select.

select

Click the “Debug these code types” radio button and select “Managed”. Hit OK and the problem is solved.

managed

PS. For updates about new posts, sites I find useful and the occasional rant you can follow me on Twitter. You are also most welcome to subscribe to the RSS-feed.

Comments

  1. Daniel Berg's avatar

    Daniel Berg 8 months ago

    Thanks! :)

  2. Sidd's avatar

    Sidd 4 months ago

    Thanks, that worked!

Add a comment

Allowed tags: <b>, <em>, <quote cite="">, <code>, <c-sharp-code>, <css-code>, <sql-code>, <xml-code>, <javascript-code>. If you want to display code examples, please remember to write &lt; for < and &gt; for >.

Follow me on Twitter

  1. Bookmarked: Google Scribe http://bit.ly/9iDp8s 2 days ago
  2. Blogged: The future of EPiMVC http://bit.ly/ck6EPg #episerver 2 days ago
  3. At Skånegläntan, as always #parentalleave 2 days ago
follow me

Latest comments

  1. Svante wrote "Yes, I noticed that it was a singleton, and I guess the real..." on Something to beware of when using EPiAbstractions and an IoC container
  2. Joel Abrahamsson wrote "Well, first of all you wont get any arguments from me regard..." on Something to beware of when using EPiAbstractions and an IoC container
  3. Svante wrote "Hmm... Since the issue really is with the public instance co..." on Something to beware of when using EPiAbstractions and an IoC container

About this site

This blog is built with EPiServer Community, EPiServer CMS, ASP.NET MVC and a bunch of other great products. The source code is available for download at the projects page, where you also can read more about this site and my other projects.

read more