运行软件提示.NET Framework报错,提示以下信息

Shen Li 0 信誉分
2025-04-24T04:10:37.02+00:00

下面是报错的详细信息

有关调用实时(JIT)调试而不是此对话框的详细信息,

请参见此消息的结尾。

************** 异常文本 **************

System.Configuration.ConfigurationErrorsException: 配置系统未能初始化 ---> System.Configuration.ConfigurationErrorsException: 无法识别的配置节 startup。 (D:\APP\OMT\OMT上位机软件V2.1\Radio.exe.Config line 3)

在 System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)

在 System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)

在 System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()

在 System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)

--- 内部异常堆栈跟踪的结尾 ---

在 System.Configuration.ConfigurationManager.PrepareConfigSystem()

在 System.Configuration.ConfigurationManager.GetSection(String sectionName)

在 System.Configuration.ConfigurationManager.get_AppSettings()

在 RadioCore.WebConfig.get_InsideParam() 位置 D:\MySolution\OMT_Radio\Solution_Fody\RadioCore\WebConfig.cs:行号 444

在 RadioApp.Main.Main_Load(Object sender, EventArgs e)

在 System.Windows.Forms.Form.OnLoad(EventArgs e)

在 System.Windows.Forms.Form.OnCreateControl()

在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

在 System.Windows.Forms.Control.CreateControl()

在 System.Windows.Forms.Control.WmShowWindow(Message& m)

在 System.Windows.Forms.Control.WndProc(Message& m)

在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)

在 System.Windows.Forms.ContainerControl.WndProc(Message& m)

在 System.Windows.Forms.Form.WmShowWindow(Message& m)

在 System.Windows.Forms.Form.WndProc(Message& m)

在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** 已加载的程序集 **************

mscorlib

程序集版本:4.0.0.0

Win32 版本:4.8.9195.0 built by: NET481REL1LAST_B

基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

Radio

程序集版本:2.1.3.0

Win32 版本:2.1.3.0

基本代码:file:///D:/APP/OMT/OMT%E4%B8%8A%E4%BD%8D%E6%9C%BA%E8%BD%AF%E4%BB%B6V2.1/Radio.exe

System.Windows.Forms

程序集版本:4.0.0.0

Win32 版本:4.8.9195.0 built by: NET481REL1LAST_B

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System

程序集版本:4.0.0.0

Win32 版本:4.8.9220.0 built by: NET481REL1LAST_C

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing

程序集版本:4.0.0.0

Win32 版本:4.8.9037.0 built by: NET481REL1

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration

程序集版本:4.0.0.0

Win32 版本:4.8.9037.0 built by: NET481REL1

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core

程序集版本:4.0.0.0

Win32 版本:4.8.9220.0 built by: NET481REL1LAST_C

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xml

程序集版本:4.0.0.0

Win32 版本:4.8.9037.0 built by: NET481REL1

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Configuration.resources

程序集版本:4.0.0.0

Win32 版本:4.8.9037.0 built by: NET481REL1

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration.resources/v4.0_4.0.0.0_zh-Hans_b03f5f7f11d50a3a/System.Configuration.resources.dll

Accessibility

程序集版本:4.0.0.0

Win32 版本:4.8.9037.0 built by: NET481REL1

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

CSkin

程序集版本:16.1.14.3

Win32 版本:16.1.14.3

基本代码:file:///C:/Users/ThinkPad/AppData/Local/Temp/Costura/027950BA488774ADEED08A18B8D1B9C7/32/cskin.dll

System.Windows.Forms.resources

程序集版本:4.0.0.0

Win32 版本:4.8.9037.0 built by: NET481REL1

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dll

log4net

程序集版本:2.0.8.0

Win32 版本:2.0.8.0

基本代码:file:///C:/Users/ThinkPad/AppData/Local/Temp/Costura/027950BA488774ADEED08A18B8D1B9C7/32/log4net.dll

mscorlib.resources

程序集版本:4.0.0.0

Win32 版本:4.8.9037.0 built by: NET481REL1

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll

RadioCore

程序集版本:1.0.0.0

Win32 版本:2.1.3.0

基本代码:file:///D:/APP/OMT/OMT%E4%B8%8A%E4%BD%8D%E6%9C%BA%E8%BD%AF%E4%BB%B6V2.1/Radio.exe

RadioLib

程序集版本:1.0.0.0

Win32 版本:2.1.3.0

基本代码:file:///D:/APP/OMT/OMT%E4%B8%8A%E4%BD%8D%E6%9C%BA%E8%BD%AF%E4%BB%B6V2.1/Radio.exe

************** JIT 调试 **************

要启用实时(JIT)调试,

该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置

jitDebugging 值。

编译应用程序时还必须启用

调试。

例如:

<configuration>

<system.windows.forms jitDebugging="true" />

</configuration>

启用 JIT 调试后,任何未经处理的异常

都将被发送到在此计算机上注册的 JIT 调试程序,

而不是由此对话框处理。

.NET 运行时
.NET 运行时
.NET: 基于 .NET 软件框架的 Microsoft 技术。运行时: 运行未编译为机器语言的应用所需的环境。
67 个问题
0 个注释 无注释
{count} 票

你的答案

问题作者可以将答案标记为“接受的答案”,这有助于用户了解已解决作者问题的答案。