gpt4 book ai didi

c# - 无法启动应用程序,KernelBase.dll 错误

转载 作者:可可西里 更新时间:2023-11-01 09:28:29 25 4
gpt4 key购买 nike

我在 Windows 7/8 x64 上运行应用程序时遇到问题,但我可以在 Windows 10 x64 上启动。在 Visual Studio 中,平台目标设置为任何 CPU,但它对我没有帮助。我在我的开发机器操作系统上构建的应用程序:Windows 10 x64

Windows 日志

应用程序错误:

Faulting application name: Training charts.exe, version: 0.4.3.18, time stamp: 0x55f2b40f
Faulting module name: KERNELBASE.dll, version: 6.1.7601.18869, time stamp: 0x556366fd
Exception code: 0xe0434352
Fault offset: 0x000000000000b3dd
Faulting process id: 0x5f0
Faulting application start time: 0x01d0ec8a5e92040f
Faulting application path: C:\Program Files (x86)\Training Charts\Training charts.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 9ccd617f-587d-11e5-ae3d-000c29c8cb67

.NET 运行时:

Application: Training charts.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
Stack:
at MS.Internal.Resources.ResourceManagerWrapper.GetStream(System.String)
at MS.Internal.AppModel.ResourcePart.EnsureResourceLocationSet()
at MS.Internal.AppModel.ResourcePart.GetContentTypeCore()
at System.IO.Packaging.PackagePart.get_ContentType()
at System.Windows.Application.LoadComponent(System.Object, System.Uri)
at Training_charts.App.InitializeComponent()
at Training_charts.App.Main()

你有什么办法解决这个问题吗?应用程序需要 .NET 4.5

最佳答案

就我而言,当我在更新 .NET Framework 版本后部署我的应用程序时,我忘记了部署配置文件。因此,正在使用指向错误运行时的旧配置文件。具体这部分:

<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup>

关于c# - 无法启动应用程序,KernelBase.dll 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32523339/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com