【问题标题】:VS2015 Error while trying to run project [duplicate]尝试运行项目时出现VS2015错误[重复]
【发布时间】:2016-03-02 07:21:32
【问题描述】:

我正在使用 VS2015 更新 1 我只是开始一个没有什么特别的新应用程序,没有数据库,没有 COM 引用。只是一个简单的 winform 应用程序。

我收到以下错误:

尝试运行项目时出错:无法开始调试。

调用的对象已与其客户端断开连接。

我的代码:

public partial class RegistratorForm : Form
{
    public RegistratorForm()
    {
        InitializeComponent();
    }

    private void RegistratorFileBrowseButton_Click(object sender, EventArgs e)
    {
        using (var openDialog = new OpenFileDialog())
        {
            openDialog.Title = "Open Text File";
            openDialog.Filter = "Registrator files|*.rgr";
            openDialog.InitialDirectory = ConfigurationManager.AppSettings["DefaultRegistratorFilePath"];
            if (openDialog.ShowDialog() == DialogResult.OK)
            {

            }
        }
    }
}

我的表格:

我的 app.config 文件:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
   <appSettings>
     <add key="DefaultRegistratorFilePath" value="C:\"/>
   </appSettings>
</configuration>

【问题讨论】:

    标签: c# .net winforms visual-studio visual-studio-2015


    【解决方案1】:

    尝试重新启动 Visual Studio。这应该够了吧。 如果没有,那么您应该按照建议进行操作here

    1. 检查从源代码控制引擎更新后哪些文件被更改(原因和方式)
    2. 查看扩展和插件列表。尝试禁用全部或部分功能
    3. 关闭 Visual Studio 并终止所有开发进程:devenv、mspdbsrv、vcpkgsrv、msbuild、conhost、msvsmon 等
    4. 删除解决方案的 .suo 和 .ncb 文件,这有时会导致问题
    5. 删除项目设置文件,排序为 YourProjectName.vcproj.DOMAINNAME.LOGINNAME.user 或 YourProjectName.csproj.user。
    6. 设置文件名取决于您使用的项目类型 运行“C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe”/setup 或“C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe”/setup x64 环境

    【讨论】:

      【解决方案2】:

      试试这个:

      修复“未注册 64 位调试器的组件”错误 http://www.hagrin.com/326/fixing-components-64-bit-debugger-are-not-registered-error

      【讨论】:

      • 我发现的唯一 rdbgsetup.exe 位于 C:\Program Files\Microsoft SQL Server\110\Shared\VS2008\1033\rdbgsetup.exe。我运行它,它解决了问题,但它又来了。我运行的是正确的文件还是应该从 VS2015 获得相同的文件?
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-11-23
      • 2019-09-23
      • 1970-01-01
      • 1970-01-01
      • 2020-07-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多