debug a deployed webapplication

E

eusebiu

hello...
I have a asp.net webapplication that is deployed on a server(windows
2k3) and I want to debug it. I have copied the msvsmon.exe and it`s
dependencies to the server and started it on the remote server.
If I use No authentication I am able to attach(Transport :
Remote(Native only with no authentication - on my local machine) to a
process from the remote computer but I I set windows authentication
(Transport : Default), I get an error dialog that says : "Unable to
connect to the Microsoft Visual Studio Debugging Monitor named
"servername". The Microsoft Vistual Studio Remote Debugging
Monitor(MSVSMON.exe) does not appear to be running on the remote
computer."

So... why is that? MSVSMON.exe is started on the remote computer...

The server "servername" is accesible in my network because I am able
to make a remote connection with "Remote Desktop cconeection"
 
D

David Ching

eusebiu said:
hello...
I have a asp.net webapplication that is deployed on a server(windows
2k3) and I want to debug it. I have copied the msvsmon.exe and it`s
dependencies to the server and started it on the remote server.
If I use No authentication I am able to attach(Transport :
Remote(Native only with no authentication - on my local machine) to a
process from the remote computer but I I set windows authentication
(Transport : Default), I get an error dialog that says : "Unable to
connect to the Microsoft Visual Studio Debugging Monitor named
"servername". The Microsoft Vistual Studio Remote Debugging
Monitor(MSVSMON.exe) does not appear to be running on the remote
computer."

So... why is that? MSVSMON.exe is started on the remote computer...

The server "servername" is accesible in my network because I am able
to make a remote connection with "Remote Desktop cconeection"

When it works and you select "Native only..." are you debugging a managed
application (e.g. ASP.NET)? Because then you should not have selected
"Native only"!

FWIW, I always remote debug with the least security, since getting it to
work with the security enabled is frustrating, time consuming, and I have
never gotten it to work! :-O

However, check out http://msdn2.microsoft.com/en-us/library/y7f5zaaa.aspx
for a wealth of good info on remote debugging. The problem is there are so
many links that you may not find the relevant one! I stumbed on
http://msdn2.microsoft.com/en-us/library/ms164722.aspx (How to: Set Up
Windows Authentication Mode) which may do the trick for you.

Cheers,
David (MVP - Visual C++)
 
E

eusebiu

Thanks David... I want to Debug a ASP.NET WebApplication & WebService.

And what do you meen by "I always remote debug with the least
security"?
My user is in a domain and it has Administrative rights on both
machines, local and remote. When I start RDM on remote machine, I log
on with the user that I'm logged in on my local machine.

Thanks...
 
D

David Ching

eusebiu said:
Thanks David... I want to Debug a ASP.NET WebApplication & WebService.

And what do you meen by "I always remote debug with the least
security"?

I mean that the scenario that worked for you (with security disabled) is how
I normally remote debug. I don't try to get the security to work.

My user is in a domain and it has Administrative rights on both
machines, local and remote. When I start RDM on remote machine, I log
on with the user that I'm logged in on my local machine.

Hmm, the article on using Windows Authentication said that should be all you
have to do... make sure you have an Admin account on the remote machine.
I'm not sure what else to try, sorry.

Good luck,
David
 
E

eusebiu

Hello...
I've was able to attach to aspnet_wp.exe on the remote machine like
this :
Remote Debugging Monitor
MSVSMON.exe : C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
\Remote Debugger\x86
must be started on remote machine.

1. Administrative tools->Local security Policy-Local Policies-
Security options
->Network access : Sharing and security model fol local accounts ->
Proprietes: Clients....(not guests) (both remote and local machine, if
the remote machine isn't a Windows 2K)
2. in msvsmon.exe, Tools->Options->Permissions->Add(the user name);
3. Start->Run->dcomcnfg->Component Services->Computers->My computer-
Proprietes->
COM Security->Access Permisions->Edit limits-> Add the user to access
permotions and let him have remote access
4. the local user must have administrative rights on the the remote
machine as well;
(log in on remote machine with the same user that you are logged in on
the local machine)


Links: http://msdn2.microsoft.com/en-us/library/y7f5zaaa.aspx


Sometimes you should enable "Remote Access for Anonymous Logon"
MSDN : To enable Remote Access for Anonymous Logon
From the Windows command prompt, run dcomcnfg:

C:\WINDOWS\System32\dcomcnfg

In the Component Services window, expand the Component Services/
Computers node.
Under Component Services/Computers, right-click on My Computer and
choose Properties from the shortcut menu.
In the My Computer Properties window, click the COM Security tab.
Under Access Permissions, click the Edit Limits button.
Select Anonymous Logon from the top list.
Select the Remote Access checkbox from the bottom list.
Click OK.
Click OK.


I hope this helps someone...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top