您(Are)是否正在为应用程序中出现未处理异常的错误消息而苦苦挣扎?如果是,本文将指导您找到解决此问题的潜在方法。当您尝试启动之前在Visual Studio中构建的应用程序时,通常会发生此错误。通常(Often),这些错误实例主要出现在与Uplay、Internet Explorer 和(Uplay, Internet Explorer, and games)专为旧版Windows制作的游戏相关的应用程序中。通过尝试下面给出的方法可以轻松解决此问题。
如何修复 Windows 10 上的应用程序中发生未处理的异常(How to Fix Unhandled Exception Has Occurred in Your Application on Windows 10)
在制定方法之前,请了解在Windows 10(Windows 10)上的应用程序的组件中发生此未处理异常的原因:
- 第三方防病毒程序可能会阻碍某些应用程序的保护功能。
- 存在损坏的系统文件。
- 如果启用脚本调试,则错误可能性很高。
- 违反 MSVCR92.DLL。
- 如果Windows、应用程序和 .Net Framework更新已过时。
- 旧版本中构建的应用程序缺少 .Net Framework。
方法 1:更新 Windows
发生未处理的 win32 异常错误的常见原因是在负责停止应用程序运行并调用 strncpy 函数的MSVCR92.DLL中存在访问冲突。(MSVCR92.DLL)建议解决此问题的首要方法是更新您的Windows操作系统(如果它已过时)。Microsoft已经意识到此问题,并通过其最新更新提供了修复。因此,请确保Windows 操作系统(Windows OS)已更新至最新。阅读或指导什么是 Windows(What is Windows),以了解有关Windows 更新过程(Windows Update Process)的更多信息。要更新Windows ,请按照我们的指南下载并安装 Windows 10 最新更新(download and install Windows 10 latest update)。
完成所有更新后,重新启动系统。启动应用程序中的组件中发生未处理异常的应用程序 Windows 10 错误以前盛行并检查它是否已修复。
方法 2:更新应用程序(Method 2: Update Apps)
有必要使应用程序保持最新。更新过程始终确保防止更早出现任何错误。因此,请按照以下步骤更新应用程序。
1. 按Windows 键(Windows key),键入Microsoft store,然后单击打开(Open)。
2. 单击Microsoft Store显示屏幕页面右上角的三个水平点图标。(three horizontal dots icon)
3.在下拉菜单中选择下载和更新选项。(Downloads and updates)
4. 单击获取更新(Get updates)按钮以下载与Microsoft Store相关的所有应用程序的待处理更新。
5. 更新后,重新启动(reboot) 您的 PC(your PC)。
另请阅读:(Also Read:) 如何修复 StartupCheckLibrary.dll 丢失错误(How to Fix StartupCheckLibrary.dll Missing Error)
方法 3:运行 Windows 应用商店应用程序疑难解答(Method 3: Run Windows Store Apps Troubleshooter)
所有与Microsoft 应用程序(Microsoft Apps)相关的问题都将通过运行Windows 应用商店应用程序(Windows Store Apps)疑难解答来解决。这也将解决这个未处理的异常错误。以下是在Windows 10 PC 上运行网络疑难解答的一些说明。
1. 同时按下Windows + I keys打开设置(Settings)。
2. 选择更新和安全(Update & Security)设置。
3.从左窗格转到疑难解答菜单。(Troubleshoot)
4. 单击Windows 应用商店应用( Windows Store Apps)并选择运行疑难解答(Run the troubleshooter)按钮。
5. 按照屏幕上的说明(on-screen instructions)完成故障排除过程。
方法 4:暂时禁用第三方防病毒软件(如果适用)(Method 4: Disable Third-Party Antivirus Temporarily (If Applicable))
第三方防病毒软件可能会对某些应用程序造成障碍,并在您的应用程序中创建错误弹出未处理异常。因此(Therefore),请禁用第三方防病毒应用程序。阅读我们关于如何在 Windows 10 上临时(How to Disable Antivirus Temporarily on Windows 10)禁用防病毒程序的指南,并按照说明在您的 PC 上临时禁用防病毒程序。(Antivirus)
如果问题已解决,请确保重新启用防病毒程序。始终建议您打开防病毒软件,因为没有安全套件的设备始终是一种威胁。
方法五:开启.Net Framework(Method 5: Turn On .Net Framework)
一些旧的应用程序和程序需要 .Net Framework才能正常运行而不会出现任何错误。因此(Therefore),通过执行下面给出的步骤来打开 .Net Framework 。
1. 同时按Windows + R 键(keys)打开运行对话框(Run dialog box)。
2.输入optionalfeatures并按Enter 键(Enter key)启动Windows Features。
3.展开(Expand)并选中.NET Framework 3.5(包括 .NET 2.0 和 3.0)(.NET Framework 3.5 (includes .NET 2.0 and 3.0))框下的所有选项。然后,单击确定(OK)。
4. 单击让 Windows 更新为您下载文件(Let Windows Update download the files for you)。
5. 现在,等待片刻,直到出现Windows 完成请求的更改(Windows completed the requested changes)提示,然后单击关闭(Close)。
6. 最后,重新启动 PC(restart the PC )以使更改生效。
另请阅读:(Also Read:) 修复选择超过 15 个文件时缺少的上下文菜单项(Fix Context Menu Items Missing when more than 15 Files are Selected)
方法6:修复系统文件(Method 6: Repair System Files)
有时,由于恶意软件攻击、不当关机、不完整(malware attacks, improper shutdown, incomplete Windows update installations)的 Windows 更新安装等,一些系统文件可能会损坏。磁盘驱动器错误会影响处理器的完整性。因此,运行系统文件检查器 ( SFC ) 和部署映像服务和管理 ( DISM ) 扫描是修复错误所必需的。阅读我们关于如何在 Windows 10 上修复系统文件(How to Repair System Files on Windows 10)的指南,并按照说明的步骤修复所有损坏的文件。
方法 7:运行恶意软件扫描(Method 7: Run Malware Scan)
您的设备或外部硬盘驱动器上的小病毒感染可能会导致此错误提示。即使使用SFC和DISM命令扫描 PC 并不能解决问题,您也可以尝试完整的恶意软件扫描。阅读我们的指南,了解如何在 Windows 10 中从您的 PC 中删除恶意软件(How to Remove Malware from your PC in Windows 10)。
方法 8:卸载最近的更新(Method 8: Uninstall Recent Updates)
Windows 10 PC 上任何以前不兼容的更新都可能导致此错误。因此(Hence),建议您卸载计算机上安装的最新更新以解决此错误。做这个任务很容易,步骤演示如下。
1. 按Windows 键(Windows key )并输入Control Panel,然后单击Open。
2.将查看方式(View by)设置为类别(Category)。
3. 现在,单击“程序(Programs )”菜单下的“卸载程序(Uninstall a program )”选项,如图所示。
4. 单击左窗格中的查看已安装更新(View installed updates ),如图所示。
5. 现在,通过参考安装(Installed On the )日期并单击卸载(Uninstall )选项来搜索并选择最新更新,如下所示。
6. 最后,确认任何提示并重新启动电脑(restart the PC)。
另请阅读:(Also Read:) 修复 0x80004002:Windows 10 不支持此类接口(Fix 0x80004002: No Such Interface Supported on Windows 10)
方法 9:删除启动器注册表值(如果适用)(Method 9: Delete Launcher Registry Value (If Applicable))
一些用户报告在尝试通过Ubisoft启动(Ubisoft)Uplay时出现未处理的 win32 异常。这可以通过注册表编辑器删除启动器键来解决。按照下面给出的步骤执行相同的操作。
1. 同时按Windows + R keys打开运行对话框(Run dialog box)。
2. 键入regedit 并按Enter 键(Enter)打开注册表编辑器(Registry Editor)。
3.在提示中单击是。(Yes)
4. 在注册表编辑器窗口(Registry Editor window)中,导航到以下位置。
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Ubisoft
5. 现在,右键单击启动器(Launcher)键并选择删除(Delete)选项。
6. 最后,关闭注册表(close)编辑器(Registry Editor)并重新启动(reboot) PC(the PC)以使更改生效。
如果启动器是问题背后的原因,则应用程序中的组件中发生未处理的异常 Windows 10 错误将得到纠正。
方法 10:重置Internet Explorer(如果适用(Applicable))
尝试在系统上打开Internet Explorer(Internet Explorer)时,通常会遇到应用程序错误中发生的未处理异常。要修复它,请按照以下说明在其属性窗口中重置Internet Explorer 。
1. 同时按Windows + R keys打开运行对话框。(Run dialog box.)
2.在运行(Run)提示符下键入(prompt)inetcpl.cpl ,然后按 Enter(Enter)打开Internet 属性(Internet Properties)窗口。
3. 切换到高级(Advanced)选项卡。
4. 单击突出显示的重置(Reset)按钮以重置Internet 属性(Internet Properties)窗口中的应用程序。
5. 在“重置 Internet Explorer 设置”(Reset Internet Explorer Settings)窗口中,选中“删除个人设置(Delete personal settings)”选项框,然后单击“重置(Reset)” 。
6.在提示中单击关闭。(Close)
7. 现在,重新启动(restart) 您的 PC(your PC)并重新启动Internet Explorer。
另请阅读:(Also Read:) 修复 Windows 10 中缺少的 COMDLG32.OCX(Fix COMDLG32.OCX Missing in Windows 10)
方法11:开启.Net Framework(Method 11: Turn On .Net Framework)
有时,当前的Windows .Net框架可能会损坏。因此,您的应用程序中可能发生了错误消息未处理异常。因此(Therefore),请确保将 .Net Framework升级到最新版本。为此,请执行给出的说明。
1.从Windows 搜索(Windows Search)栏打开控制面板。(Control Panel)
2.将查看方式(View by)设置为类别(Category)。选择程序(Programs)选项。
3. 现在,单击“程序和功能(Programs and Features)”部分下的“打开和关闭 Windows 功能”(Turn Windows features on and off)选项。
4. 在Windows Features窗口中,勾选.NET Framework 4.8 Advanced Series选项并点击OK。
注意:(Note:)如果.NET Framework 4.8 高级系列(Advanced Series)已启用,请通过取消选中该框来修复它。然后,重新启动(reboot)系统并重新启用 . NET Framework 4.8 高级系列(NET Framework 4.8 Advanced Series). 再次,重新启动(restart)计算机。
5. 最后,重启你的电脑(restart your PC)。
方法 12:禁用脚本调试并删除注册表项(如果适用)(Method 12: Disable Script Debugging and Remove Registry Keys (If Applicable))
如果启用了脚本调试并且注册表已损坏数据,则可能会弹出错误消息,尤其是Internet Explorer应用程序。因此(Therefore),请按照以下步骤禁用脚本调试并删除关联的注册表项。
1. 同时按Windows + R keys打开运行(Run )对话框。
2.输入inetcpl.cpl 并按Enter打开Internet 属性(Internet Properties)。
3. 切换到高级(Advanced)选项卡。
4. 找到并选中浏览器部分下的(Browser)禁用脚本调试 (Internet Explorer)(Disable script debugging (Internet Explorer))框。
5. 选择应用(Apply),然后单击确定(OK)保存所做的更改。
6、修改完成后,同时按下Windows + R 键(keys),打开运行(Run)对话框。
7. 键入regedit 并按Enter 键(Enter key)启动注册表编辑器(Registry Editor)。
8.在提示中单击是。(Yes)
9. 在注册表编辑器(Registry Editor)窗口中,导航到以下位置。
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug
注 1:(Note 1:)这些插图用于 64 位机器。
注意 2:(Note 2:)如果您使用的是 32 位机器,请导航到以下路径:
HKEY_LOCAL_MACHINE\ Microsoft\Windows NT\CurrentVersion\AeDebug
10. 右键单击 Debugger键并从上下文菜单中选择Delete 。
11. 删除密钥后,导航到以下位置:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework
注意:(Note:)如果您使用的是 32 位计算机,请导航到以下路径:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\
12. 现在,右键单击DbgManagedDebugger键并从上下文菜单中选择删除。(Delete)
13. 关闭注册表编辑器(Registry Editor )窗口并重新启动(reboot) 您的 PC(your PC)。
另请阅读:(Also Read:) 修复 Active Directory 域服务当前不可用(Fix The Active Directory Domain Services is Currently Unavailable)
方法 13:执行干净启动(Method 13: Perform Clean Boot)
有时第三方应用程序会干扰并在Windows中创建冲突环境。这种故障排除方法可能对您有利,并找出是否有任何第三方程序阻碍并导致错误。阅读我们关于如何在 Windows 10 中执行干净启动(How to Perform Clean Boot in Windows 10)的指南以执行相同的操作。
以安全模式启动计算机后,检查问题是否仍然存在。如果是这样,请卸载您添加到系统中的任何最新程序或应用程序。
方法 14:重置电脑(Method 14: Reset PC)
不过,如果您在 Windows 10 PC 上遇到此问题,最后的选择是重新安装系统文件。这可以通过一个名为Clean install的过程来实现。它会清除以前的操作系统、(System)存储在程序、设置和所有个人文件中的数据。并且将安装一个新的操作系统并安装所有更新。但是,您可以在不丢失任何数据的情况下重置Windows 10 。请按照我们关于如何在不丢失数据的情况下重置 Windows 10(How to Reset Windows 10 Without Losing Data)的指南进行操作。
在您的 PC 上安装修复程序后,您的操作系统将更新到其最新版本。
受到推崇的:(Recommended:)
我们希望本文对您有所帮助,并且您已学会修复Windows 10中的应用程序中发生未处理的异常(unhandled exception has occurred in your application)。让我们知道哪种方法最适合您。如有任何疑问或建议,请随时通过下面给出的评论部分与我们联系。
Fix Unhandled Exception Has Occurred in Your Application on Windows 10
Are yоu struggling with an еrror messagе unhandled exception has occurred in your applicаtion? If yes, this article will guide you to find а potential fix for this problem. Τhis error usually happеns when you try to launch an application built earlier in Visual Studio. Often, these error instances appeаr mostly in applications related to Uplay, Internet Explorer, and games specially made for the older version of Windows. This issue can be fixed easily by trying out the methods given below.
How to Fix Unhandled Exception Has Occurred in Your Application on Windows 10
Before working out the methods, understand the reasons behind this unhandled exception has occurred in a component in your application on Windows 10:
- Third-party antivirus program may hinder some applications functioning for protection.
- Presence of corrupt system files.
- If script debugging is enabled, then the error possibility is high.
- Violation of MSVCR92.DLL.
- If Windows, apps, and .Net Framework updates are outdated.
- Absence of .Net Framework for apps built in the older version.
Method 1: Update Windows
The common reason behind the error an unhandled win32 exception occurred is when there was an access violation in MSVCR92.DLL responsible for stopping the application functioning and calling the strncpy function. The foremost method recommended to resolve this issue is to update your Windows operating system if it is outdated. Microsoft is already aware of this issue and provided the fix via its latest update. Therefore, ensure the Windows OS is updated to date. Read or guide on What is Windows to know more about the Windows Update Process. To update Windows follow our guide to download and install Windows 10 latest update.
Once all updates are done, reboot your system. Launch the application where the unhandled exception has occurred in a component in your application Windows 10 error previously prevailed and check if it is fixed.
Method 2: Update Apps
It is necessary to keep apps up to date. Updating process always ensures to prevent any bugs being present earlier. Thus, follow the below steps to update apps.
1. Press the Windows key, type Microsoft store, and click on Open.
2. Click on the three horizontal dots icon present in the top right corner of the Microsoft Store display screen page.
3. Select the Downloads and updates option in the drop-down menu.
4. Click on the Get updates button to download the pending updates for all apps relevant to Microsoft Store.
5. Once updated, reboot your PC.
Also Read: How to Fix StartupCheckLibrary.dll Missing Error
Method 3: Run Windows Store Apps Troubleshooter
All the problems related to Microsoft Apps will be fixed by running a Windows Store Apps troubleshooter. This would also resolve this unhandled exception error. Here are a few instructions to run the network troubleshooter on Windows 10 PC.
1. Press the Windows + I keys simultaneously to open Settings.
2. Select the Update & Security setting.
3. Go to the Troubleshoot menu from the left pane.
4. Click on Windows Store Apps and select the Run the troubleshooter button.
5. Follow the on-screen instructions to finish the troubleshooting process.
Method 4: Disable Third-Party Antivirus Temporarily (If Applicable)
The third-party antivirus could cause hindrance to some applications and create the error popup unhandled exception has occurred in your application. Therefore, disable the third-party antivirus application. Read our guide on How to Disable Antivirus Temporarily on Windows 10 and follow the instructions to disable your Antivirus program temporarily on your PC.
If the issue has been resolved, ensure to re-enable the antivirus program. Having your antivirus turned on is always recommended since your device without a security suite is always a threat.
Method 5: Turn On .Net Framework
Some old applications and programs need .Net Framework to function without any error. Therefore, turn on the .Net Framework by implementing the steps given below.
1. Press Windows + R keys simultaneously to open the Run dialog box.
2. Type optionalfeatures and hit Enter key to launch Windows Features.
3. Expand and check all the option under .NET Framework 3.5 (includes .NET 2.0 and 3.0) box. Then, click OK.
4. Click on Let Windows Update download the files for you.
5. Now, wait for a few moments till the Windows completed the requested changes prompt appears and then click Close.
6. Finally, restart the PC for the changes to be effective.
Also Read: Fix Context Menu Items Missing when more than 15 Files are Selected
Method 6: Repair System Files
Sometimes, a few system files might be corrupt because of malware attacks, improper shutdown, incomplete Windows update installations, etc. The disk drive error affects the integrity of the processor. Therefore, running a system file checker (SFC) and deployment image servicing and management (DISM) scan is necessary to repair the errors. Read our guide on How to Repair System Files on Windows 10 and follow the steps as instructed to repair all your corrupt files.
Method 7: Run Malware Scan
A small virus infection on your device or external hard drive can cause this error prompt. Even if scanning the PC with SFC and DISM commands does not give you a fix, you can try a complete malware scan. Read our guide on How to Remove Malware from your PC in Windows 10.
Method 8: Uninstall Recent Updates
Any previous incompatible updates on your Windows 10 PC might cause this error. Hence, you are advised to uninstall the recent updates installed on your computer to resolve this error. It is very easy to do the task, and the steps are demonstrated as follows.
1. Hit the Windows key and type Control Panel, then click on Open.
2. Set the View by as Category.
3. Now, click on Uninstall a program option under the Programs menu as depicted.
4. Click on View installed updates in the left pane as shown.
5. Now, search and select the most recent update by referring to Installed On the date and clicking on Uninstall option as shown below.
6. Finally, confirm any prompt and restart the PC.
Also Read: Fix 0x80004002: No Such Interface Supported on Windows 10
Method 9: Delete Launcher Registry Value (If Applicable)
Some users reported that an unhandled win32 exception occurred while trying to launch Uplay via Ubisoft. This can be resolved by deleting the launcher key via the registry editor. Follow the steps given below to do the same.
1. Press Windows + R keys simultaneously to open the Run dialog box.
2. Type regedit and hit Enter to open Registry Editor.
3. Click on Yes in the prompt.
4. In the Registry Editor window, navigate to the following location.
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Ubisoft
5. Now, right-click the Launcher key and select the Delete option.
6. Finally, close the Registry Editor and reboot the PC for the changes to be effective.
The unhandled exception has occurred in a component in your application Windows 10 error will be rectified if the launcher is the reason behind the issue.
Method 10: Reset Internet Explorer (If Applicable)
It is common to face an unhandled exception that has occurred in your application error while trying to open Internet Explorer on your system. To fix it, reset the Internet Explorer in its properties window by following the instructions given below.
1. Press Windows + R keys simultaneously to open the Run dialog box.
2. Type inetcpl.cpl on the Run prompt and hit Enter to open the Internet Properties window.
3. Switch to the Advanced tab.
4. Click on the Reset button as highlighted to reset the application in the Internet Properties window.
5. On the Reset Internet Explorer Settings window, check the Delete personal settings option box and click on Reset.
6. Click on Close in the prompt.
7. Now, restart your PC and relaunch Internet Explorer.
Also Read: Fix COMDLG32.OCX Missing in Windows 10
Method 11: Turn On .Net Framework
Sometimes the present Windows .Net framework may get corrupt. Due to this, the error message unhandled exception may have occurred in your application. Therefore, ensure to upgrade the .Net Framework to its latest version. To do so, implement the instructions given.
1. Open Control Panel from Windows Search bar.
2. Set the View by as Category. Select the Programs option.
3. Now, click on the Turn Windows features on and off option under the Programs and Features section.
4. In the Windows Features window, check the .NET Framework 4.8 Advanced Series option and click OK.
Note: If the .NET Framework 4.8 Advanced Series is enabled already, repair it by unchecking the box. Then, reboot your system and re-enable the .NET Framework 4.8 Advanced Series. Once again, restart your computer.
5. Finally, restart your PC.
Method 12: Disable Script Debugging and Remove Registry Keys (If Applicable)
If the script debugging is enabled and the registry has corrupted data, then an error message popup may occur, especially with the Internet Explorer application. Therefore, disable the script debugging and remove the associated registry keys by following the steps given below.
1. Press Windows + R keys simultaneously to open the Run dialog box.
2. Type inetcpl.cpl and hit Enter to open the Internet Properties.
3. Switch to the Advanced tab.
4. Locate and check the Disable script debugging (Internet Explorer) box under the Browser section.
5. Select Apply and then click OK to save the changes made.
6. After the modification is done, press the Windows + R keys simultaneously to open the Run dialog box.
7. Type regedit and hit Enter key to launch Registry Editor.
8. Click on Yes in the prompt.
9. In the Registry Editor window, navigate to the following location.
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug
Note 1: These illustrations are used on a 64-bit machine.
Note 2: If you are using a 32-bit machine, then navigate to the following path:
HKEY_LOCAL_MACHINE\ Microsoft\Windows NT\CurrentVersion\AeDebug
10. Right-click on the Debugger key and select Delete from the context menu.
11. After deleting the key, navigate to the following location:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework
Note: If you are using a 32-bit machine, then navigate to the following path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\
12. Now, right-click on the DbgManagedDebugger key and select Delete from the context menu.
13. Close the Registry Editor window and reboot your PC.
Also Read: Fix The Active Directory Domain Services is Currently Unavailable
Method 13: Perform Clean Boot
Sometimes the third-party applications interfere and create a conflicting environment in Windows. This troubleshooting method could work out in your favor and find if any third-party program is behind the hindrance and causing the error. Read our guide on How to Perform Clean Boot in Windows 10 to do the same.
Once you have booted your computer in safe mode, check if the issue persists. If so, uninstall any of the latest programs or applications you have added to your system.
Method 14: Reset PC
Still, if you face this issue on your Windows 10 PC, the last choice is to reinstall the system files. This is possible by a process called Clean install. It wipes out the previous Operating System, the data stored in programs, settings, and all of your personal files. And a new OS will be installed with all the updates installed. Yet, you can reset Windows 10 without losing any data. Follow our guide on How to Reset Windows 10 Without Losing Data.
Once you have repair installed on your PC, your Operating System will be updated to its latest version.
Recommended:
We hope that this article was helpful and you have learned to fix unhandled exception has occurred in your application in Windows 10. Let us know which method worked the best for you. Please feel free to reach out to us for any queries or suggestions via the comment section given below.