【发布时间】: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