一、 调试 ASP.NET 应用程序时出现"未将项目配置为进行调试"的错误信息 二、在发送调试 HTTP 请求时出现"无法启动调试"的错误信息 三、调试 ASP.NET 应用程序时出现"访问被拒绝。请检查计算机调试管理器的 DCOM 配置设置。"的错误信息
四、调试 ASP.NET 应用程序时出现"无法在 Web 服务器上启动调试"的错误信息 五、调试 ASP.NET 页时 Visual Studio .NET 调试器不在断点停止 六、无法调试 ASP.NET Web 应用程序 Error while trying to run project:Unable to start debugging on the web server.Access is denied.Would you like to disable future attempts to debug ASP.NET pages for this project? | |
日期:2004-6-20 15:54:37 |
来源:weste
|
补充:
Introduction
During the last several months, I have dealt with many users from both inside and outside of Microsoft who have debugging issues. I noticed that there are many common mistakes and problems that can be solved, if users are provided with proper diagnosis. Hence, I’ve written this document to provide you with this information which will help you if you run into any issues while using the debugger.
This document contains:
- Error message dialog or description of error situation
- The causes for error
- How to fix the problem.
And I especially thanks to VCS debugger team and other people who helped me to complete this document with various feed back.
Debugging issues
ASP.NET Debugging
*If you can’t find the error message that you’re looking for in this section, please check the section which deals with general debugging issues or remote debugging issues.
Message: Unable to start debugging on the web server
Your IIS application of IIS is not configured to use “integrated Windows authentication”. Please make sure that the “integrated windows authentication” checkbox on the “authentication method” dialog box is checked.
Message: You do not have permission to debug the server
- Cause 1: Make sure that “Integrated Windows Authentication” is enabled. Probably, you enabled only “Basic authentication” for Directory security of IIS.
- Cause 2: If you are using “Integrated Windows authentication”, you need to make sure that your user account has full control on the directory of the IIS.
- Cause 3: If you created the web project with a full machine name (like “machinename.domainname.something”), the web site is recognized as “Internet” site. So the default setting of IE will impact on the behavior of log on. In this case, you need to enable logging on with your current user account in “Internet” area with IE setting.
But it is not the default setting of IE, so you’d be better off if you create project with only the machine name.
Message: Server side-error occurred on sending debug HTTP request.
Cause 1: Your web application doesn’t have an Application name. Please check the properties of the web project using the IIS MMC to ensure that your web project has an application name
You need to create an application name for debugging.
Cause 2: If you are using the NTFS file format, please make sure that “aspnet” has proper privilege on “wwwroot” or your folder for virtual directory to access and write on the folders.
Message: The project is not configured to be debugged.
You need to make sure that your web is configured for debugging. To do this, you need set “debug = true” in the “web.config” file. You may find this file in your web project folder.
Can start debugging without error message, but breakpoints are not hit.
You started debugging with “F5” and it looks like debugging is started properly, and IE is launched properly. But you can’t hit a breakpoint on my code behind code.
Cause 1: Please make sure that “asp.net debugging” is enabled in the properties of project.
In the case of VB project, the UI is different. But you can recognize the equivalent one easily.
Cause 2: Please make sure that the expected DLL is loaded with matched debug symbol file. You can check it with “Modules” window.
Message: The debugger is not properly installed.
If you see this problem, please check debugging with console application project. And if the console application project shows the error message like
It means that your .Net framework is not installed properly. So you need to register “mscordbi.dll” manually by executing “regsvr32 mscordbi.dll”.
Message : The server does not support debugging of ASP.NET or ATL server applications.
If you have an XP Pro or W2K Pro machine, you may need to think about the order of installation between VS7 and IIS. If you install IIS after VS7, you will get this error. In this case, please register “aspnet_isapi.dll” with “aspnet_regiis.exe –i”.
Message: Access is denied. Verify that you are an administrator or a member of …
You may not be the member of “Debugger users” group on the machine. Please add your user account into “Debugger users” group on the machine.
To add your user account into “Debugger users” group, you need to do the following:
1. Log in as “Administrator”
2. Run “Computer management” in “Administrator tools”
3. Choose “Local users and groups"groups” node
4. Double-click “Debugger users” group on right pane.
Error while trying to run project: Unable to start debugging on the web
server. The project is not configured to be debugged.
IIRC this is due the folder in the IIS webserver is not configured as an
APP
go to IIS , right click the dir and select create app