[PSS 2015][Bug] XML Help for custom DLL failing

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
User avatar
Bosparan
Posts: 265
Joined: Sun Mar 03, 2013 12:45 pm

[PSS 2015][Bug] XML Help for custom DLL failing

Post by Bosparan » Thu Feb 11, 2016 7:32 am

PSS Version: 2015 4.2.99
OS Version: Windows 10 x64
WMF Version: 5.0

Impact: Denial of great development help

Symptom:
Some time back I've been asking to get the help text from the C# code we develop in VS. The answer was to simply include the XML help generated by visual studio, which ought to work. Recently I've been trying to get this to work, however ...
When I create a simple sample project, it does work as intended. However when I want to include our main libraries' XML (650KB / 9235 lines) it fails with an InvalidCastException: Can't convert an object of type "System.Xml.XmlComment" to type "System.Xml.XmlElement".
The types load and I (briefly) get primal sense for them, however each time it provides that primal sense it will throw the exception.
This persists until I remove the Xml file and restart PSS.

Further description:
Unfortunately I cannot send you the originals (Company Policy), however I've found the triggering cause:
Under some circumstances, Visual Studio will add a comment into the XML file (using standard xml commenting). These appear to be the cause of this error, as removing them will make Primal Sense work as intended with full documentation.
Thus I'd like to request you patch the parser to simply ignore comments, rather than blindly attempt to force all types.

