Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote Debugging on IIS - Access Denied Nightmare!

We have two Win2k3 servers here, one is a domain controller and the other our webserver.

I'm running an ASP.NET MVC web app setup as a website in IIS on the webserver.

I've copied across the x86 remote debugging tools to the webserver, logged in to an admin account and ran msvsmon. I added the user I'm logged into my workstation as to the permissions list.

Opened up the web app project in VS2008 and went to Attach to Process, here are my settings:

Transport: Default
Qualifier: OURDOMAIN\AdminUsername@OURWEBSERVER
Attach To: Managed Code

Selected: w3wp.exe

Upon clicking Attach, the windows flicker for a few seconds and then I get:

Unable to attach to the process. Access is denied.

I've tried right-clicking msvsmon and using Run As to run it under the same account as I'm logged into my machine, but still no difference.

However, if I change the Attach To field to Auto: Native Code, it attaches fine, but I can't debug any of my managed .NET code.

This has me baffled - any ideas?

Anthony

like image 317
littlecharva Avatar asked Oct 14 '22 13:10

littlecharva


2 Answers

Have you seen this article?

http://support.microsoft.com/default.aspx?scid=kb;en-us;833977&Product=vsnet

like image 113
Ty. Avatar answered Nov 03 '22 18:11

Ty.


It's not clear from your question, but remote debugging requires that the user you are logged into on the remote machine exist on your local machine as well. You basically have to create a local account on your dev machine (yes, that sounds backwards). I'm not sure it respects domain accounts.

like image 24
Paul Mrozowski Avatar answered Nov 03 '22 18:11

Paul Mrozowski