473,320 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Remote debugging between different domaine

Hi,

I try to debug a WCF hosted in a windows services on a serveur that is on an
other domaine then my developpement machine. I tried many things without
succes. Here is what I tried:

First I installed on the server I want to debug, the remote debugger tools
from the VS 2005 CD. I just install the windows application. I tried from
there to debug, without succes. I could connect to the remote machine only
when the msvsmon.exe is in the mode 'No authentication (native only)'. But
the problem with that mode is only the native code is available to debug. In
my case, I want to debug .net code. When I tried to put the mode to "Windows
authentication", I receive the following message "Unable to connect to 'name
of machine'. The microsoft Visual Studio Remote Debugging Monitor is either
not running ont the remote machine or is running in Windows authentication
mode." I confirme that the remote debugging monitor is running on the remote
machine. What is left is the mode, and it's a fact that it is in 'Windows
authentication' mode. But it exactely what I need if I want to debug .net
code.

I found an article that show an option to that situation. It recommend to
create a local user on both machine, with administrators rights and with
the same name/password. And to log on the remote machine with that new user
et start de windows debugger app with the 'run as administrator'. Do the
same on the client machine, and start VS2005 with 'run as administrator'. No
succes. Still have the error when I tried to attache to the process. In the
'attach to process' windows, I choose the option 'Remote' and put the name
of the computer like wdefacevo1. I could ping that computer, and like I said
before, if I change the mode on the remote computer, I could see all the
process of the remote machine.

If any one has an idea to solve that problem, it will be very appreciate.

Best Regards
Yves
Oct 3 '08 #1
3 6584
Hi Yves ,

Remote debugging involves two-way communication between the Visual Studio
2005 debugger and the Remote Debugging Monitor (msvsmon.exe). Since these
two machines reside in different domains, there are no trust relationship
between the DC of these two domains. So the Windows security authentication
can not establish in your scenairo.

Yes, one way to resolve this problem is creating two local Administrator
accounts with the same username/password on both machines. The link below
is the official document for cross-domain debugging:
"Remote Debugging Across Domains"
http://msdn.microsoft.com/en-us/library/9y5b4b4f.aspx

After doing this, do you run both the VS debugger and msvsmon.exe under the
this same local Admin account? If so, what error do you get while
performing remote debugging? Is it still "Unable to connect to 'name
of machine'" error dialog? Also, in which step do you get the error?

Finally, what OS are your client&server machines?

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=========================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 6 '08 #2
Hi Jeffrey,

Thanks to take time for this issue. To answer your questions: Yes I run
both, the VS debugger and msvsmon.exe under the local admin account. The
error I received, is from VS debugger when I tried to connect from the
attach to process windows. I received this error:

"Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor
named 'the server'. The microsoft Visual Studio Remote Debugging Monitor on
the remote computer cannot connect to the local computer. A firewall may be
preventing communication via DCOM to the local computer."

One observation at this point. When I tried to connect to the remote server
from the attach to process windows, I used the following information: In the
"transport" info, I choose "Default", in the "Qualifier" section in put info
like gagnonyv@wdeuacev01. gagnonyv is the local account that was created on
both computer, with the same password. When I press the enter key, if a take
a look on the remote server, I see an entry in the remote debugging monitor
saying "wdeuacev01\gagnonyv connected. That info told me that the connection
worked, but like the message say, the problem seam to be that the remote
computer is unable to do his job to return info to VS.

Both machine has OS windows serveur 2003.
I hope the preceding info is clear to explain the situation.

Best regard

Yves
""Jeffrey Tan[MSFT]"" <je***@online.microsoft.comwrote in message
news:Sx**************@TK2MSFTNGHUB02.phx.gbl...
Hi Yves ,

Remote debugging involves two-way communication between the Visual Studio
2005 debugger and the Remote Debugging Monitor (msvsmon.exe). Since these
two machines reside in different domains, there are no trust relationship
between the DC of these two domains. So the Windows security
authentication
can not establish in your scenairo.

Yes, one way to resolve this problem is creating two local Administrator
accounts with the same username/password on both machines. The link below
is the official document for cross-domain debugging:
"Remote Debugging Across Domains"
http://msdn.microsoft.com/en-us/library/9y5b4b4f.aspx

After doing this, do you run both the VS debugger and msvsmon.exe under
the
this same local Admin account? If so, what error do you get while
performing remote debugging? Is it still "Unable to connect to 'name
of machine'" error dialog? Also, in which step do you get the error?

Finally, what OS are your client&server machines?

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=========================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no
rights.

Oct 6 '08 #3
Hi Yves,

Thank you for the detailed information, it is helpful for analysis.

The error message is documented here:
"Unable to Connect to the Microsoft Visual Studio Remote Debugging Monitor"
http://msdn.microsoft.com/en-us/library/0773txhx.aspx

As I examined, the most possible reason is "3. Verify that the remote
machine is accessible on the network."

Your further information should have confirmed that the VS2005 debugger
client has successfully connected to the remote debugging monitor. I agree
that the problem is that the remote machine can not send back the
connection reply back. As we know, the remote debugging requires mutual
ways authentication, see Gregg's blog below:
"Remote Debugging without domain accounts "
http://blogs.msdn.com/greggm/archive...04/237519.aspx

Since the Windows2003 has almost the same setting as Windows XP SP2, I
assume this is a firewall issue of your VS2005 debugger client. You may
have to open the firewall port on the client machine so that it can accept
the reply.

You may follow the instructions in the two articles below to open the
firewall ports; I assume this will resolve the problem:
"How to: Manually Configure the Windows XP Firewall for Remote Debugging"
http://msdn.microsoft.com/en-us/library/bb385683.aspx
"How to turn on remote debugging for Visual Studio 2005 in Windows XP with
Service Pack 2"
http://support.microsoft.com/?scid=k...8099&x=15&y=10

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=========================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 7 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nick Bunton | last post by:
I have setup remote debugging on an NT4 workstation for testing. I then build from the debug config on my machine and copy all the files from the /bin/debug folder including the .PDB files. I then...
0
by: Lorenzo | last post by:
Hi, when I try to use remote debugging over a single visual studio .net web project from a single client it function correctly. But when I try to use multiple instance of remote debugging over...
2
by: Jan Bares | last post by:
Hi, it is nice that the remote debugging settings is separated from local debugging (I mean Remote command). But, unfortunately still one option is shared - the Working directory. Why? I...
0
by: Michael Huhn | last post by:
I have a win2k-Server with IIS with several web applications. More than 5 developers use this server to develop different web applications with VS.NET 2003. Unforunately remote debugging does not...
7
by: | last post by:
I'm writing an ASP.NET app, using Visual Studio 2003. VS is running locally on my laptop, but the web app is running on a remote server. My laptop is not in the domain. I do have a domain account....
1
by: CK | last post by:
Hello All, I have been trying to setup remote debugging for web part development by running through the steps in the following documentation: Debugging Web Parts:...
2
by: Diez B. Roggisch | last post by:
Hi, I'm fiddling around with pydb. Installation and usage are fine. What I especially like is the fact that you can attach a signal such that you drop into debugging mode on demand. But this...
3
by: Rick | last post by:
We have a web site that was built as an ASP.Net Web Site, I am unable to remote debug, when build ing the web site there is not a dll or PDB file generated. I can debug on my local machine but...
7
by: luker | last post by:
Hello Experts, I am writing an application for a device running windows xp embedded. I want to code on my developer pc and deploy the running executable to the embedded device. - The two boxes...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.