gfritz74
Goto Top

MS.NET Framework unbehandelte Ausnahme

Hallo zusammen,

Habe mir Script geschrieben welches das Reboot Verhalten ändern soll.
Leider läuft mir das Ding zwischendurch immer in einen Framework Fehler.

fehler

Hier ist der komplette Code :

Hier sind die Details zur Meldung:
Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

Ausnahmetext
System.Management.Automation.RuntimeException: Die Eigenschaft "Text" wurde für dieses Objekt nicht gefunden. Vergewissern Sie sich, dass die Eigenschaft vorhanden ist und festgelegt werden kann.
bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
bei <ScriptBlock>(Closure , FunctionContext )
bei System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(ScriptBlockClauseToInvoke clauseToInvoke, Boolean createLocalScope, Dictionary`2 functionsToDefine, List`1 variablesToDefine, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object args)
bei System.Management.Automation.ScriptBlock.<>c__DisplayClass57_0.<InvokeWithPipe>b__0()
bei System.Management.Automation.Runspaces.RunspaceBase.RunActionIfNoRunningPipelinesWithThreadCheck(Action action)
bei System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Boolean propagateAllExceptionsToTop, List`1 variablesToDefine, Dictionary`2 functionsToDefine, Object args)
bei System.Management.Automation.ScriptBlock.InvokeAsDelegateHelper(Object dollarUnder, Object dollarThis, Object args)
bei System.Windows.Forms.Timer.OnTick(EventArgs e)
bei System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


