473,500 Members | 1,664 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

remote debugging xp embedded - how

6 New Member
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 a domain "ATWORK".
- The development pc contains two network interface cards. One is connected to the company network, the other one to the embedded device.

The embedded device runs Visual Studio Remote Debugging Monitor configured as
[v] Windows Authentication
[ ] No Authentication (native only)
und
[ ] Allow any user to debug

Visual Studio 2008 Pro 90-Day-Trial is configured with
Project Properties -> Build -> Output Path [Z:\path\bin\Debug]
and
Project Properties -> Debug -> [v] Use Remote Computer: MyUserName@EmbeddedDeviceName

On the embedded box, I created a user account (administrator) using the same name as the one on my developer pc.

F6 causes the project to build and deploy the executable to the desired directory on the embedded device.

F5 does the same.
Additionally, Remote Debugging Monitor logs "Date Time EmbeddedDeviceName\MyUserName connected."

Debugging fails showing the error message
"Fehler beim Ausführen des Projekts: Das Debuggen kann nicht gestartet werden. Visual Studio Remote Debugger auf dem Zielcomputer kann keine Verbindung mit diesem Computer herstellen. Fehler bei der Authentifizierung. Weitere Informationen finden Sie in der Hilfe."
since I am living in Germany. The english pendant should be something similar to
"Error executing project: Could not start debugging. Visual Studio Remote Debugger on the target machine cannot establish connection to this computer. Authentication Error. Consult help for further details."

Sadly, I didn't find the matching detail in Visual Studio's help.

How is remote debugging supposed to run?

Remote device can connect to developer pc's shares. But Remote Debugging Monitor can't connect to Visual Studio.

How can I solve this?


luker
Aug 11 '09 #1
7 4138
tlhintoq
3,525 Recognized Expert Specialist
It took me a while to get this same type of thing going between my host OS and VMware OSes running on the same PC.

A couple things to check:
1) the target PC should have the firewall off
2) the target PC and the host PC should be logging in with the identical user and password. This one actually tripped me up because I had *changed* the user on the target PC to match the host PC. That won't work! You have to have matching users that were *created* exactly the same.

This blog on using VMware may help as it is the same type thing
Aug 11 '09 #2
luker
6 New Member
Hello tlhintoq,

1) Yes, the target firewall is off.
For testing purposes, I disabled the host firewall as well, without any effect on my problem.
2) Yes, I created a new user account on the target PC. It is administrator and has the same name and password as on the developer PC.

Maybe the problem has to do with the developer PC in a domain and the target PC not. But I don't know how to get around that.
Aug 12 '09 #3
luker
6 New Member
You know: "If the error message changes, then you're right"

In Visual Studio's properties, I changed all paths from "Z:\..." to "\\192.168..." and the program indeed seems to debug.

Though, it doesn't run properly yet. I get an exception in Form1's constructor:
Expand|Select|Wrap|Line Numbers
  1. public Form1()
  2. {
  3.     InitializeComponent();
  4. }
InitializeComponent() throws a SecurityException. It looks exactly like debugging a project that's located on some network drive.

I tried signing with a strong name, but I have to use some assemblies without such a strong name and if I got it right, this combination doesn't work.


How can I grant the necessary security level to my project?
Aug 12 '09 #4
tlhintoq
3,525 Recognized Expert Specialist
I'd start by finding out which component is throwing the exception.
After all... InitializeComponent() is a method in your Form1.designer.cs for setting up your form's buttons, textboxes and other design elements. I'd be really surprised if one of them threw a securityException unless it is a more complex component that normal. Do you have a UserControl on there that is trying to do something on create like access a database or network folder, or the registry?
Aug 12 '09 #5
tlhintoq
3,525 Recognized Expert Specialist
In Visual Studio's properties, I changed all paths from "Z:\..." to "\\192.168..." and the program indeed seems to debug.
Path consistency is vital. All of my VS projects are on an external drive. I had to make sure all my computers and laptop see that drive as 'K:' so none of the references break. In VMware virtual computers I did a mapped drive back to the shared host external so the VM's saw it as a network drive on 'K'
Aug 12 '09 #6
luker
6 New Member
I got a tip to install .NET3.5SP1 on the target.
Even though I use .NET2.0, that works for the SecurityException.
Aug 14 '09 #7
tlhintoq
3,525 Recognized Expert Specialist
@luker
Very cool. Thanks for sharing that. One of those goofey things that one wouldn't think of right away.
Aug 14 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3555
by: Bihari Srinivasan | last post by:
I am using two PCs, say PC-1 and PC-2 in a networked environment (TCP/IP). Both of these run Windows 2000. PC-1 is a development platform and PC-2 is a remote debug platform. I have a very...
3
5886
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...
1
3050
by: Ken Allen | last post by:
I have encountered a problem with remote debugging under VS 2005 and ..Net 2.0 -- it seems that the framework installation does not include the "Microsoft .Net Framework 2.0 Configuration" tool! ...
0
1788
by: Ken Allen | last post by:
The MSDN documentation on remote debugging is a bit sparse, to say the least, and there is almost no information available on the 'best' way to configure this. I should note that my development...
7
2570
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
2006
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:...
7
2940
by: Nickolai Leschov | last post by:
Hello, I am working on an industrial automation project that involves programming the i188 PC-compatible controller with embedded DOS and several serial ports. What options do I have for...
3
2716
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...
3
6606
by: Yves Gagnon | last post by:
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...
0
7018
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...
0
7183
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,...
0
7235
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...
0
7397
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...
0
5491
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,...
0
4614
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...
0
3110
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...
0
3108
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
675
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.