[英]Asp.Net debbuging in vs2012 fails when using https requests
I started this question today: 我今天开始提出这个问题:
visual studio 2012 debug for asp.net not working using IIS7 使用IIS7无法对asp.net进行Visual Studio 2012调试
The error is when I try to run the project from vs2012 with asp net debugging enabled I get the following error: 错误是当我尝试启用vsp net调试从vs2012运行项目时,出现以下错误:
Unable to start debugging on the web server.
The web server is not configured correctly.
See help for common configuration errors.
After so many tries I decide to create a new Asp Net Mvc 4/c# application and I could get asp net debug to work in visual studio 2012. 经过如此多的尝试后,我决定创建一个新的Asp Net Mvc 4 / c#应用程序,并且可以在Visual Studio 2012中使用asp net调试。
So I decided to copy file by file from one project to another to check where the problem started. 因此,我决定将文件从一个项目复制到另一个项目,以检查问题的出处。 I found out that when I enable ssl connection the debug stop working.
我发现启用ssl连接后,调试将停止工作。
For my application 对于我的应用
Also, In VS2012 Project properties I have changed the Project Url to 另外,在VS2012项目属性中,我将项目网址更改为
https://localhost/Gedi
Which is the url for my project. 这是我的项目的网址。
If I can find the solution here, then I update the other post which I believe will be very useful for future reference. 如果可以在此处找到解决方案,那么我将更新另一篇文章,我相信它将对将来的参考非常有用。
Is there any other special configuration I need to change in order to enable asp.net debugging when using https requests? 使用https请求时,是否需要更改其他任何特殊配置才能启用asp.net调试?
EDIT 1: 编辑1:
my web.config file 我的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">
Start with the simplest thing first the web.config file 首先从最简单的东西开始web.config文件
You need to make sure your web.config file contains: 您需要确保您的web.config文件包含:
<compilation debug="true" defaultLanguage="c#" />
Depending on what your default language is of course. 当然取决于您的默认语言。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.