Geladene Assemblys
mscorlib
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4400.0 built by: NET48REL1LAST_C.
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll.
powershell_ise
Assembly-Version: 3.0.0.0.
Win32-Version: 10.0.19041.1 (WinBuild.160101.0800).
CodeBase: file:///C:/Windows/system32/WindowsPowerShell/v1.0/PowerShell_ISE.exe.
Microsoft.PowerShell.ISECommon
Assembly-Version: 3.0.0.0.
Win32-Version: 10.0.19041.1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.PowerShell.ISECommon/v4.0_3.0.0.0__31bf3856ad364e35/Microsoft.PowerShell.ISECommon.dll.
System
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4360.0 built by: NET48REL1LAST_C.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
System.Windows.Forms
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4400.0 built by: NET48REL1LAST_C.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
System.Drawing
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4390.0 built by: NET48REL1LAST_C.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
System.Management.Automation
Assembly-Version: 3.0.0.0.
Win32-Version: 10.0.19041.1151.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management.Automation/v4.0_3.0.0.0__31bf3856ad364e35/System.Management.Automation.dll.
System.Core
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4390.0 built by: NET48REL1LAST_C.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
System.Configuration
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4190.0 built by: NET48REL1LAST_B.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
System.Xml
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0 built by: NET48REL1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
powershell_ise.resources
Assembly-Version: 3.0.0.0.
Win32-Version: 10.0.19041.1.
CodeBase: file:///C:/Windows/system32/WindowsPowerShell/v1.0/de/powershell_ise.resources.DLL.
Microsoft.PowerShell.GPowerShell
Assembly-Version: 3.0.0.0.
Win32-Version: 10.0.19041.1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.PowerShell.GPowerShell/v4.0_3.0.0.0__31bf3856ad364e35/Microsoft.PowerShell.GPowerShell.dll.
System.ComponentModel.Composition
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll.
Microsoft.PowerShell.Editor
Assembly-Version: 3.0.0.0.
Win32-Version: 10.0.19041.1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.PowerShell.Editor/v4.0_3.0.0.0__31bf3856ad364e35/Microsoft.PowerShell.Editor.dll.
WindowsBase
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4390.0 built by: NET48REL1LAST_C.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll.
PresentationFramework
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4390.0.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll.
PresentationCore
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4390.0 built by: NET48REL1LAST_C.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll.
System.Xaml
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4390.0 built by: NET48REL1LAST_C.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll.
UIAutomationProvider
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4390.0 built by: NET48REL1LAST_C.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationProvider/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationProvider.dll.
UIAutomationTypes
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4390.0 built by: NET48REL1LAST_C.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll.
System.Runtime.Serialization
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4250.0 built by: NET48REL1LAST_C.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll.
Accessibility
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0 built by: NET48REL1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll.
MetadataViewProxies_cea4a881-3c19-4633-b0bd-a4401ef78cd7
Assembly-Version: 0.0.0.0.
Win32-Version: 4.8.4084.0.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll.
Microsoft.PowerShell.GPowerShell.resources
Assembly-Version: 3.0.0.0.
Win32-Version: 10.0.19041.1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.PowerShell.GPowerShell.resources/v4.0_3.0.0.0_de_31bf3856ad364e35/Microsoft.PowerShell.GPowerShell.resources.dll.
System.Management
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0 built by: NET48REL1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll.
System.DirectoryServices
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0 built by: NET48REL1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.DirectoryServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll.
Microsoft.Management.Infrastructure
Assembly-Version: 1.0.0.0.
Win32-Version: 10.0.19041.1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Management.Infrastructure/v4.0_1.0.0.0__31bf3856ad364e35/Microsoft.Management.Infrastructure.dll.
PresentationCore.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0 built by: NET48REL1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationCore.resources/v4.0_4.0.0.0_de_31bf3856ad364e35/PresentationCore.resources.dll.
PresentationFramework.Aero2
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0 built by: NET48REL1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero2/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero2.dll.
PresentationFramework-SystemXml
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemXml/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemXml.dll.
System.Management.Automation.resources
Assembly-Version: 3.0.0.0.
Win32-Version: 10.0.19041.1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management.Automation.resources/v4.0_3.0.0.0_de_31bf3856ad364e35/System.Management.Automation.resources.dll.
mscorlib.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0 built by: NET48REL1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
System.Data
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4270.0 built by: NET48REL1LAST_C.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll.
Anonymously Hosted DynamicMethods Assembly
Assembly-Version: 0.0.0.0.
Win32-Version: 4.8.4400.0 built by: NET48REL1LAST_C.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll.
Microsoft.PowerShell.Security
Assembly-Version: 3.0.0.0.
Win32-Version: 10.0.19041.1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.PowerShell.Security/v4.0_3.0.0.0__31bf3856ad364e35/Microsoft.PowerShell.Security.dll.
System.Transactions
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0 built by: NET48REL1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll.
System.Numerics
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0 built by: NET48REL1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll.
Microsoft.PowerShell.GraphicalHost
Assembly-Version: 3.0.0.0.
Win32-Version: 10.0.19041.1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.PowerShell.GraphicalHost/v4.0_3.0.0.0__31bf3856ad364e35/Microsoft.PowerShell.GraphicalHost.dll.
Microsoft.PowerShell.GraphicalHost.resources
Assembly-Version: 3.0.0.0.
Win32-Version: 10.0.19041.1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.PowerShell.GraphicalHost.resources/v4.0_3.0.0.0_de_31bf3856ad364e35/Microsoft.PowerShell.GraphicalHost.resources.dll.
Microsoft.GeneratedCode
Assembly-Version: 1.0.0.0.
Win32-Version: 4.8.4084.0 built by: NET48REL1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
PresentationFramework.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.resources/v4.0_4.0.0.0_de_31bf3856ad364e35/PresentationFramework.resources.dll.
PresentationFramework-SystemData
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4390.0.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemData/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemData.dll.
PresentationFramework-SystemCore
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemCore/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemCore.dll.
Windows.UI
Assembly-Version: 255.255.255.255.
Win32-Version: 10.0.10011.16384.
CodeBase: file:///C:/Windows/system32/WinMetadata/Windows.UI.winmd.
Windows.Foundation
Assembly-Version: 255.255.255.255.
Win32-Version: 10.0.10011.16384.
CodeBase: file:///C:/Windows/system32/WinMetadata/Windows.Foundation.winmd.
System.Runtime.InteropServices.WindowsRuntime
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.InteropServices.WindowsRuntime/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.InteropServices.WindowsRuntime.dll.
System.Runtime.WindowsRuntime
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0 built by: NET48REL1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.WindowsRuntime/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.WindowsRuntime.dll.
Microsoft.PowerShell.Commands.Utility
Assembly-Version: 3.0.0.0.
Win32-Version: 10.0.19041.804.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.PowerShell.Commands.Utility/v4.0_3.0.0.0__31bf3856ad364e35/Microsoft.PowerShell.Commands.Utility.dll.
System.Configuration.Install
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0 built by: NET48REL1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration.Install/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.Install.dll.
Microsoft.PowerShell.Commands.Utility.resources
Assembly-Version: 3.0.0.0.
Win32-Version: 10.0.19041.804.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.PowerShell.Commands.Utility.resources/v4.0_3.0.0.0_de_31bf3856ad364e35/Microsoft.PowerShell.Commands.Utility.resources.dll.
Microsoft.VisualBasic
Assembly-Version: 10.0.0.0.
Win32-Version: 14.8.4084.0 built by: NET48REL1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll.
Microsoft.PowerShell.Commands.Management
Assembly-Version: 3.0.0.0.
Win32-Version: 10.0.19041.1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.PowerShell.Commands.Management/v4.0_3.0.0.0__31bf3856ad364e35/Microsoft.PowerShell.Commands.Management.dll.
System.Windows.Forms.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.8.4084.0 built by: NET48REL1.
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.

JIT-Debuggen
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

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

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.

Hat jemand ne Idee wodran das liegt und wie ich das beheben kann.
Viele Grüße
gfritz74

Content-Key: 1262105123

Url: https://administrator.de/contentid/1262105123

Printed on: March 28, 2023 at 16:03 o'clock

Member: gfritz74
Solution gfritz74 Sep 16, 2021 updated at 08:37:01 (UTC)
Goto Top
Habe den Teil Message rausgenommen. Da lag es wohl dran. Bisher ist der Fehler nicht mehr aufgetreten.