当前位置:编程学习 > C#/ASP.NET >>

PRB:调试 ASP.NET 应用程序时出现“The Project Is Not Configured to Be Debugged”错误信息

症状
在 Visual Studio .NET 中调试 ASP.NET 应用程序时,可能会出现下面的错误信息:
Error while trying to run project:Unable to start debugging on the web server.The project is not configured to be debugged

For ASP.NET projects, verify that you have a valid project file called 'Web.config' for the URL specified and 'debug' is set to 'true' in that file.
For ATL Server projects, verify that the 'DEBUG' verb is associated with your ISAPI extension.
Would you like to disable future attempts to debug ASP.NET pages for this project?
补充:解決方案呢?
		
答案:
若要解决此问题,请根据您的具体环境,使用以下方法之一: 1. 如果项目没有 Web.config 文件,请将 Web.config 文件添加到包含该 ASP.NET 应用程序的目录中。如果是在 Visual Studio .NET 中工作,请在项目资源管理器中右键单击该项目,单击添加新项,然后单击 Web 配置文件。 
2.如果项目已有 Web.config 文件,并且在 Web.config 文件的 <compilation> 部分中将 debug 属性设置为 true,请执行下列步骤来设置项目文件夹的执行权限属性: 1. 启动 Internet 服务管理器,然后单击要尝试进行调试的项目。
2. 右键单击该项目,然后单击属性。
3. 单击目录选项卡。
4. 如果在执行权限列表中选择了无,请单击“纯脚本”,然后单击应用。
出现此错误主要是因为下列原因: 
ASP.NET 应用程序没有 Web.Config 文件。或者 在 Internet 服务管理器中,将当前项目文件夹的执行权限属性设置为无。

上一个:Skelta工作流控件可以用在基于MVC 3的ASP.NET应用程序中吗? ...
下一个:ASP源码已经写好的程序中改几个中文字可以吗?

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,