23rd August 2007

Debug Difficulties with ASP.net on Longhorn Server

posted in Technology |

I’m working on a project where I need to debug an ASP.net application that is running on a Longhorn Server that is a domain controller. Whenever I try to attach a debugger to the target process from my user account (which is a member of the administrators groups) it gives me an access denied message.

What makes this especially frustrating is that I had this exact same problem about a week ago, and I was stupid and forgot to blog about how I solved it last time. My memory is quite poor and this is one of the major reasons why I write these blog entries. Plus I probably receive more “thank you” email about some previous posts where I blogged about some solutions to these sort of things, so hopefully it can be useful for a wider audience.

I finally got it working but the frustrating thing is that I’m not sure which step did the trick. I added my user account to as many groups as I could by opening the Administrator account and going to each group it belongs to. It also took me a bit to remember to turn off User Account Control- I’m sure that could have been part of the problem. You also need to remember to reboot the machine since many of these settings don’t take effect without a reboot.

Leave a Reply