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 :
Add-Type -AssemblyName System.Windows.Forms
Add-Type -a System.Windows.Forms
Add-Type -AssemblyName PresentationFramework

[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null  
[System.Reflection.Assembly]::LoadWithPartialName( "Microsoft.VisualBasic") | Out-Null  

Remove-Variable * -ErrorAction SilentlyContinue

# Bildschirmgröße ermitteln
$size = ([System.Windows.Forms.Screen]::AllScreens |? Primary).Bounds.Size
$global:sw = $size.Width
$global:sh = $size.Height
$Screen = [Windows.Forms.Screen]::PrimaryScreen.WorkingArea | Select Width,Height

#DayArray
#$Day1="0","4","7","10","13","16","19","22","25","28","31","34","37","40","43","46","49","52","55","58","61","64","67","70","73","76","79","82","85","88","91","94","97","100","103","106","109","112","115","118","121","124","127","130","133","136","139","142","145","148","151","154","157","160","163","166","169","172","175","178","181","184","187","190","193","196","199","202","205","208","211","214","217","220","223","226","229","232","235","238","241","244","247","250","253","256","259","262","265","268","271","274","277","280","283","286","289","292","295","298","301","304","307","310","313","316","319","322","325","328","331","334","337","340","343","346","349","352","355","358","361","364" 
#$Day2="2","5","8","11","14","17","20","23","26","29","32","35","38","41","44","47","50","53","56","59","62","65","68","71","74","77","80","83","86","89","92","95","98","101","104","107","110","113","116","119","122","125","128","131","134","137","140","143","146","149","152","155","158","161","164","167","170","173","176","179","182","185","188","191","194","197","200","203","206","209","212","215","218","221","224","227","230","233","236","239","242","245","248","251","254","257","260","263","266","269","272","275","278","281","284","287","290","293","296","299","302","305","308","311","314","317","320","323","326","329","332","335","338","341","344","347","350","353","356","359","362","365" 
#$Day3="3","6","9","12","15","18","21","24","27","30","33","36","39","42","45","48","51","54","57","60","63","66","69","72","75","78","81","84","87","90","93","96","99","102","105","108","111","114","117","120","123","126","129","132","135","138","141","144","147","150","153","156","159","162","165","168","171","174","177","180","183","186","189","192","195","198","201","204","207","210","213","216","219","222","225","228","231","234","237","240","243","246","249","252","255","258","261","264","267","270","273","276","279","282","285","288","291","294","297","300","303","306","309","312","315","318","321","324","327","330","333","336","339","342","345","348","351","354","357","360","363","366" 

#Prüfdatei
$Day1txt = "C:\Boottime\day1.txt"  
$Day2txt = "C:\Boottime\day2.txt"  
$Day3txt = "C:\Boottime\day3.txt"  
$Global:Day1txtExist=Test-Path $Day1txt
$Global:Day2txtExist=Test-Path $Day2txt
$Global:Day3txtExist=Test-Path $Day3txt


#Function prüfen ob Neustart erforderlich ist
function Test-PendingReboot{
 if (Get-ChildItem "HKLM:\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending" -EA Ignore) { return $false }  
 if (Get-Item "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired" -EA Ignore) { return $false }  
 if (Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager" -Name PendingFileRenameOperations -EA Ignore) { return $false }  
 try { 
   $util = [wmiclass]"\\.\root\ccm\clientsdk:CCM_ClientUtilities"  
   $status = $util.DetermineIfRebootPending()
   
   if(($status -ne $null) -and $status.RebootPending){
   
   }
 }catch{}


}



Function Message {

[cmdletbinding()]

Param (
[Parameter(Position=0,Mandatory,HelpMessage="Specify a display message")]  
[ValidateNotNullorEmpty()]
[string]$Message,
[ValidateSet("OkOnly","OkCancel","AbortRetryIgnore","YesNoCancel","YesNo","RetryCancel","Jetzt")]  
[string]$Button="OkOnly",  
[ValidateSet("Critical", "Question", "Exclamation", "Information")]  
[string]$Icon="Information",  
[string]$Title,
[switch]$NoPassthru
)

#load the necessary assembly
Try { 
    Add-Type -AssemblyName "Microsoft.VisualBasic" -ErrorAction Stop       
    #create the message box using the parameter values
    $returnValue = [microsoft.visualbasic.interaction]::Msgbox($message,"$button,$icon",$title)  
}
Catch {
    Write-Warning "Failed to add Microsoft.VisualBasic assembly or create the messagebox."  
    Write-Warning $error.Exception.Message
}
#do not write return value if -NoPassthru is called
if (-Not $NoPassthru) {
    Write-Output $returnValue
}

} #end function
function UpTime
{   
    (Get-WmiObject win32_operatingsystem -ComputerName localhost | select @{LABEL='LastBootUpTime';EXPRESSION={$_.ConverttoDateTime($_.lastbootuptime)}} | select -ExpandProperty lastbootuptime).ToString("dd/MM/yy") | out-file C:\Boottime\Uptime.txt   
    "{0:dd/MM/yyyy}" -f (get-date) | out-file C:\Boottime\Datum.txt   

    $Uptime = gc C:\Boottime\Uptime.txt 
    $Date = gc C:\Boottime\Datum.txt
    $global:DayValue = New-TimeSpan -Start $Uptime -End $Date
}


$TestPath = "C:\Boottime\"  
If (Test-Path $TestPath)
    {
    UpTime
    }
else
    {
    New-Item -Path $TestPath -ItemType Directory | Out-Null
    UpTime
    }

#Function Create-GetSchedTime
Function Create-GetSchedTime {   
    Param(   
    $SchedTime,
    [Double]$timerVal)
    $script:StartTime = (Get-Date).AddSeconds($TotalTime)
    $RestartDate = ((get-date).AddSeconds($TotalTime)).AddMinutes(-5)
    $RDate = (Get-Date $RestartDate -f 'dd.MM.yyyy') -replace "\.","/"      # 16/03/2016  
    $RTime = Get-Date $RestartDate -f 'HH:mm'                                    # 09:31        
}
Function MessageBox1 
{
        Add-Type -AssemblyName System.Windows.Forms
        Add-Type -a System.Windows.Forms
        Add-Type -AssemblyName PresentationFramework
        [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null  
        [System.Reflection.Assembly]::LoadWithPartialName( "Microsoft.VisualBasic") | Out-Null  
        message -Title "Computer Reboot Notification" -Message "Nach der Installation von Sicherheitsupdates ist ein `nNeustart des Computers zwingend erforderlich.`nBitte führen Sie diesen Zeitnah durch.`nVielen Dank ihr IT-Services Team" -Button OkOnly -Icon Critical  
        return $button
}

Function MessageBox2
{       
        Add-Type -AssemblyName System.Windows.Forms
        Add-Type -a System.Windows.Forms
        Add-Type -AssemblyName PresentationFramework
        [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null  
        [System.Reflection.Assembly]::LoadWithPartialName( "Microsoft.VisualBasic") | Out-Null  

        $ask=message -Title "Computer Reboot Notification" -Message "Nach der Installation von Sicherheitsupdates ist ein `nNeustart des Computers zwingend erforderlich.`nBitte führen Sie diesen Zeitnah durch oder `nklicken Sie auf Ja um den Computer jetzt neu zu starten.`nVielen Dank ihr IT-Services Team`n`nHaben Sie ihre Arbeiten gesichert?" -Button YesNo -Icon Critical  
            If ($ask -eq "yes") {  
            $msgBoxInput =  [System.Windows.MessageBox]::Show('Sind Sie bereit für den Neustart?','Reboot Confirmation','YesNo','Warning')  
            switch  ($msgBoxInput) {
                'Yes' {  
                #shutdown -r -f /t
                } 
                'No' {}  
}}}

Function Messagebox3
{
Add-Type -AssemblyName System.Windows.Forms
Add-Type -a System.Windows.Forms
Add-Type -AssemblyName PresentationFramework

[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null  
[System.Reflection.Assembly]::LoadWithPartialName( "Microsoft.VisualBasic") | Out-Null  

# Fenster erstellen
$Form = New-Object -TypeName System.Windows.Forms.Form -Property @{
  MaximumSize = $Screen}
$Form.Text = "Computer Reboot Notification"  
$global:Formsw=$($global:sw / 1.3)
$global:Formsh=$($global:sh / 1.4)
$global:FormsizeSW=[math]::Round($global:Formsw,0)
$global:FormsizeSH=[math]::Round($global:Formsh,0)
$Form.ClientSize = "$global:FormsizeSW,$global:FormsizeSH"  
$Form.StartPosition = "CenterScreen"  
$Form.Topmost = $true
$Form.KeyPreview = $true
$Form.ShowInTaskbar = $Formalse
$Form.FormBorderStyle = "Fixed3d"  
$Form.MaximizeBox = $Formalse
$Form.MinimizeBox = $false
$Icon = [system.drawing.icon]::ExtractAssociatedIcon("c:\Windows\System32\UserAccountControlSettings.exe")  
$Form.Icon = $Icon

#Label
$Label = New-Object -TypeName System.Windows.Forms.label
$Label.AutoSize = $True
$Label.Text = "Nach der Installation von Sicherheitsupdates ist ein Neustart des Computers zwingend erforderlich.`nDieser ist auch nach mehreren Hinweisen nicht erfolgt.`nZur Wahrung der Sicherheitsniveuas muss dieser Heute erfolgen.`nSie haben nun noch einmalig die Möglichkeit den Restart zu verschieben.`nAnsonsten sichern Sie Ihre Daten, schließen die geöffneten Anwendung und klicken anschließend auf`nRESTART NOW`n`nWARNUNG: Der Rechner wird nach Ablauf der Zeit neu gestartet!`n`nVielen Dank ihr IT-Services-Team"  
$Label.AutoSize = $true
$global:labelsw=$($global:FormsizeSW /6)
$global:labelsh=$($global:FormsizeSH / 9)
$global:labelsizeSW=[math]::Round($global:labelsw,0)
$global:labelsizeSH=[math]::Round($global:labelsh,0)
$label.ClientSize = "$global:labelsizeSW,$global:labelsizeSH"  
$Label.location = New-Object System.Drawing.Point($($global:labelsizeSW / 3),$($global:labelsizeSH / 2))
$label.Font = 'Arial, style=Bold'  
$Form.Controls.Add($Label)

# Labeltime
$Labeltime = New-Object 'System.Windows.Forms.Label'  
$Labeltime.AutoSize = $True
$global:labelTimesw=$($global:FormsizeSW / 1)
$global:labelTimesh=$($global:FormsizeSH / 3.5)
$global:labelTimesizeSW=[math]::Round($global:labelTimesw,0)
$global:labelTimesizeSH=[math]::Round($global:labelTimesh,0)
$Labeltime.ClientSize = "$global:labelTimesizeSW,$global:labelTimesizeSH"  
$LabelTime.location = New-Object System.Drawing.Point($($global:labelTimesizeSW / 24),$($global:labelTimesizeSH / 0.6))
$Labeltime.Font = 'Arial, 40pt, style=Bold'  
$Labeltime.Name = 'labelTime'  
$Labeltime.Size = '43, 15'  
$Labeltime.TextAlign = 'MiddleCenter'  
$Labeltime.ForeColor = "Red"  
$Form.Controls.Add($labelTime)

# Button1 (Reboot/Shutdown Now)
$Button1 = New-Object -TypeName System.Windows.Forms.Button
$global:Button1sw=$($global:Formsw / 6)
$global:Button1sh=$($global:FormsH / 10)
$global:Button1sizeSW=[math]::Round($global:Button1sw,0)
$global:Button1sizeSH=[math]::Round($global:Button1sh,0)
$Button1.ClientSize = "$global:Button1sizeSW,$global:Button1sizeSH"  
$Button1.location = New-Object System.Drawing.Point($($global:Button1sizeSW /3),$($global:Button1sizeSH /0.138))
$Button1.Text = "Restart now"  
$Button1.Font = 'Arial,style=Bold'  
$Button1.Add_Click({

    $msgBoxInput =  [System.Windows.MessageBox]::Show('Sind Sie bereit für den Neustart?','Reboot Confirmation','YesNo','Warning')  
    switch  ($msgBoxInput) {
        'Yes' {  
            #shutdown -r -f /t 0
            $Form.Close() 
              }

        'No' {  
            }}})
$Form.Controls.Add($Button1)

# Button Two (Postpone for 1 Hour)
$Button2 = New-Object -TypeName System.Windows.Forms.Button
$global:Button2sw=$($global:Formsw / 6)
$global:Button2sh=$($global:FormsH / 10)
$global:Button2sizeSW=[math]::Round($global:Button2sw,0)
$global:Button2sizeSH=[math]::Round($global:Button2sh,0)
$Button2.ClientSize                 = "$global:Button2sizeSW,$global:Button2sizeSH"  
$Button2.location = New-Object System.Drawing.Point($($global:Button2sizeSW /0.7),$($global:Button2sizeSH /0.138))
$Button2.Text = "1 Stunde verzögern"  
$Button2.Font = 'Arial,style=Bold'  
$Button2.Add_Click({
      
      $timerUpdate.Stop()
      $TotalTime = 3600
      Create-GetSchedTime -SchedTime $TotalTime
      $timerUpdate.add_Tick($timerUpdate_Tick)
      $timerUpdate.Start()
      $Button2.Enabled = $false
      $Button3.Enabled = $false
})
$Form.Controls.Add($Button2)

# Button Three (Postpone for 4 Hours)
$Button3 = New-Object -TypeName System.Windows.Forms.Button
$global:Button3sw=$($global:Formsw / 6)
$global:Button3sh=$($global:FormsH / 10)
$global:Button3sizeSW=[math]::Round($global:Button3sw,0)
$global:Button3sizeSH=[math]::Round($global:Button3sh,0)
$Button3.ClientSize                 = "$global:Button3sizeSW,$global:Button3sizeSH"  
$Button3.location = New-Object System.Drawing.Point($($global:Button3sizeSW /0.393),$($global:Button3sizeSH /0.138))
$Button3.Text = "4 Stunden verzögern"  
$Button3.Font = 'Arial,style=Bold'  
$Button3.Add_Click({
      
      $timerUpdate.Stop()
      $TotalTime = 14400
      Create-GetSchedTime -SchedTime $TotalTime
      $timerUpdate.add_Tick($timerUpdate_Tick)
      $timerUpdate.Start()
      $Button2.Enabled = $false
      $Button3.Enabled = $false
})
$Form.Controls.Add($Button3)

#Timer
$timerUpdate = New-Object 'System.Windows.Forms.Timer'  
if (!$timerVal) {$timerVal = 4}
if ($timerVal -ge 6) {$timerVal = 6}
if ($timerVal -le 0) {$timerVal = 0.1}
$TotalTime = $timerVal*3600 #in seconds
Create-GetSchedTime -SchedTime $TotalTime
$timerUpdate_Tick={
# Define countdown timer
[TimeSpan]$span = $script:StartTime - (Get-Date)
# Update the display
$hours = "{0:00}" -f $span.Hours  
$mins = "{0:00}" -f $span.Minutes  
$secs = "{0:00}" -f $span.Seconds  
$labelTime.Text = "{0}:{1}:{2}" -f $hours, $mins, $secs  
$timerUpdate.Start()
	if ($span.TotalSeconds -le 0)
    {
        $timerUpdate.Stop()
        shutdown -r -f /t 0
    }
}
$Form_StoreValues_Closing=
      {
       #Store the control values
      }
      
$Form_Cleanup_FormClosed=
      {
       #Remove all event handlers from the controls
       try
            {
                  $Form.remove_Load($Form_Load)
                  $timerUpdate.remove_Tick($timerUpdate_Tick)
                  #$Form.remove_Load($Form_StateCorrection_Load)
                  $Form.remove_Closing($Form_StoreValues_Closing)
                  $Form.remove_FormClosed($Form_Cleanup_FormClosed)
            }
            catch [Exception]
            { }
      }

#Start the timer
$timerUpdate.add_Tick($timerUpdate_Tick)
$timerUpdate.Start()

# Position auf Bildschirm begrenzen
$Form.Add_LocationChanged({
  switch ($this.Location) {
    {$_.X -lt 0}                                  { $this.Location = "0,{0}" -f $_.Y }  
    {$_.Y -lt 0}                                  { $this.Location = "{0},0" -f $_.Y }  
    {($_.X+$this.Size.Width)  -gt $Screen.Width}  { $this.Location = "{0},{1}" -f ($Screen.Width-$this.Size.Width),   $_.Y }  
    {($_.Y+$this.Size.Height) -gt $Screen.Height} { $this.Location = "{0},{1}" -f $_.X, ($Screen.Height-$this.Size.Height) }  
  }
})

# Show
#$Form.Add_Shown({$Form.Activate()})
##Clean up the control events
#$Form.add_FormClosed($Form_Cleanup_FormClosed)
#Store the control values when form is closing
#$Form.Add_Closing({$_.cancel = $true})
#Show the Form
$Form.ShowDialog() | Out-Null
#return $Form.ShowDialog()
}
Function CheckPending{
$global:check=$true
if ($global:check)
{
    If($global:DayValue.Days -ge 0 )
        {
        If($Global:Day2txtExist -eq $true)
        {$Global:Day3Seen=MessageBox3
        }
        elseif ($Global:Day1txtExist)
        {
        $Global:Day2Seen=MessageBox2
        out-file C:\Boottime\Day2.txt
        $Global:Day2txtExist=Test-Path $Day2txt
        #Remove-Item C:\Boottime\Day1.txt
        #out-file C:\Boottime\Day3.txt
        }
        else
        {
        $Global:Day1Seen=MessageBox1
        out-file C:\Boottime\Day1.txt
        $Global:Day1txtExist=Test-Path $Day1txt
        #Remove-Item C:\Boottime\Day1.txt
        #out-file C:\Boottime\Day2.txt
        }}

            
}}

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

Ausgedruckt am: 19.04.2024 um 22:04 Uhr

Mitglied: gfritz74
Lösung gfritz74 16.09.2021 aktualisiert um 10:37:01 Uhr
Goto Top
Habe den Teil Message rausgenommen. Da lag es wohl dran. Bisher ist der Fehler nicht mehr aufgetreten.