您好,
如果 cmd 可以正常使用的话,请您在管理员 cmd 中执行上述的四条修复命令,修复完毕后重启设备,看一下问题能否得到缓解。
希望此条回复可以帮助到您。
有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。
************** 异常文本 **************
System.Configuration.ConfigurationErrorsException: 配置节“connectionStrings”具有意外的声明。
在 System.Configuration.ConfigurationManager.get_ConnectionStrings()
在 System.Configuration.PrivilegedConfigurationManager.get_ConnectionStrings()
在 System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)
在 System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
在 System.Configuration.SettingsBase.SetPropertyValueByName(String propertyName, Object propertyValue)
在 System.Configuration.SettingsBase.set_Item(String propertyName, Object value)
在 System.Configuration.ApplicationSettingsBase.set_Item(String propertyName, Object value)
在 MSI.SCM.SCMII.SetECOtoEC()
在 MSI.SCM.SCMII.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** 已加载的程序集 **************
mscorlib
程序集版本:4.0.0.0
Win32 版本:4.8.4075.0 built by: NET48REL1LAST
基本代码:file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
SCM
程序集版本:13.16.10073.0
Win32 版本:13.016.10073.0
基本代码:file:///C:/Program%20Files%20(x86)/SCM/SCM.exe
System.Configuration
程序集版本:4.0.0.0
Win32 版本:4.8.3752.0 built by: NET48REL1
基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System
程序集版本:4.0.0.0
Win32 版本:4.8.4001.0 built by: NET48REL1LAST_C
基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
System.Core
程序集版本:4.0.0.0
Win32 版本:4.8.4110.0 built by: NET48REL1LAST_B
基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
System.Windows.Forms
程序集版本:4.0.0.0
Win32 版本:4.8.4042.0 built by: NET48REL1LAST_C
基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System.Drawing
程序集版本:4.0.0.0
Win32 版本:4.8.3752.0 built by: NET48REL1
基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.Xml
程序集版本:4.0.0.0
Win32 版本:4.8.3752.0 built by: NET48REL1
基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
WPFOSD
程序集版本:1.0.0.0
Win32 版本:1.0.0.0
基本代码:file:///C:/Program%20Files%20(x86)/SCM/WPFOSD.DLL
PresentationFramework
程序集版本:4.0.0.0
Win32 版本:4.8.4110.0
基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
WindowsBase
程序集版本:4.0.0.0
Win32 版本:4.8.4110.0 built by: NET48REL1LAST_B
基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
PresentationCore
程序集版本:4.0.0.0
Win32 版本:4.8.4110.0 built by: NET48REL1LAST_B
基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
System.Configuration.resources
程序集版本:4.0.0.0
Win32 版本:4.8.3752.0 built by: NET48REL1
基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration.resources/v4.0_4.0.0.0_zh-Hans_b03f5f7f11d50a3a/System.Configuration.resources.dll
System.Xaml
程序集版本:4.0.0.0
Win32 版本:4.8.4110.0 built by: NET48REL1LAST_B
基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
System.Management
程序集版本:4.0.0.0
Win32 版本:4.8.3752.0 built by: NET48REL1
基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
PresentationFramework.Aero2
程序集版本:4.0.0.0
Win32 版本:4.8.3752.0 built by: NET48REL1
基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero2/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero2.dll
UIAutomationTypes
程序集版本:4.0.0.0
Win32 版本:4.8.4110.0 built by: NET48REL1LAST_B
基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll
UIAutomationProvider
程序集版本:4.0.0.0
Win32 版本:4.8.4110.0 built by: NET48REL1LAST_B
基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/UIAutomationProvider/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationProvider.dll
MSIECO
程序集版本:1.0.1308.2003
Win32 版本:1.0.1308.2003
基本代码:file:///C:/Program%20Files%20(x86)/SCM/MSIECO.DLL
System.Windows.Forms.resources
程序集版本:4.0.0.0
Win32 版本:4.8.3752.0 built by: NET48REL1
基本代码: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
mscorlib.resources
程序集版本:4.0.0.0
Win32 版本:4.8.3752.0 built by: NET48REL1
基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。
例如:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
启用 JIT 调试后,任何未经处理的异常
都将被发送到在此计算机上注册的 JIT 调试程序,
而不是由此对话框处理。
锁定的问题。 此问题已从 Microsoft 支持社区迁移。 你可投票决定它是否有用,但不能添加评论或回复,也不能关注问题。
您好,
如果 cmd 可以正常使用的话,请您在管理员 cmd 中执行上述的四条修复命令,修复完毕后重启设备,看一下问题能否得到缓解。
希望此条回复可以帮助到您。
您好,切换管理员账号也一样。Windows PowerShell (管理员)不能使用,但是cmd可以正常使用
您好,
如果 Windows PowerShell 也无法正常启动的话,麻烦您启动开始菜单,输入 “cmd”,右键以管理员身份运行,看一下 cmd 能否正常启动。
如果可以的话,请您在 cmd 中执行上条回复中的命令。如果仍然闪退的话,请您按 “Windows 徽标键+X”,启动 “Windows PowerShell(管理员)”,执行以下两条命令新建一个本地管理员账户:
net user User ****** /add (User 是新建的账户名,****** 是账户的密码,您可以自行调整此命令)
net localgroup administrators User /add (赋予该账号管理员权限,请将 User 改为上一条命令中新建的账户名)
启动开始菜单,点击当前的账户头像,登录新建的账户,看一下新账户下问题是否仍然存在。如果仍然存在的话,在新账户下启动 PowerShell 与 cmd,看一下能否正常运行并执行命令。
希望此条回复可以帮助到您。
您好,出现这个问题之后,Windows PowerShell (管理员) 点击伴随着闪退,无法正常使用。还有其他解决办法吗?
您好,欢迎询问 Microsoft Community,很高兴为您提供技术支持。
关于 “System.Configuration.ConfigurationErrorsException: 配置节 “connectionStrings” 具有意外的声明” 的问题,麻烦您按照下方的方案进行操作,看一下能否解决此问题。
按 “Windows 徽标键+X”,启动 “Windows PowerShell (管理员)”,依次执行以下命令:
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-image /RestoreHealth
sfc /SCANNOW
执行完毕后重启设备,看一下是否还会弹出这一错误提示框。
希望此条回复可以帮助到您。