调试iNetMgr.exe unhandle异常System.Management.Automation.CmdletInvocationException

时间:2016-06-29 10:47:40

标签: windows powershell debugging iis-7

我今天启动了我的Windows 7机器并尝试启动Intemgr.exe,该过程立即终止。所以我在调试器下启动了这个过程。似乎该进程终止时出现以下异常: System.Management.Automation.CmdletInvocationException 。转储堆上的所有异常会产生以下结果。堆还有一些下面列出的例外。

因此,根据我的研究,当cmdlet遇到终止错误时会发生此异常。之前的方法调用是ProcessRecord()。其中提供了cmdlet的逐记录处理功能。 Windows PowerShell运行时为管道中的每个cmdlet实例多次调用此方法。

如何从调试器中检查管道?

Exception object: 0000000002702940
Exception type: System.Management.Automation.ItemNotFoundException
Message: Cannot find path 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ApplicationServer\ApplicationServer.dll' because it does not exist.
InnerException: <none>
StackTrace (generated):
    SP               IP               Function
    000000001FF5E2C0 000007FEE1348846 System_Management_Automation_ni!System.Management.Automation.LocationGlobber.ExpandMshGlobPath(System.String, Boolean, System.Management.Automation.PSDriveInfo, System.Management.Automation.Provider.ContainerCmdletProvider, System.Management.Automation.CmdletProviderContext)+0xdb6
    000000001FF5E440 000007FEE1346162 System_Management_Automation_ni!System.Management.Automation.LocationGlobber.ResolveDriveQualifiedPath(System.String, System.Management.Automation.CmdletProviderContext, Boolean, System.Management.Automation.Provider.CmdletProvider ByRef)+0x442
    000000001FF5E540 000007FEE1345888 System_Management_Automation_ni!System.Management.Automation.LocationGlobber.GetGlobbedMonadPathsFromMonadPath(System.String, Boolean, System.Management.Automation.CmdletProviderContext, System.Management.Automation.Provider.CmdletProvider ByRef)+0x228
    000000001FF5E610 000007FEE134970A System_Management_Automation_ni!System.Management.Automation.LocationGlobber.GetGlobbedProviderPathsFromMonadPath(System.String, Boolean, System.Management.Automation.CmdletProviderContext, System.Management.Automation.ProviderInfo ByRef, System.Management.Automation.Provider.CmdletProvider ByRef)+0x22a
    000000001FF5E6D0 000007FEE136C33D System_Management_Automation_ni!System.Management.Automation.LocationGlobber.GetGlobbedProviderPathsFromMonadPath(System.String, Boolean, System.Management.Automation.ProviderInfo ByRef, System.Management.Automation.Provider.CmdletProvider ByRef)+0x7d
    000000001FF5E740 000007FEE17FC95C System_Management_Automation_ni!System.Management.Automation.PathIntrinsics.GetResolvedProviderPathFromPSPath(System.String, System.Management.Automation.ProviderInfo ByRef)+0x7c
    000000001FF5E7C0 000007FEE18BF50B System_Management_Automation_ni!Microsoft.PowerShell.Commands.ModuleCmdletBase.GetResolvedPath(System.String, System.Management.Automation.ExecutionContext)+0x6b

StackTraceString: <none>
HResult: 80131501
****************************************************************************************
Exception object: 0000000002715c50
Exception type: System.IO.FileNotFoundException
Message: The specified module 'ApplicationServer' was not loaded because no valid module file was found in any module directory.
InnerException: <none>
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 80070002
****************************************************************************************
Exception object: 00000000027bc4d0
Exception type: System.NotImplementedException
Message: The method or operation is not implemented.
InnerException: <none>
StackTrace (generated):
    SP               IP               Function
    000000001FF5E0A0 000007FF001D3D08 Microsoft_ApplicationServer_Management_Tools!Microsoft.ApplicationServer.Management.Tools.PowershellHost.NoConsolePSRawUserInterface.get_BufferSize()+0x28
    000000001FF5E0D0 000007FEE12EC281 System_Management_Automation_ni!System.Management.Automation.Internal.Host.InternalHostRawUserInterface.get_BufferSize()+0x61
    000000001FF5E130 000007FEDF893FAA Microsoft_PowerShell_Commands_Utility_ni!Microsoft.PowerShell.Commands.Internal.Format.ConsoleLineOutput.get_ColumnNumber()+0x8a
    000000001FF5E1A0 000007FEDF893D04 Microsoft_PowerShell_Commands_Utility_ni!Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessOutOfBandPayload(Microsoft.PowerShell.Commands.Internal.Format.FormatEntryData)+0xc4
    000000001FF5E210 000007FEDF893BC4 Microsoft_PowerShell_Commands_Utility_ni!Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessPayload(Microsoft.PowerShell.Commands.Internal.Format.FormatEntryData, OutputContext)+0xe4
    000000001FF5E280 000007FEDF897110 Microsoft_PowerShell_Commands_Utility_ni!Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessObject(System.Management.Automation.PSObject)+0x1a0
    000000001FF5E300 000007FEDF89238B Microsoft_PowerShell_Commands_Utility_ni!Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessRecord()+0xdb
    000000001FF5E360 000007FEDF896AAE Microsoft_PowerShell_Commands_Utility_ni!Microsoft.PowerShell.Commands.Internal.Format.FrontEndCommandBase.ProcessRecord()+0x3e
    000000001FF5E3B0 000007FEE13726F2 System_Management_Automation_ni!System.Management.Automation.CommandProcessor.ProcessRecord()+0x212

StackTraceString: <none>
HResult: 80004001
****************************************************************************************
Exception object: 00000000027bc770
Exception type: System.Management.Automation.CmdletInvocationException
Message: The method or operation is not implemented.
InnerException: System.NotImplementedException, use !PrintException 00000000027bc4d0 to see more
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 80131501
****************************************************************************************
Exception object: 00000000027bcbd8
Exception type: System.Management.Automation.PipelineStoppedException
Message: The pipeline has been stopped.
InnerException: <none>
StackTrace (generated):
    SP               IP               Function
    000000001FF5E3B0 000007FEE1ACB9B8 System_Management_Automation_ni!System.Management.Automation.CommandProcessor.ProcessRecord()+0x7594d8
    000000001FF5E450 000007FEE1357B44 System_Management_Automation_ni!System.Management.Automation.CommandProcessorBase.DoExecute()+0x84
    000000001FF5E4C0 000007FEE13879C9 System_Management_Automation_ni!System.Management.Automation.Internal.PipelineProcessor.DoStepItems(System.Object, System.Collections.Hashtable, Boolean)+0x79

StackTraceString: <none>
HResult: 80131501
相关问题