0

Pex0.94.0.0リリースVisualStudio10.0.40219.1バグレポート

再現方法:

  1. クラスライブラリプロジェクトを開く
  2. 空のメソッドを作成する
  3. 右クリック->Pexの実行

別のマシンで問題なく実行しています(Officeでは、VS2010 Utimate)

しかし、自宅のコンピューターでこの例外が発生しました(VS2010 Professtional)


例外の詳細:System.InvalidCastException:タイプ'System.__ComObject'のCOMオブジェクトをインターフェイスタイプ'EnvDTE.DTE'にキャストできません。次のエラーが原因で、IID'{04A72314-32E9-48E2-9B87-A63603454F3E}')のインターフェイスのCOMコンポーネントに対するQueryInterface呼び出しが失敗したため、この操作は失敗しました。インターフェイスが登録されていません。(HRESULTからの例外:0x80040155)Microsoft.Pex.VsPackage.VsServiceProviderHelper.GetService [T](IServiceProvider serviceProvider)at Microsoft.Pex.VsPackage.Helpers.ProjectHelper.SaveAllFiles(IServiceProvider serviceProvider)at Microsoft.Pex.VsPackage.Actions.ActionComponent .SaveAll()at Microsoft.Pex.VsPackage.Actions.ExplorationActionBase.InternalExecute()at Microsoft.Pex.VsPackage.Actions.ActionComponent.Execute(Object target)


