正文

asp.net常见错误(-)2007-04-03 09:44:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/tiay/24569.html

分享到:

ASP.NET常见问题解答:

一、无法在服务器上调试
Error while trying to run project: unable to start debugging on the web server.
Would you like disable future attempts to debug asp.net pages for this project?
解决方法:说明IIS没配置好,打开IIS,查看默认站点属性,选中“目录安全性”
选项卡——>编辑“匿名访问和身份验证控制”,确认“集成WINDOWS验证”被选中
二、没有权限,无法在服务器上调试
Error while trying to run project: unable to start debugging on the web server.
You do not have permissions to debug the server.
Verify that you are a member of the debugger users’ group on the server.
Would you like disable future attempts to debug asp.net pages for this project?
解决方法:由于系统安全、权限设置不合适。
(1) 确认“集成WINDOWS身份验证”被选择
(2) 再确认登陆帐户对于IIS设定的目录具有完全控制权限。
(3) 如果你创建的WEB项目是机器名,说明目前站点是一个INTERNER站点,
IE的默认设置将影响你的调试。
三、发送用于调试的HTTP请求过程中发生服务器端错误,无法在服务器上进行调试。
Error while trying to run project: unable to start debugging on the web server.
Server side-error occurred on sending debug HTTP request.
Make sure the server is operating correctly. verify there are no syntax errors in web.config by doing a debug. Start without would you like to disable future attempts to debug asp.net pages for this project?
解决方法:
(1)可能是应用程序没有设置应用程序名,打开IIS选定不能调试的虚拟目录的属性,确认
“应用程序设置”中的“应用程序名”一栏不是灰色,如是灰色点击“创建”
(2)如果系统是NTFS文件格式,那么要确认帐户“ASPNET”对于该站点主目录或虚拟目录有读写权限。
四、项目未配置好,无法在服务器上进行调试
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?
解决方法:该提示说明你的项目文件WEB.CONFIG未配置为“可调试”,请打开“WEB.CONFIG”确认“DEBUG=TRUE
五、当你使用“F5”开始调试,浏览器可以装载默认开始页面,存在问题是无法在代码旁边设置断点。
解决方法:打开项目属性,确认在“配置属性”中调试项目组中的“启用ASP.NET调试”为“TRUE
(1) 请确认项目引用的.DLL文件被加载, 可通过项目中的“引用”文件夹查看。
六、服务器无法支持ASP.NETATL服务器应用程序
Error while trying to run project: unable to start debugging on the web server.
The server does not support debugging of ASP.NET or ATL server application.
Run setup to install the visual studio.net server components.
If setup has been run verify that a valid URL has been specified.
You may also want to refer to the ASP.NET and ATL server debugged topic in the online documentation. would you like to disable future attempts to debug asp.net pages for this project?
解决方法:如果你装的是XP2000 PROFESSIONAL,你需回忆安装IIS和应用程序的顺序,如先装.NET后装IIS很可能看到这条信息。
在命令中执行“aspnet_regiis.exe i”,要求IIS注册“aspnet_isapi.dll
七、访问被拒绝,请确认你是管理员或“DEBUGGER USERS”用户组的成员
Error while trying to run project : unable to start debugging.
Access is denied. Verify that you are an administrator or a member of the ‘debugger users’ group on the machine you are trying to debug. After being added to the ‘debugger users’ group ,you must log off and log back on for the setting to apply.
解决方法:
1、 以管理员身份登陆
2、 将该访问帐户加入‘DEBUGGER USERS’组
八、访问被拒绝
Error while trying to run project : unable to start debugging.
Access is denied.
would you like to disable future attempts to debug asp.net pages for this project?
解决方法:你也许已经是“DEBUGGER USERS”组的成员,但仍然无法调试ASPNET程序,说明你还不是“ASPNET”用户或隶属于“ADMINISTRATORS”,将帐户加入“ADMINISTRATORS”组
九、无法调试包含(included)文件
解决方法:也许调试的文件中包含file=”file name”- ->代码,这里的文件路径是绝对路径,这时.NET是无法对这个包含文件进行调试的,建议使用虚拟目录virtual=”file name”- ->试一试
十、安装windows 2000 sp4后,无法对asp.net程序进行调试,系统报告“访问被拒绝”
解决方法:使用命令注册”aspnet_isap.dll” 即在命令中运行”regsvr32Iaspnet_isap.dll”
十一、只有当页面第一次装载时,才可以设置断点且调试功能是正常的
解决方法:有多方面的原因造成,最大的可能是“WEB.CONFIG”文件设置了类似“”将VALUE=FALSE”关闭缓存功能即可。

阅读(9237) | 评论(28)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

loading...
您需要登录后才能评论,请 登录 或者 注册