473,890 Members | 1,411 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\Deb ug]
and
Project Properties -> Debug -> [v] Use Remote Computer: MyUserName@Embe ddedDeviceName

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 EmbeddedDeviceN ame\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 Authentifizieru ng. 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 4167
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. }
InitializeCompo nent() throws a SecurityExcepti on. 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... InitializeCompo nent() 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 securityExcepti on 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 SecurityExcepti on.
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
3592
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 simply console application written in VB.NET that is built on PC-1 using VisualStudio.NET. I set the VisualStudio.NET debugging environment to execute the application on PC-2. This works as long as pcAnywhere is NOT installed on PC-2 (it does not...
3
5913
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...
1
3087
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! My preferred method of debugging uses these steps: 1. Share the directory that contains the debug image; also share the folder that contains the debug monitor. 2. Configure the project debug mode to launch the exeecutable from the share rather...
0
1818
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 system is Windows XP Pro and the test machine is Windows 2003, both running the latest upgrades; Visual Studio 2005 is installed on the development system and the .Net 2.0 framework is installed on the test system. The two systems do not have the...
7
2599
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
2030
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...
7
2968
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 debugging on this hardware? Specifications of the controller: CPU 80188 or compatible, 40 MHz (RDC R-8820, clone of Am188ES ?) SRAM 512KBytes Flash 512KBytes
3
2785
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
3
6642
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 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...
0
9978
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10819
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...
1
10923
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10462
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
9633
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
8016
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
5851
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
4271
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3277
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.