アーティクル - CS185832
VSI - Integrity Lifecycle Manager で ac# プロジェクトのプロパティ ページを開くときに例外が発生すると、ログに多数の警告メッセージが記録される
修正日: 27-Dec-2022
適用対象
- PTC RV&S (formerly Integrity Lifecycle Manager) 10.4 to 12.0
説明
- C# プロジェクトのプロパティ ページを開くと、例外が発生します。この問題は、VS 2010 と VS 2012 の両方で発生します。再現するには:
1.以前に共有された Visual Studio C# プロジェクトを開きます
2. ソリューション エクスプローラーで C# プロジェクトを右クリックし、[プロパティ] メニュー項目を選択します。
3. Visual Studio 統合ログ ファイルを開きます。
2. ソリューション エクスプローラーで C# プロジェクトを右クリックし、[プロパティ] メニュー項目を選択します。
3. Visual Studio 統合ログ ファイルを開きます。
- ログに次のように表示されます。
- [2013 年 4 月 30 日 9:30:22 AM] [警告] 例外 (System.NotImplementedException): メソッドまたは操作が実装されていません。[2013 年 4 月 30 日 9:30:22 AM] [警告] System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal (Int32 errorCode、IntPtr errorInfo) で[2013 年 4 月 30 日 9:30:22 AM] [警告] System.Runtime.InteropServices.Marshal.ThrowExceptionForHR (Int32 errorCode) で[2013/04/30 9:30:22 AM] [警告] Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure) で[2013/04/30 9:30:22 AM] [警告] MKS.VisualStudio.Core.VSItemFactory.GetProjectType (IVsHierarchy プロジェクト) で[2013 年 4 月 30 日 9:30:22 AM] [警告] 例外 (System.NotImplementedException): メソッドまたは操作が実装されていません。[2013 年 4 月 30 日 9:30:22 AM] [警告] System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal (Int32 errorCode、IntPtr errorInfo) で[2013 年 4 月 30 日 9:30:22 AM] [警告] System.Runtime.InteropServices.Marshal.ThrowExceptionForHR (Int32 errorCode) で[2013/04/30 9:30:22 AM] [警告] Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure) で[2013/04/30 9:30:22 AM] [警告] MKS.VisualStudio.Core.VSItemFactory.GetProjectType (IVsHierarchy プロジェクト) で[2013 年 4 月 30 日 9:30:22 AM] [警告] 例外 (System.NotImplementedException): メソッドまたは操作が実装されていません。[2013 年 4 月 30 日 9:30:22 AM] [警告] System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal (Int32 errorCode、IntPtr errorInfo) で[2013 年 4 月 30 日 9:30:22 AM] [警告] System.Runtime.InteropServices.Marshal.ThrowExceptionForHR (Int32 errorCode) で[2013/04/30 9:30:22 AM] [警告] Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure) で[2013/04/30 9:30:22 AM] [警告] MKS.VisualStudio.Core.VSItemFactory.GetProjectType (IVsHierarchy プロジェクト) で[2013 年 4 月 30 日 9:30:22 AM] [警告] 例外 (System.NotImplementedException): メソッドまたは操作が実装されていません。[2013 年 4 月 30 日 9:30:22 AM] [警告] System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal (Int32 errorCode、IntPtr errorInfo) で[2013 年 4 月 30 日 9:30:22 AM] [警告] System.Runtime.InteropServices.Marshal.ThrowExceptionForHR (Int32 errorCode) で[2013/04/30 9:30:22 AM] [警告] Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure) で[2013/04/30 9:30:22 AM] [警告] MKS.VisualStudio.Core.VSItemFactory.GetProjectType (IVsHierarchy プロジェクト) で[2013 年 4 月 30 日 9:30:22 AM] [警告] 例外 (System.NotImplementedException): メソッドまたは操作が実装されていません。[2013 年 4 月 30 日 9:30:22 AM] [警告] System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal (Int32 errorCode、IntPtr errorInfo) で[2013 年 4 月 30 日 9:30:22 AM] [警告] System.Runtime.InteropServices.Marshal.ThrowExceptionForHR (Int32 errorCode) で[2013/04/30 9:30:22 AM] [警告] Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure) で[2013/04/30 9:30:22 AM] [警告] MKS.VisualStudio.Core.VSItemFactory.GetProjectType (IVsHierarchy プロジェクト) で[2013 年 4 月 30 日 9:30:22 AM] [警告] 例外 (System.NotImplementedException): メソッドまたは操作が実装されていません。[2013 年 4 月 30 日 9:30:22 AM] [警告] System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal (Int32 errorCode、IntPtr errorInfo) で[2013 年 4 月 30 日 9:30:22 AM] [警告] System.Runtime.InteropServices.Marshal.ThrowExceptionForHR (Int32 errorCode) で[2013/04/30 9:30:22 AM] [警告] Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure) で[2013/04/30 9:30:22 AM] [警告] MKS.VisualStudio.Core.VSItemFactory.GetProjectType (IVsHierarchy プロジェクト) で
- 問題をデバッグし、プロジェクトのプロパティを開いて例外が発生したときに、次のコール スタックを特定しました。
- VsCore_2012.dll!MKS.VisualStudio.Core.VSItemFactory.GetProjectType(Microsoft.VisualStudio.Shell.Interop.IVsHierarchy プロジェクト) 行 93 C#VsCore_2012.dll!MKS.VisualStudio.Core.VSItemFactory.CreateProjectChild(Microsoft.VisualStudio.Shell.Interop.IVsHierarchy プロジェクト、uint itemid) 68 行目 + 0xb バイト C#VsCore_2012.dll!MKS.VisualStudio.Core.VSItemFactory.Create(Microsoft.VisualStudio.Shell.Interop.IVsHierarchy プロジェクト、uint itemid) 26 行目 + 0xb バイト C#VsCore_2012.dll!MKS.VisualStudio.Core.VSSelectionCollection.VSSelectionCollectionEnumerator.Current.get() 行 178 + 0x3e バイト C#SourceControl_2012.dll!MKS.VisualStudio.SourceControl.SourceControlServices.SolutionExplorerSelectionChangedHandler(オブジェクト送信者、System.EventArgs args) 行 920 + 0x36 バイト C#VsCore_2012.dll!MKS.VisualStudio.Core.VSSelectionCollection.OnSelectionChanged() 行 246 + 0x2f バイト C#VsCore_2012.dll!MKS.VisualStudio.Core.VSSelectionCollection.Microsoft.VisualStudio.Shell.Interop.IVsSelectionEvents.OnSelectionChanged(Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierOld, uint itemidOld, Microsoft.VisualStudio.Shell.Interop.IVsMultiItemSelect pMISOld, Microsoft .VisualStudio.Shell.Interop.ISelectionContainer pSCOld、Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierNew、uint itemidNew、Microsoft.VisualStudio.Shell.Interop.IVsMultiItemSelect pMISNew、Microsoft.VisualStudio.Shell.Interop.ISelectionContainer pSCNew) 行 221 + 0x8バイト C#
最新バージョンはこちらを参照ください CS185832