Attached the full Exception Information:
  1. System.InvalidCastException: Das Objekt des Typs "System.Xml.XmlComment" kann nicht in Typ "System.Xml.XmlElement" umgewandelt werden.
  2.  
  3.    bei ..(Type , Char , String )
  4.  
  5.    bei ..(MemberInfo )
  6.  
  7.    bei ..(SyntaxEditor , EventArgs )
  8.  
  9.    bei ActiproSoftware.SyntaxEditor.SyntaxEditor.#VZe(EventArgs #yhb)
  10.  
  11.    bei #CLe.#4Le.UpdateDescriptionTip()
  12.  
  13.    bei #CLe.#4Le.#Njc(SyntaxEditor #bCb)
  14.  
  15.    bei ActiproSoftware.SyntaxEditor.SyntaxEditor.#Njc()
  16.  
  17.    bei ActiproSoftware.SyntaxEditor.SyntaxEditor.#F2e(Object #xhb, EventArgs #yhb)
  18.  
  19.    bei System.Windows.Forms.Timer.OnTick(EventArgs e)
  20.  
  21.    bei System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
  22.  
  23.    bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  24.  
  25.  
  26.  
  27.  
  28.  
  29. ************** Geladene Assemblys **************
  30.  
  31. mscorlib
  32.  
  33.     Assembly-Version: 4.0.0.0.
  34.  
  35.     Win32-Version: 4.6.1063.1 built by: NETFXREL3STAGE.
  36.  
  37.     CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll.
  38.  
  39. ----------------------------------------
  40.  
  41. PowerShell Studio
  42.  
  43.     Assembly-Version: 4.2.99.0.
  44.  
  45.     Win32-Version: 4.2.99.0.
  46.  
  47.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/PowerShell%20Studio.exe.
  48.  
  49. ----------------------------------------
  50.  
  51. System
  52.  
  53.     Assembly-Version: 4.0.0.0.
  54.  
  55.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  56.  
  57.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
  58.  
  59. ----------------------------------------
  60.  
  61. System.Core
  62.  
  63.     Assembly-Version: 4.0.0.0.
  64.  
  65.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  66.  
  67.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
  68.  
  69. ----------------------------------------
  70.  
  71. System.Windows.Forms
  72.  
  73.     Assembly-Version: 4.0.0.0.
  74.  
  75.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  76.  
  77.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
  78.  
  79. ----------------------------------------
  80.  
  81. System.Drawing
  82.  
  83.     Assembly-Version: 4.0.0.0.
  84.  
  85.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  86.  
  87.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
  88.  
  89. ----------------------------------------
  90.  
  91. DevExpress.XtraBars.v15.1
  92.  
  93.     Assembly-Version: 15.1.8.0.
  94.  
  95.     Win32-Version: 15.1.8.0.
  96.  
  97.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/DevExpress.XtraBars.v15.1.DLL.
  98.  
  99. ----------------------------------------
  100.  
  101. DevExpress.Utils.v15.1
  102.  
  103.     Assembly-Version: 15.1.8.0.
  104.  
  105.     Win32-Version: 15.1.8.0.
  106.  
  107.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/DevExpress.Utils.v15.1.DLL.
  108.  
  109. ----------------------------------------
  110.  
  111. DevExpress.XtraEditors.v15.1
  112.  
  113.     Assembly-Version: 15.1.8.0.
  114.  
  115.     Win32-Version: 15.1.8.0.
  116.  
  117.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/DevExpress.XtraEditors.v15.1.DLL.
  118.  
  119. ----------------------------------------
  120.  
  121. ActiproSoftware.SyntaxEditor.WinForms
  122.  
  123.     Assembly-Version: 14.1.322.0.
  124.  
  125.     Win32-Version: 14.1.322.0.
  126.  
  127.     CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/ActiproSoftware.SyntaxEditor.WinForms/14.1.322.0__c27e062d3c1a4763/ActiproSoftware.SyntaxEditor.WinForms.dll.
  128.  
  129. ----------------------------------------
  130.  
  131. ActiproSoftware.Shared.WinForms
  132.  
  133.     Assembly-Version: 14.1.322.0.
  134.  
  135.     Win32-Version: 14.1.322.0.
  136.  
  137.     CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/ActiproSoftware.Shared.WinForms/14.1.322.0__c27e062d3c1a4763/ActiproSoftware.Shared.WinForms.dll.
  138.  
  139. ----------------------------------------
  140.  
  141. LogicNP.FileView
  142.  
  143.     Assembly-Version: 12.0.0.0.
  144.  
  145.     Win32-Version: 12.0.0.0.
  146.  
  147.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/LogicNP.FileView.DLL.
  148.  
  149. ----------------------------------------
  150.  
  151. System.Xml
  152.  
  153.     Assembly-Version: 4.0.0.0.
  154.  
  155.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  156.  
  157.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
  158.  
  159. ----------------------------------------
  160.  
  161. Microsoft.WindowsAPICodePack.Shell
  162.  
  163.     Assembly-Version: 1.1.0.0.
  164.  
  165.     Win32-Version: 1.1.0.0.
  166.  
  167.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/Microsoft.WindowsAPICodePack.Shell.DLL.
  168.  
  169. ----------------------------------------
  170.  
  171. DevExpress.Data.v15.1
  172.  
  173.     Assembly-Version: 15.1.8.0.
  174.  
  175.     Win32-Version: 15.1.8.0.
  176.  
  177.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/DevExpress.Data.v15.1.DLL.
  178.  
  179. ----------------------------------------
  180.  
  181. System.Design
  182.  
  183.     Assembly-Version: 4.0.0.0.
  184.  
  185.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  186.  
  187.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll.
  188.  
  189. ----------------------------------------
  190.  
  191. System.Web
  192.  
  193.     Assembly-Version: 4.0.0.0.
  194.  
  195.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  196.  
  197.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll.
  198.  
  199. ----------------------------------------
  200.  
  201. PrimalSQL.Common
  202.  
  203.     Assembly-Version: 1.0.3.0.
  204.  
  205.     Win32-Version: 1.0.3.0.
  206.  
  207.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/PrimalSQL.Common.DLL.
  208.  
  209. ----------------------------------------
  210.  
  211. System.ServiceProcess
  212.  
  213.     Assembly-Version: 4.0.0.0.
  214.  
  215.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  216.  
  217.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll.
  218.  
  219. ----------------------------------------
  220.  
  221. PSSyntaxCheckV3
  222.  
  223.     Assembly-Version: 1.3.3.0.
  224.  
  225.     Win32-Version: 1.3.3.0.
  226.  
  227.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/PSSyntaxCheckV3.DLL.
  228.  
  229. ----------------------------------------
  230.  
  231. PSSyntaxCheck
  232.  
  233.     Assembly-Version: 1.0.3.0.
  234.  
  235.     Win32-Version: 1.0.3.0.
  236.  
  237.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/PSSyntaxCheck.DLL.
  238.  
  239. ----------------------------------------
  240.  
  241. mscorlib.resources
  242.  
  243.     Assembly-Version: 4.0.0.0.
  244.  
  245.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  246.  
  247.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
  248.  
  249. ----------------------------------------
  250.  
  251. LogicNP.FolderView
  252.  
  253.     Assembly-Version: 12.0.0.0.
  254.  
  255.     Win32-Version: 12.0.0.0.
  256.  
  257.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/LogicNP.FolderView.DLL.
  258.  
  259. ----------------------------------------
  260.  
  261. LogicNP.ShComboBox
  262.  
  263.     Assembly-Version: 12.0.0.0.
  264.  
  265.     Win32-Version: 12.0.0.0.
  266.  
  267.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/LogicNP.ShComboBox.DLL.
  268.  
  269. ----------------------------------------
  270.  
  271. {e0cf4345-866b-4220-9983-57299acceb02}
  272.  
  273.     Assembly-Version: 0.0.0.0.
  274.  
  275.     Win32-Version: 4.2.99.0.
  276.  
  277.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/PowerShell%20Studio.exe.
  278.  
  279. ----------------------------------------
  280.  
  281. System.Configuration
  282.  
  283.     Assembly-Version: 4.0.0.0.
  284.  
  285.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  286.  
  287.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
  288.  
  289. ----------------------------------------
  290.  
  291. System.Data.Linq
  292.  
  293.     Assembly-Version: 4.0.0.0.
  294.  
  295.     Win32-Version: 4.6.1038.0.
  296.  
  297.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Data.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Linq.dll.
  298.  
  299. ----------------------------------------
  300.  
  301. Anonymously Hosted DynamicMethods Assembly
  302.  
  303.     Assembly-Version: 0.0.0.0.
  304.  
  305.     Win32-Version: 4.6.1063.1 built by: NETFXREL3STAGE.
  306.  
  307.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll.
  308.  
  309. ----------------------------------------
  310.  
  311. Accessibility
  312.  
  313.     Assembly-Version: 4.0.0.0.
  314.  
  315.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  316.  
  317.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll.
  318.  
  319. ----------------------------------------
  320.  
  321. System.Windows.Forms.resources
  322.  
  323.     Assembly-Version: 4.0.0.0.
  324.  
  325.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  326.  
  327.     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.
  328.  
  329. ----------------------------------------
  330.  
  331. UIAutomationClient
  332.  
  333.     Assembly-Version: 4.0.0.0.
  334.  
  335.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  336.  
  337.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/UIAutomationClient/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationClient.dll.
  338.  
  339. ----------------------------------------
  340.  
  341. PresentationCore
  342.  
  343.     Assembly-Version: 4.0.0.0.
  344.  
  345.     Win32-Version: 4.6.1063.1 built by: NETFXREL3STAGE.
  346.  
  347.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll.
  348.  
  349. ----------------------------------------
  350.  
  351. WindowsBase
  352.  
  353.     Assembly-Version: 4.0.0.0.
  354.  
  355.     Win32-Version: 4.6.1063.1 built by: NETFXREL3STAGE.
  356.  
  357.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll.
  358.  
  359. ----------------------------------------
  360.  
  361. System.xml.resources
  362.  
  363.     Assembly-Version: 4.0.0.0.
  364.  
  365.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  366.  
  367.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Xml.resources.dll.
  368.  
  369. ----------------------------------------
  370.  
  371. System.Management.Automation
  372.  
  373.     Assembly-Version: 3.0.0.0.
  374.  
  375.     Win32-Version: 10.0.10586.63.
  376.  
  377.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management.Automation/v4.0_3.0.0.0__31bf3856ad364e35/System.Management.Automation.dll.
  378.  
  379. ----------------------------------------
  380.  
  381. System.Numerics
  382.  
  383.     Assembly-Version: 4.0.0.0.
  384.  
  385.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  386.  
  387.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll.
  388.  
  389. ----------------------------------------
  390.  
  391. Microsoft.Management.Infrastructure
  392.  
  393.     Assembly-Version: 1.0.0.0.
  394.  
  395.     Win32-Version: 10.0.10586.0.
  396.  
  397.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Management.Infrastructure/v4.0_1.0.0.0__31bf3856ad364e35/Microsoft.Management.Infrastructure.dll.
  398.  
  399. ----------------------------------------
  400.  
  401. System.DirectoryServices
  402.  
  403.     Assembly-Version: 4.0.0.0.
  404.  
  405.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  406.  
  407.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.DirectoryServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll.
  408.  
  409. ----------------------------------------
  410.  
  411. System.Management
  412.  
  413.     Assembly-Version: 4.0.0.0.
  414.  
  415.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  416.  
  417.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll.
  418.  
  419. ----------------------------------------

User avatar
davidc
Posts: 4985
Joined: Thu Aug 18, 2011 4:56 am

Re: [PSS 2015][Bug] XML Help for custom DLL failing

Post by davidc » Thu Feb 11, 2016 9:49 am

The issue will be resolved in the next service release.

David
David
SAPIEN Technologies, Inc.