无法启动调试 |视觉工作室 2015 [英] Unable to start debugging | Visual studio 2015

查看:29
本文介绍了无法启动调试 |视觉工作室 2015的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在我的电脑上重新安装了 win 10(所以系统现在很干净),当我尝试启动我的 asp 项目时,即使是默认的项目,无论是否调试,都会出现以下错误 -

I've recently reinstalled win 10 on my pc (so the system is clean now) and when i try to start my asp project even the default one with or without debugging the following error appears -

无法开始调试.不支持操作.未知错误:0x80070057

Unable to start debugging. Operation not supported. Unknown error: 0x80070057

屏幕截图.我尝试重新安装 Visual Studio 2015 社区更新 3、IIS(程序和功能选项)和 IIS Express.没有任何帮助.

Screenshot. I tried to reinstall visual studio 2015 community update 3, IIS (Program and feature option) and IIS Express. Nothing helps.

推荐答案

我差点把头发扯掉,试图找出问题所在 - 清理项目、重新启动、清理用户文件夹、删除 IIS 中的虚拟目录 - 没有任何效果.

I almost tore my hair out trying to figure what was wrong - cleaned project, rebooted, cleaned out user folder, deleted virtual directory in IIS - nothing worked.

在我的情况下,结果是 web.config 文件中的一些拼写错误的节点.

Turned out in my case it was some misspelled nodes in the web.config file.

特别是我有:

<system.webServer>
    ..
    <httpprotocol>
      <customheaders>

代替:

<system.webServer>
    ..
    <httpProtocol>
      <customHeaders>

解决了这个问题,问题解决了.

Fixed that and problem solved.

此外,必须删除以下(内容类型),否则返回错误.不知道这是否是一个有效的设置...

Also, had to remove the following (content-type) otherwise the error returned. Not sure if it was a valid setting anyway...

<httpProtocol>
  <customHeaders>
    ..
    <add name="Content-Type" value="application/json"/>

这篇关于无法启动调试 |视觉工作室 2015的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