Error while trying to run project: Unable to start debugging 绑定句柄无效
2010-11-08 23:02
337 查看
Error while trying to run project: Unable to start debugging 绑定句柄无效
Visual Studio 2005 编写的项目可以编译,但不能调试,错误信息:
Error
while
trying to run project: Unable to start debugging 绑定句柄无效
可以这样解决:
1、打开项目属性,在“Debug”一项里,把“Enable the Visual Studio hosting process”前的钩去掉。
2、打开计算机管理,在服务里将“Terminal Services”改成Manual,或者直接启动此服务。
摘自:http://webliver.com/Club/Channel/Forum/ShowPost.aspx?ClubDomainName=qddn&PostID=3753
The Visual Studio hosting process improves
debugger performance and enables new debugger features, such as
partial-trust debugging and design-time expression evaluation. You can
disable the hosting process if you need to. For more information, see How to: Disable the Hosting Process
. The following sections describe some differences between debugging with and without the hosting process.
Partial-Trust Debugging and Click-Once Security
Partial-trust
debugging requires the hosting process. If you disable the hosting
process, partial-trust debugging will not work even if partial-trust
security is enabled on the Security
page of Project Properties
. For more information, see How to: Disable the Hosting Process
and How to: Debug a Partial Trust Application
.
Design-Time Expression Evaluation
Design-time expression always uses the hosting process. Disabling the hosting process in the Project Properties
disables design-time expression evaluation for Class Library projects.
For other project types, design-time expression evaluation is not
disabled. Instead, Visual Studio starts the actual executable and uses
it for design-time evaluation without the hosting process. This
difference could produce different results.
AppDomain.CurrentDomain.FriendlyName Differences
AppDomain.CurrentDomain.FriendlyName
returns different results depending on whether the hosting process is enabled. If you call AppDomain.CurrentDomain.FriendlyName
with the hosting process enabled, it returns app_name
.vhost.exe
. If you call it the hosting process disabled, it returns app_name
.exe
.
Assembly.GetCallingAssembly().FullName Differences
Assembly.GetCallingAssembly().FullName
returns different results depending on whether the hosting process is enabled. If you call Assembly.GetCallingAssembly().FullName
with the hosting process enabled, it returns mscorlib
. If you call Assembly.GetCallingAssembly().FullName
with the hosting process disabled, it returns the application name.
相关文章推荐
- 关于:Error while trying to run project: Unable to start debugging 绑定句柄无效
- Error while trying to run project: Unable to start debugging 绑定句柄无效
- Error while trying to run project: Unable to start debugging 绑定句柄无效
- 关于:Error while trying to run project: Unable to start debugging 绑定句柄无效
- [原]Error while trying to run project: Unable to start debugging on the web server. 内存分配访问无效
- Error while trying to run project: Unable to start debugging
- Error while trying to run project:无法启动调试 绑定句柄无效
- Error while trying to run project:unable to start debugging.the debugger is not properly installed. run setup to install or repa
- Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named 'LIGAO'. 绑定句柄无效。
- Error while trying to run project
- unable to start debugging on the web server. An authentication error occurred while communicating with the web server.
- vs 2008 sp1 - Unable to start debugging on web server. An authentication error occurred...
- Error: Unable to Start Debugging on the Web Server(from MSDN)
- Error: An error was encountered while running ArcSDE Post Installation Operation Failed, Unable to start iomgr.
- ASP.Net DebugError解决方案[转]:Unable to start debugging on the web server.Debugging failes because integrated Windows authentication is not enabled.
- Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in
- Unable to attach.绑定句柄无效的解决
- 真机上测试出现问题:An error occurred while trying to run the script
- Unable to start debugging on the web server. The project is not configured to be debugged.
- [导入]Unable to attach.绑定句柄无效的解决