Microsoft.Pex.VsPackage.Controls.ErrorReport.CreateReport(Exception ex)のMicrosoft.Pex.VsPackage.Controls.ErrorReport。<>c_DisplayClass4.bの現在のスタックトレース_3()at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method、Object target、Object [] arguments、SignatureStruct&sig、MethodAttributes methodAttributes、RuntimeType typeOwner)at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method、Object target、Object [] arguments、Signature sig 、MethodAttributes methodAttributes、RuntimeType typeOwner)at System.Reflection.RuntimeMethodInfo.Invoke(Object obj、BindingFlags invokeAttr、バインダーバインダー、Object []パラメーター、CultureInfoカルチャー、Boolean skipVisibilityChecks)at System.Delegate.DynamicInvokeImpl(Object [] args)at Microsoft .Pex.VsPackage.Helpers.UIThreadInvoker.SafeMethodInvoker.Invoke()at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method、Object target、Object [] arguments、SignatureStruct&sig、MethodAttributes methodAttributes、RuntimeType typeOwner)at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method、Object target、Object [] arguments、Signature sig、MethodAttributes methodAttributes、RuntimeType typeOwner)at System.Reflection.RuntimeMethodInfo.Invoke(Object obj、BindingFlags invokeAttr、Binderバインダー、Object []パラメーター、CultureInfoカルチャー、ブールskipVisibilityChecks)at System.Delegate.DynamicInvokeImpl(Object [] args)at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)at System.Threading.ExecutionContext.runTryCode(Object userData)at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code、CleanupCode backoutCode、Object userData)atSystem。System.Threading.ExecutionContext.Run(ExecutionContextexecutionContext、ContextCallbackコールバック、オブジェクト状態、ブールignoreSyncCtx)でのThreading.ExecutionContext.RunInternal(ExecutionContextexecutionContext、ContextCallbackコールバック、オブジェクト状態)System.Threading.ExecutionContext.Run(ExecutionContextexecutionContext、ContextCallbackコールバック) 、オブジェクトの状態)at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)at System.Windows.Forms.Control.InvokeMarshaledCallbacks()at System.Windows.Forms.Control.WndProc(Message&m)at System.Windows.Forms .Control.ControlNativeWindow.OnMessage(Message&m)at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd、Int32 msg、IntPtr wparam、IntPtr lparam)System.Threading.ExecutionContext.Run(ExecutionContextexecutionContext、ContextCallbackコールバック、オブジェクト状態、ブールignoreSyncCtx)でのExecutionContext.RunInternal(ExecutionContextexecutionContext、ContextCallbackコールバック、オブジェクト状態)System.Threading.ExecutionContext.Run(ExecutionContextexecutionContext、ContextCallbackコールバック、オブジェクト状態)at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)at System.Windows.Forms.Control.InvokeMarshaledCallbacks()at System.Windows.Forms.Control.WndProc(Message&m)at System.Windows.Forms.Control .ControlNativeWindow.OnMessage(Message&m)at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd、Int32 msg、IntPtr wparam、IntPtr lparam)System.Threading.ExecutionContext.Run(ExecutionContextexecutionContext、ContextCallbackコールバック、オブジェクト状態、ブールignoreSyncCtx)でのExecutionContext.RunInternal(ExecutionContextexecutionContext、ContextCallbackコールバック、オブジェクト状態)System.Threading.ExecutionContext.Run(ExecutionContextexecutionContext、ContextCallbackコールバック、オブジェクト状態)at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)at System.Windows.Forms.Control.InvokeMarshaledCallbacks()at System.Windows.Forms.Control.WndProc(Message&m)at System.Windows.Forms.Control .ControlNativeWindow.OnMessage(Message&m)at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd、Int32 msg、IntPtr wparam、IntPtr lparam)RunInternal(ExecutionContextexecutionContext、ContextCallbackコールバック、オブジェクト状態)at System.Threading.ExecutionContext.Run(ExecutionContextexecutionContext、ContextCallbackコールバック、オブジェクト状態、ブールignoreSyncCtx)at System.Threading.ExecutionContext.Run(ExecutionContext実行コンテキスト、ContextCallbackコールバック、オブジェクト状態) System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)at System.Windows.Forms.Control.InvokeMarshaledCallbacks()at System.Windows.Forms.Control.WndProc(Message&m)at System.Windows.Forms.Control.ControlNativeWindow .OnMessage(Message&m)at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd、Int32 msg、IntPtr wparam、IntPtr lparam)RunInternal(ExecutionContextexecutionContext、ContextCallbackコールバック、オブジェクト状態)at System.Threading.ExecutionContext.Run(ExecutionContextexecutionContext、ContextCallbackコールバック、オブジェクト状態、ブールignoreSyncCtx)at System.Threading.ExecutionContext.Run(ExecutionContext実行コンテキスト、ContextCallbackコールバック、オブジェクト状態) System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)at System.Windows.Forms.Control.InvokeMarshaledCallbacks()at System.Windows.Forms.Control.WndProc(Message&m)at System.Windows.Forms.Control.ControlNativeWindow .OnMessage(Message&m)at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd、Int32 msg、IntPtr wparam、IntPtr lparam)IntPtr lparam)IntPtr lparam)System.Windows.Forms.ControlのSystem.Threading.ExecutionContext.Run(ExecutionContextexecutionContext、ContextCallbackコールバック、オブジェクト状態)のSystem.Threading.ExecutionContext.Run(ExecutionContext executeContext、ContextCallbackコールバック、オブジェクト状態、ブールignoreSyncCtx)のオブジェクト状態) .InvokeMarshaledCallback(ThreadMethodEntry tme)at System.Windows.Forms.Control.InvokeMarshaledCallbacks()at System.Windows.Forms.Control.WndProc(Message&m)at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&m)at System .Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd、Int32 msg、IntPtr wparam、IntPtr lparam)System.Windows.Forms.ControlのSystem.Threading.ExecutionContext.Run(ExecutionContextexecutionContext、ContextCallbackコールバック、オブジェクト状態)のSystem.Threading.ExecutionContext.Run(ExecutionContext executeContext、ContextCallbackコールバック、オブジェクト状態、ブールignoreSyncCtx)のオブジェクト状態) .InvokeMarshaledCallback(ThreadMethodEntry tme)at System.Windows.Forms.Control.InvokeMarshaledCallbacks()at System.Windows.Forms.Control.WndProc(Message&m)at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&m)at System .Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd、Int32 msg、IntPtr wparam、IntPtr lparam)System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)のSystem.Windows.Forms.ControlのSystem.Threading.ExecutionContext.Run(ExecutionContextexecutionContext、ContextCallbackコールバック、オブジェクト状態)のContextCallbackコールバック、オブジェクト状態、ブール無視同期Ctx)。 InvokeMarshaledCallbacks()at System.Windows.Forms.Control.WndProc(Message&m)at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&m)at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd、Int32 msg、IntPtr wparam、IntPtr lparam)System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)のSystem.Windows.Forms.ControlのSystem.Threading.ExecutionContext.Run(ExecutionContextexecutionContext、ContextCallbackコールバック、オブジェクト状態)のContextCallbackコールバック、オブジェクト状態、ブール無視同期Ctx)。 InvokeMarshaledCallbacks()at System.Windows.Forms.Control.WndProc(Message&m)at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&m)at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd、Int32 msg、IntPtr wparam、IntPtr lparam)System.Windows.Forms.Control.InvokeMarshaledCallbacks()at System.Windows.Forms.Control.WndProc(Message&m)at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&m)atSystem。 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd、Int32 msg、IntPtr wparam、IntPtr lparam)のWindows.Forms.Control.ControlNativeWindow.WndProc(Message&m)System.Windows.Forms.Control.InvokeMarshaledCallbacks()at System.Windows.Forms.Control.WndProc(Message&m)at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&m)atSystem。 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd、Int32 msg、IntPtr wparam、IntPtr lparam)のWindows.Forms.Control.ControlNativeWindow.WndProc(Message&m)IntPtr wparam、IntPtr lparam)IntPtr wparam、IntPtr lparam)


関連する環境変数:COR_ENABLE_PROFILER = COR_PROFILER = PROCESSOR_ARCHITECTURE = x86


マシンデータ:プロセッサ数= 4

4

1 に答える 1

0

奇妙なレジストリの問題であることが判明しました
。Windows を再インストールすると解決します

于 2011-08-03T03:23:31.213 に答える