简体   繁体   English

使用https请求时vs2012中的Asp.Net调试失败

[英]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 对于我的应用

  • I have set SSL and Client certificate required for my application 我已经设置了我的应用程序所需的SSL和客户端证书
  • Enabled http and https protocol 启用的HTTP和https协议

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.

相关问题 在VS2012中的ASP.NET项目中加载慢速符号 - Slow symbol loading in an ASP.NET Project in VS2012 在VS2012中创建新的ASP.NET MVC 4 Web应用程序时出现0x80070002错误 - 0x80070002 error when creating new ASP.NET MVC 4 Web Application in VS2012 在VS2012中,在单击按钮后,使用asp.net ajax方法阻止页面刷新 - Using asp.net ajax method to stop the page from refreshing after a buttonclick in VS2012 使用Windows 8 / VS2012时目标.Net 4.0 - Target .Net 4.0 when using Windows 8 / VS2012 asp.net项目中的LocalDb是否需要一些配置才能在其他计算机上运行? VS2012 - LocalDb in asp.net project require some configurations to run on other machine? VS2012 当我在Windows Server 2012 R2的VS2012中运行asp.net 4.5 mvc 4站点时显示“此页面无法显示” - asp.net 4.5 mvc 4 site shows “This page can’t be displayed” when I run it in VS2012 on Windows Server 2012 R2 在VS2012中更改标记后,ASP.Net Inproc会话重新启动 - ASP.Net Inproc session restarted after markup change in VS2012 更改默认VS2012 ASP.Net Site.Master页面中的链接外观 - Changing link appearance in Default VS2012 ASP.Net Site.Master page VS2012构建失败,代码为9009 - VS2012 build fails with code 9009 设置CodeAnalysisTreatWarningsAsErrors时,VS2012构建失败,尽管没有警告或错误 - VS2012 build fails when setting CodeAnalysisTreatWarningsAsErrors although there are no warnings or errors
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM