Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2007

Tip: Looking for answers? Try searching our database.

debug a deployed webapplication

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eusebiu - 22 Jun 2007 11:55 GMT
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"
David Ching - 23 Jun 2007 06:35 GMT
> hello...
> I have a asp.net webapplication that is deployed on a server(windows
[quoted text clipped - 13 lines]
> 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++)
eusebiu - 24 Jun 2007 08:45 GMT
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...
David Ching - 24 Jun 2007 20:09 GMT
> 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
eusebiu - 25 Jun 2007 09:48 GMT
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...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.