今天偵錯工具過程中,又遇到了一個問題:“Error while trying to run project: Unable to start debugging on the web server. 記憶體配置訪問無效”。(呵呵!今天好象程式總是喜歡和自己開這樣的玩笑,不過我的觀點是:不要怕遇到問題,這是鍛煉自己解決問題的最好方式)。下面我來說一下我解決的方式(其實也很簡單)。
依然先藉助於強大的搜尋引擎Baidu,找到以下相關資料:
關於ASP.Net不能啟動調試的官方解答:
PRB: "Unable to Start Debugging on the Web Server" Error Message When You Debug ASP.NET Applications
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework)
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Academic Edition
This article was previously published under Q306165
SYMPTOMS
When you debug an ASP.NET application in Visual Studio .NET, you may receive the following error message:
Error while trying to run project : Unable to start debugging on the web server. Would you like to disable future attempts to debug ASP.NET pages for this project?
CAUSE
This error occurs because Microsoft Internet Information Server (IIS) is not running or is not functioning properly.
RESOLUTION
To resolve this problem, you must restart IIS. To do this, type iisreset at a command prompt.
REFERENCES
For more general information about ASP.NET, refer to the following MSDN newsgroup: