0

我今天开始了这个问题:

用于 asp.net 的 Visual Studio 2012 调试无法使用 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"> 
4

1 回答 1

0

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

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

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

当然,这取决于您的默认语言是什么。

于 2012-12-18T18:56:26.083 回答