【问题标题】:Asp.Net debbuging in vs2012 fails when using https requests使用 https 请求时,vs 2012 中的 Asp.Net 调试失败
【发布时间】:2012-12-19 06:37:57
【问题描述】:

我今天开始这个问题:

visual studio 2012 debug for asp.net not working using IIS7

错误是当我尝试在启用了 asp net 调试的情况下从 vs2012 运行项目时,我收到以下错误:

Unable to start debugging on the web server. 
The web server is not configured correctly. 
See help for common configuration errors.

经过多次尝试,我决定创建一个新的 Asp Net Mvc 4/c# 应用程序,我可以让 asp net debug 在 Visual Studio 2012 中工作。

所以我决定将一个文件一个文件从一个项目复制到另一个项目,以检查问题是从哪里开始的。我发现当我启用 ssl 连接时,调试停止工作。

我的申请

  • 我已设置应用程序所需的 SSL 和客户端证书
  • 启用 http 和 https 协议

另外,在 VS2012 项目属性中,我已将项目 URL 更改为

 https://localhost/Gedi

这是我的项目的网址。

如果我能在这里找到解决方案,那么我会更新另一篇文章,我认为这对将来的参考非常有用。

为了在使用 https 请求时启用 asp.net 调试,我需要更改任何其他特殊配置吗?

编辑1:

我的 web.config 文件

<compilation batch="true" debug="true" defaultLanguage="C#" explicit="false"
maxBatchGeneratedFileSize="10000" maxBatchSize="10000" 
numRecompilesBeforeAppRestart="100" strict="false" 
tempDirectory="C:\Windows\Temp" urlLinePragmas="false"> 

【问题讨论】:

  • 你有什么关于端口的虚拟目录设置你有虚拟目录设置吗..?

标签: c# asp.net asp.net-mvc asp.net-mvc-4 visual-studio-2012


【解决方案1】:

先从最简单的web.config文件开始

您需要确保您的 web.config 文件包含:

<compilation debug="true" defaultLanguage="c#" />

当然取决于您的默认语言。

【讨论】:

  • 这就是我所拥有的:
  • Complilation /> .. 的结束标记在哪里?
  • 从 Stackoverflow 看这个网站 - stackoverflow.com/questions/47089/…
  • 它在那里.. 只是未能复制整行。问题是https缺少的东西。我开始相信,或者使用 https 时无法调试,或者它是一个非常简单的东西..
猜你喜欢
  • 2017-08-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-02-15
  • 1970-01-01
  • 2012-12-17
相关资源
最近更新 更多