Article - CS185832

VSI - A lot of warning messages in the log when exception occurs as properties page is opened for a c# project in Integrity Lifecycle Manager

Modified: 05-Oct-2018   


Applies To

  • PTC RV&S (formerly Integrity Lifecycle Manager) 10.4 to 12.0

Description

  • An exception occurs when the properties page is opened for c# project. This problem occurs with both VS 2010 and VS 2012. To reproduce:
1. Open a previously shared Visual Studio C# project
2. Right-click on the C# project in the Solution Explorer and select the Properties menu item
3. Open the Visual Studio Integration log file
  • You should see the following in the log:
    • [4/30/2013 9:30:22 AM] [Warning] Exception (System.NotImplementedException): The method or operation is not implemented.
      [4/30/2013 9:30:22 AM] [Warning]    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
      [4/30/2013 9:30:22 AM] [Warning]    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
      [4/30/2013 9:30:22 AM] [Warning]    at Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)
      [4/30/2013 9:30:22 AM] [Warning]    at MKS.VisualStudio.Core.VSItemFactory.GetProjectType(IVsHierarchy project)
      [4/30/2013 9:30:22 AM] [Warning] Exception (System.NotImplementedException): The method or operation is not implemented.
      [4/30/2013 9:30:22 AM] [Warning]    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
      [4/30/2013 9:30:22 AM] [Warning]    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
      [4/30/2013 9:30:22 AM] [Warning]    at Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)
      [4/30/2013 9:30:22 AM] [Warning]    at MKS.VisualStudio.Core.VSItemFactory.GetProjectType(IVsHierarchy project)
      [4/30/2013 9:30:22 AM] [Warning] Exception (System.NotImplementedException): The method or operation is not implemented.
      [4/30/2013 9:30:22 AM] [Warning]    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
      [4/30/2013 9:30:22 AM] [Warning]    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
      [4/30/2013 9:30:22 AM] [Warning]    at Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)
      [4/30/2013 9:30:22 AM] [Warning]    at MKS.VisualStudio.Core.VSItemFactory.GetProjectType(IVsHierarchy project)
      [4/30/2013 9:30:22 AM] [Warning] Exception (System.NotImplementedException): The method or operation is not implemented.
      [4/30/2013 9:30:22 AM] [Warning]    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
      [4/30/2013 9:30:22 AM] [Warning]    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
      [4/30/2013 9:30:22 AM] [Warning]    at Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)
      [4/30/2013 9:30:22 AM] [Warning]    at MKS.VisualStudio.Core.VSItemFactory.GetProjectType(IVsHierarchy project)
      [4/30/2013 9:30:22 AM] [Warning] Exception (System.NotImplementedException): The method or operation is not implemented.
      [4/30/2013 9:30:22 AM] [Warning]    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
      [4/30/2013 9:30:22 AM] [Warning]    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
      [4/30/2013 9:30:22 AM] [Warning]    at Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)
      [4/30/2013 9:30:22 AM] [Warning]    at MKS.VisualStudio.Core.VSItemFactory.GetProjectType(IVsHierarchy project)
      [4/30/2013 9:30:22 AM] [Warning] Exception (System.NotImplementedException): The method or operation is not implemented.
      [4/30/2013 9:30:22 AM] [Warning]    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
      [4/30/2013 9:30:22 AM] [Warning]    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
      [4/30/2013 9:30:22 AM] [Warning]    at Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)
      [4/30/2013 9:30:22 AM] [Warning]    at MKS.VisualStudio.Core.VSItemFactory.GetProjectType(IVsHierarchy project)
  • Debugged the issue, and identified the following call stack when the properties for the project is being opened and the exception occurs:
    • VsCore_2012.dll!MKS.VisualStudio.Core.VSItemFactory.GetProjectType(Microsoft.VisualStudio.Shell.Interop.IVsHierarchy project) Line 93    C#
      VsCore_2012.dll!MKS.VisualStudio.Core.VSItemFactory.CreateProjectChild(Microsoft.VisualStudio.Shell.Interop.IVsHierarchy project, uint itemid) Line 68 + 0xb bytes    C#
      VsCore_2012.dll!MKS.VisualStudio.Core.VSItemFactory.Create(Microsoft.VisualStudio.Shell.Interop.IVsHierarchy project, uint itemid) Line 26 + 0xb bytes    C#
      VsCore_2012.dll!MKS.VisualStudio.Core.VSSelectionCollection.VSSelectionCollectionEnumerator.Current.get() Line 178 + 0x3e bytes    C#
      SourceControl_2012.dll!MKS.VisualStudio.SourceControl.SourceControlServices.SolutionExplorerSelectionChangedHandler(object sender, System.EventArgs args) Line 920 + 0x36 bytes    C#
      VsCore_2012.dll!MKS.VisualStudio.Core.VSSelectionCollection.OnSelectionChanged() Line 246 + 0x2f bytes    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) Line 221 + 0x8 bytes    C#
 
This is a printer-friendly version of Article 185832 and may be out of date. For the latest version click CS185832