Cannot connect to debug C# program

Hi all, I can connect over Ethernet to remotely debug C++ programs, so I know the connection works. I can run C# programs on the iMX6DL so I know that .NET 3.9 is installed correctly. However I cannot connect to the iMX6DL to remotely debug a C# program. VS2015 shows “Connecting to Windows Embedded Compact Debugger” for about 20 seconds then brings up a window saying there were deployment errors.

Does anyone have any suggestions on how to fix this please?

The development environment should prompt you for an IP address (but sometimes freezes after doing that) or telling you to configure one in the debug options. Do you have a valid IP configured there?

Yes, I am using the same IP address that is displayed on the Colibri and which works for debugging the C++ program. I set up the IP address before connecting so it doesn’t prompt for one.

It is connecting now, but it still takes about 20 seconds for the error message to appear. If I click on “Continue anyway” then it will deploy and can be debugged, but the delay and error message only occur for C# programs, not for C++.

What error message?
Do you have a valid folder configured for deployment?
Do you get any error message or message on debug output if you execute the application directly on the target?

I have the same problem by using vb.net 2015. On BSP2.0 the problem was not there. Now I updated to BSP2.1b4 and when i click deploy, Visual Studio says after 20sec. this: “A connection attempt failed because the remote station did not respond properly after a certain amount of time, or the connection made failed because the connected host did not respond.” (I translated from German, sorry). But when I ignore the message everything works fine. But it sucks.

Do you have any output you can capture on the VS console, the UART output etc.?
Having some more information about this may help us reproducing it internally.
If you can also provide us the releases of your development environment (including service packs etc.) and .NET runtime release that would help.

Microsoft Visual Studio Professional 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.7.02556

Installierte Version: Professional

Application Builder For Windows Embedded Compact 2013 00322-50000-57212-AA846
Application Builder For Windows Embedded Compact 2013

Microsoft Visual Studio Tools for Applications 2015 00322-50000-57212-AA846
Microsoft Visual Studio Tools for Applications 2015

Visual Basic 2015 00322-50000-57212-AA846
Microsoft Visual Basic 2015

Visual C# 2015 00322-50000-57212-AA846
Microsoft Visual C# 2015

Visual C++ 2015 00322-50000-57212-AA846
Microsoft Visual C++ 2015

Windows Phone SDK 8.0 - DEU 00322-50000-57212-AA846
Windows Phone SDK 8.0 - DEU

Allgemeine Azure-Tools 1.8
Bietet allgemeine Dienste für die Verwendung durch Azure Mobile Services und Microsoft Azure-Tools.

Application Insights-Tools für Visual Studio-Paket 7.19.00411.1
Application Insights-Tools für Visual Studio

ASP.NET and Web Tools 2015.1 14.1.30801.0
ASP.NET and Web Tools 2015.1

ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013 5.2.40314.0
For additional information, visit http://www.asp.net/

Azure App Service Tools v2.9.6 14.0.21111.0
Azure App Service Tools v2.9.6

Azure Data Lake Node 1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio 2.2.2100.0
Microsoft Azure Data Lake Tools for Visual Studio

DataFactoryProject 1.0
Microsoft Data Factory Package

InstallShield Limited Edition
InstallShield. For more information visit the Flexera Software website at . Copyright © 2015 Flexera Software LLC. All Rights Reserved.

JavaScript-Sprachdienst 2.0
JavaScript-Sprachdienst

JavaScript Project System 2.0
JavaScript Project System

Microsoft .NET Core Tools (Preview 2) 14.1.30801.0
Microsoft .NET Core Tools (Preview 2)

Microsoft Azure-Tools 2.7
Microsoft Azure Tools für Microsoft Visual Studio 2015 - v2.7.30818.1601

Microsoft Azure-Tools 2.8
Microsoft Azure Tools für Microsoft Visual Studio 2015 - v2.8.31121.1

Microsoft Azure-Tools 2.9
Microsoft Azure-Tools für Microsoft Visual Studio 2015 – v2.9.41104.6

Microsoft Azure Data Factory Node Node 1.0
Azure Data Factory extension for Visual Studio Server Explorer.

Microsoft Azure Hive Query Language Service 2.2.2100.0
Language service for Hive query

Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools

NuGet-Paket-Manager 3.5.0
NuGet-Paket-Manager in Visual Studio. Weitere Informationen zu NuGet finden Sie unter “http://docs.nuget.org/”.

Platform Builder 8.00
Platform Builder (6250)

PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio-Erweiterung zur Visualisierung aggregierter Zusammenfassungen vom PreEmptive Analytics-Produkt.

SQL Server Analysis Services 14.0.806.134
Microsoft SQL Server Analysis Services-Designer,
Version 14.0.806.134

SQL Server Data Tools 14.0.61707.300
Microsoft SQL Server Data Tools

SQL Server Integration Services
Microsoft SQL Server Integration Services-Designer
Version 14.0.800.90

SQL Server Reporting Services 14.0.806.134
Designer für Microsoft SQL Server Reporting Services
Version 14.0.806.134

ToolWindowHostedEditor 1.0
Hosting json editor into a tool window

TypeScript 1.8.36.0
TypeScript-Tools für Visual Studio

Visual Studio Tools for Universal Windows Apps 14.0.25527.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Windows Embedded XAML Tools 03349-785-0000007-70824
Windows Embedded XAML Tools
Version 8.0.6249.0

Hope that´s enough.
Like I said: With BSP2.0 from WEC2013 there was no problem deploying by network. By using BSP2.1b4 this output comes:

3>Deploying : Connecting to Windows Embedded Compact Debugger…
3>Deployment of application to device failed.
3>Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat.
4>------ Bereitstellung gestartet: Projekt: xxx, Konfiguration: Debug Any CPU ------
4>Deploying : Connecting to Windows Embedded Compact Debugger…
4>The application is already installed on the device. Checking if an incremental deployment is possible…
4>Doing full deployment as project was cleaned and rebuilt…
4>Uninstalling the application…
4>Installing the application…
4>Updating information related to installed files…
4>Successfully Deployed : ========== Erstellen: 2 erfolgreich, 0 fehlerhaft, 0 aktuell, 0 übersprungen ==========
========== Bereitstellen: 1 erfolgreich, 1 fehlerhaft, 0 übersprungen ==========

When I ignore the message, VS go to debug-mode and everything works.

Ah damn,
I have just seen that I want to provide two projects. But in the second project I was deposited the wrong IP address.
Please forget all. It works. Maby steve274 have the same problem!