2012-12-18 88 views
0

今天我開始了這個問題:Asp.Net debbuging失敗HTTPS請求

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

的錯誤是,當我嘗試從ASP淨調試vs2012運行項目使我得到以下錯誤:

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

這麼多的嘗試後,我決定創建一個新的ASP網的mvc 4/C#應用程序,我能得到的ASP網調試在Visual Studio中工作2012年

因此,我決定將文件從一個項目複製到另一個項目,以檢查問題開始的位置。我發現當我啓用ssl連接時,調試停止工作。

對於我的應用程序

  • 我已經爲我的應用程序所需的SSL和客戶端證書
  • 啓用HTTP和HTTPS協議

此外,在VS2012項目屬性我已經改變了Project Url to

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"> 
+0

你有什麼虛擬目錄設置作爲端口你有虛擬目錄設置..? – MethodMan

回答

0

從最簡單的事情第一的web.config文件

你需要確保你的web.config文件中包含:

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

取決於您的默認語言當然。

+0

這是我有:

+0

其中是Compilation的結束標記/> ..? – MethodMan

+0

看看這個網站從Stackoverflow - http://stackoverflow.com/questions/47089/best-way-in-asp-net-to-force-https-for-an-entire-site – MethodMan