简体   繁体   English

.Net Core Console应用程序 - 调试失败 - 终止与远程端点的连接

[英].Net Core Console App - Debug Fails - The connection with the remote endpoint was terminated

Debug-->Start Debugging fails with error "The connection with the Remote Endpoint was terminated". 调试 - >启动调试失败,并显示错误“与远程端点的连接已终止”。

Developed a very simple .Net Core Console Application with a small set of dependencies and < 100 lines of code. 开发了一个非常简单的.Net Core Console应用程序,它具有一小组依赖关系和<100行代码。 In fact Project.JSON is below. 实际上Project.JSON如下。 It ran great on my machine. 它在我的机器上跑得很好。 When another developer Git-Cloned it and tried to debug it in VS 2015, they keep getting "Unable to start program... The connection with the remote endpoint was terminated". 当另一位开发人员Git-Cloned它并试图在VS 2015中调试它时,他们不断得到“无法启动程序......终止与远程端点的连接”。 I am at a loss because there should not be a "remote endpoint". 我不知所措,因为不应该有“远程端点”。 This is a local machine application. 这是本地机器应用程序。 This is not a web application and it is not set to run/connect to or debug on another machine, so what causes this error? 这不是一个Web应用程序,它没有设置为在另一台机器上运行/连接或调试,因此导致此错误的原因是什么?

Project.json: Project.json:

{
  "version": "1.0.0-*",
  "buildOptions": {
    "emitEntryPoint": true
  },

  "dependencies": {
    "Dapper": "1.50.0",
    "Oracle.ManagedDataAccess": "12.1.24160719",
    "Newtonsoft.Json": "9.0.1",
    "ETimeLibrary": "1.0.0"
  },

  "frameworks": {
    "net461": {
      "frameworkAssemblies": {
        "System.Net": "4.0.0.0"
      }
    }
  }
}

I sincerely hope this saves someone a week's worth of aggravation in the future. 我真诚地希望这可以为将来一个星期的人们带来更多的恶化。 The issue ended up being the Digital Guardian software. 该问题最终成为Digital Guardian软件。 I never want to leave my own questions unanswered. 我从不想把自己的问题留下来。

Now for some editorial comments: What a horrible software package! 现在有一些编辑评论:多么可怕的软件包! Been doing Microsoft Stack development since VB 3.0 and never did I run into an issue with Visual Anything (Interdev, Studio, etc.) not working that was this hard to figure out. 从VB 3.0开始就一直在进行Microsoft Stack开发,从来没有遇到过Visual Anything(Interdev,Studio等)的问题,这个问题很难解决。 Not only did it break debugging 64-bit applications (debugger works if you set your configuration and debug x86 or 32-bit), but it also slowed the machine down to a crawl. 它不仅破坏了调试64位应用程序(如果您设置配置并调试x86或32位,调试器也可以工作),但它也会使机器速度降低到爬行速度。 Just say "no" to digital guardian. 对数字监护人说“不”。

检查Azure应用程序上的远程调试是否在门户中设置为ON并且具有正确的Remote Visual Studio版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将.Net Core Console App部署到Raspberry PI和远程调试 - Deploy .Net Core Console App to Raspberry PI and Remote Debug 从Visual Studio 2017调试.Net Core Console App - Debug .Net Core Console App out of Visual Studio 2017 .net 核心控制台应用程序 - serilog 写入 bin/debug 文件夹 - .net core console app - serilog write to bin/debug folder 使用 dotnet run 时如何调试 .NET 核心控制台应用程序 - How to Debug a .NET Core Console App When Using dotnet run 在Net-Core控制台应用程序中检索远程xml文件 - Retrieve remote xml file in net-core console app 从 appsettings.json 将多个端点路由添加到 .net 核心控制台应用程序 - Adding multiple endpoint routes to .net core console app from appsettings.json System.Diagnostics.Debug.Assert - 如何在 .NET 核心控制台应用程序中禁用? - System.Diagnostics.Debug.Assert - how to disable in a .NET Core console app? C# .Net Core Console App Debug.Assert 不显示消息框 - C# .Net Core Console App Debug.Assert not showing message box 在控制台应用程序中重用来自我的 ASP.NET Core MVC 应用程序的代码:如何进行数据库连接 - Reusing code from my ASP.NET Core MVC app in console app : how to do database connection .NET Core 控制台应用程序:由于证书链中的错误,远程证书无效:UntrustedRoot - .NET Core Console App: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM