[精] 出现Visual Studio Just-In-Time Debugger的解决方法

    今天打算给自己的笔记本装个Visual Studio 2005,结果装到一半的时候,安装程序提示此版本与VISTA系统有兼容性的问题,于是退出了安装,程序也友好的提示可能有部分组件已经安装,于是又手动的卸载了已安装的组件,但Microsoft .NET Compact Framework不知道怎么卸载,也就没管他了!

    结果在运行别的程序时,突然弹出“Visual Studio Just-In-Time Debugger” 对话框,内容是:‘An unhanled win32 exception occurred in explorer.exe[2548]. just-in-time debuenabled. in visual studio,just-in-debugging can be enabled from tools/options/debugging/just-in-time.’
check the documentation index for 'just-in-time debugging,errors'for more information无论你选哪一项或直接关闭都会导致程序关闭。

    当然了,遇到这种问题首先是上网搜索各种解决方法,但好像只有一种方法,点选[开始]>[执行],在"开启"对话框中键入以下指令:

drwtsn32 -i

点选[确定],这个指令将会把Dr.Watson设定成预设的Debugger工具,这样就不会让您每次都会跳出这样的错误讯息了。

可是这个方法在我的系统里无法执行,根本就找不到drwtsn32 -i这个东东。

后来终于在一篇博客中找到了解决方法,个人认为是最佳方案了!!

解决方法在CSDN博客中:http://blog.csdn.net/bright60/archive/2006/08/24/1111592.aspx

    出现这种情况,往往是因为原先安装有VS,后来因某些原因(比如:卸载)导致VS无法使用!!
当系统中的有些软件出现错误时,会自动调用vs进行调试,但因为VS无法使用,就出现了visual studio just-in-time debugger窗口。

此方法主要就是删除指定的注册表
32位系统处理方法:
use the registry editor to delete the following registry keys:

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/AeDebug/Debugger

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/.NETFramework/DbgManagedDebugger

64位系统处理方法:
On a 64-bit operating system also delete the following registry keys:

HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Microsoft/Windows NT/CurrentVersion/AeDebug/Debugger

HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Microsoft/.NETFramework/DbgManagedDebugger

### Visual Studio Server and Client Configuration and Concepts #### Service Reference Addition Constraints When working within Visual Studio 2008, adding a service reference to a client application becomes restricted when the service operates in debug mode inside the same Visual Studio instance. This limitation necessitates running the host project without initiating the debugger to successfully add a service reference[^1]. #### Hosting ASP.NET Web API Without IIS A notable example demonstrating flexibility involves hosting an ASP.NET Web API through a console application, showcasing capabilities beyond traditional setups by excluding reliance on Internet Information Services (IIS)[^2]. ```csharp using System; using System.Web.Http; class Program { static void Main(string[] args) { var config = new HttpSelfHostConfiguration("http://localhost:8080"); config.Routes.MapHttpRoute( name: "API Default", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } ); using (var server = new HttpSelfHostServer(config)) { server.OpenAsync().Wait(); Console.WriteLine("Press Enter to quit."); Console.ReadLine(); } } } ``` This code snippet illustrates how easily one can set up a self-hosted environment for ASP.NET Web APIs. #### Transitioning Between Versions of Visual Studio For developers accustomed to earlier versions like Visual Studio 2005 or 2008, transitioning to newer editions such as Visual Studio 2010 presents minimal changes especially concerning building .NET applications intended for Oracle Database environments[^3]. #### Source Control Setup Prerequisites Setting up source control via VSO requires having either an active MSDN subscription or Microsoft account—such as Outlook or Hotmail accounts—to proceed with configurations effectively[^4]. --related questions-- 1. How does debugging impact other functionalities besides adding service references in Visual Studio? 2. What are alternative methods to deploy ASP.NET Web APIs outside conventional web servers? 3. Can practices from older Visual Studio versions directly translate into modern development workflows? 4. Are there additional benefits associated with maintaining an MSDN subscription over just possessing a Microsoft account?
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值