473,722 Members | 2,240 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6626
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****@microsof t.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@wdeuac ev01. 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\gag nonyv 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.m icrosoft.comwro te in message
news:Sx******** ******@TK2MSFTN GHUB02.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****@microsof t.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****@microsof t.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
5905
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 connect to the remote machine with VNC and start the application, once running from VS .NET on my development machine I connect to that process and the running app is shown in the IDE, but I cannot get the application to stop on any breakpoints...
0
1218
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 the same web server (from different PC's and/or over different project) the aspnet services hungs and I must restart server to have all the functionality again.
2
1140
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 certainly have different working directory for local and remote debugging. I have VC 7.1. Jan
0
1112
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 work properly. It works sometimes but most of the time it doesn't. Is it true that developer B cannot work with the server when developer A is debugging a web app? So is A really debugging the whole server and not only the application or even...
7
2594
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. I had no issue creating the web app on the remote server after authenticating with the domain account, but I can't debug. It complains that I don't have rights. My domain account is in the administrators group on the remote machine. I also have...
1
2026
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: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_SP2003_ta/html/sharepoint_debugwebparts.asp Debug Settings and Preparation: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/html/_core_Debugging_Preparation.asp unfortunately, I have...
2
2412
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 is of limited use to me in situations where a server is written in python. According to the source, pydb's debugger class Gdb extends cmd.Cmd. It passes stdin/stdout-arguments that should be usable to replace the
3
2765
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 unable to attach to the process when running from the web server. Can someone tell me how to remote debug an ASP.Net Website that does not genate a dll or PDB file? Thanks in advance! Rick
7
4163
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 are linked directly by a network cable. - Both are in the same subnetwork and are able to ping each other. - Each box is sharing a directory. - Each box has a remotely shared directory opened in an explorer window. - The development pc is in...
0
8739
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9238
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9088
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6681
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5995
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4502
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2602
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.