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

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION 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.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 8 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Bosparan
Posts: 290
Last visit: Fri Oct 08, 2021 11:59 am

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

Post by Bosparan »

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.    bei ..(Type , Char , String )
  3.    bei ..(MemberInfo )
  4.    bei ..(SyntaxEditor , EventArgs )
  5.    bei ActiproSoftware.SyntaxEditor.SyntaxEditor.#VZe(EventArgs #yhb)
  6.    bei #CLe.#4Le.UpdateDescriptionTip()
  7.    bei #CLe.#4Le.#Njc(SyntaxEditor #bCb)
  8.    bei ActiproSoftware.SyntaxEditor.SyntaxEditor.#Njc()
  9.    bei ActiproSoftware.SyntaxEditor.SyntaxEditor.#F2e(Object #xhb, EventArgs #yhb)
  10.    bei System.Windows.Forms.Timer.OnTick(EventArgs e)
  11.    bei System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
  12.    bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  13.  
  14.  
  15. ************** Geladene Assemblys **************
  16. mscorlib
  17.     Assembly-Version: 4.0.0.0.
  18.     Win32-Version: 4.6.1063.1 built by: NETFXREL3STAGE.
  19.     CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll.
  20. ----------------------------------------
  21. PowerShell Studio
  22.     Assembly-Version: 4.2.99.0.
  23.     Win32-Version: 4.2.99.0.
  24.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/PowerShell%20Studio.exe.
  25. ----------------------------------------
  26. System
  27.     Assembly-Version: 4.0.0.0.
  28.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  29.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
  30. ----------------------------------------
  31. System.Core
  32.     Assembly-Version: 4.0.0.0.
  33.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  34.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
  35. ----------------------------------------
  36. System.Windows.Forms
  37.     Assembly-Version: 4.0.0.0.
  38.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  39.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
  40. ----------------------------------------
  41. System.Drawing
  42.     Assembly-Version: 4.0.0.0.
  43.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  44.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
  45. ----------------------------------------
  46. DevExpress.XtraBars.v15.1
  47.     Assembly-Version: 15.1.8.0.
  48.     Win32-Version: 15.1.8.0.
  49.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/DevExpress.XtraBars.v15.1.DLL.
  50. ----------------------------------------
  51. DevExpress.Utils.v15.1
  52.     Assembly-Version: 15.1.8.0.
  53.     Win32-Version: 15.1.8.0.
  54.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/DevExpress.Utils.v15.1.DLL.
  55. ----------------------------------------
  56. DevExpress.XtraEditors.v15.1
  57.     Assembly-Version: 15.1.8.0.
  58.     Win32-Version: 15.1.8.0.
  59.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/DevExpress.XtraEditors.v15.1.DLL.
  60. ----------------------------------------
  61. ActiproSoftware.SyntaxEditor.WinForms
  62.     Assembly-Version: 14.1.322.0.
  63.     Win32-Version: 14.1.322.0.
  64.     CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/ActiproSoftware.SyntaxEditor.WinForms/14.1.322.0__c27e062d3c1a4763/ActiproSoftware.SyntaxEditor.WinForms.dll.
  65. ----------------------------------------
  66. ActiproSoftware.Shared.WinForms
  67.     Assembly-Version: 14.1.322.0.
  68.     Win32-Version: 14.1.322.0.
  69.     CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/ActiproSoftware.Shared.WinForms/14.1.322.0__c27e062d3c1a4763/ActiproSoftware.Shared.WinForms.dll.
  70. ----------------------------------------
  71. LogicNP.FileView
  72.     Assembly-Version: 12.0.0.0.
  73.     Win32-Version: 12.0.0.0.
  74.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/LogicNP.FileView.DLL.
  75. ----------------------------------------
  76. System.Xml
  77.     Assembly-Version: 4.0.0.0.
  78.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  79.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
  80. ----------------------------------------
  81. Microsoft.WindowsAPICodePack.Shell
  82.     Assembly-Version: 1.1.0.0.
  83.     Win32-Version: 1.1.0.0.
  84.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/Microsoft.WindowsAPICodePack.Shell.DLL.
  85. ----------------------------------------
  86. DevExpress.Data.v15.1
  87.     Assembly-Version: 15.1.8.0.
  88.     Win32-Version: 15.1.8.0.
  89.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/DevExpress.Data.v15.1.DLL.
  90. ----------------------------------------
  91. System.Design
  92.     Assembly-Version: 4.0.0.0.
  93.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  94.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll.
  95. ----------------------------------------
  96. System.Web
  97.     Assembly-Version: 4.0.0.0.
  98.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  99.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll.
  100. ----------------------------------------
  101. PrimalSQL.Common
  102.     Assembly-Version: 1.0.3.0.
  103.     Win32-Version: 1.0.3.0.
  104.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/PrimalSQL.Common.DLL.
  105. ----------------------------------------
  106. System.ServiceProcess
  107.     Assembly-Version: 4.0.0.0.
  108.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  109.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll.
  110. ----------------------------------------
  111. PSSyntaxCheckV3
  112.     Assembly-Version: 1.3.3.0.
  113.     Win32-Version: 1.3.3.0.
  114.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/PSSyntaxCheckV3.DLL.
  115. ----------------------------------------
  116. PSSyntaxCheck
  117.     Assembly-Version: 1.0.3.0.
  118.     Win32-Version: 1.0.3.0.
  119.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/PSSyntaxCheck.DLL.
  120. ----------------------------------------
  121. mscorlib.resources
  122.     Assembly-Version: 4.0.0.0.
  123.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  124.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
  125. ----------------------------------------
  126. LogicNP.FolderView
  127.     Assembly-Version: 12.0.0.0.
  128.     Win32-Version: 12.0.0.0.
  129.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/LogicNP.FolderView.DLL.
  130. ----------------------------------------
  131. LogicNP.ShComboBox
  132.     Assembly-Version: 12.0.0.0.
  133.     Win32-Version: 12.0.0.0.
  134.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/LogicNP.ShComboBox.DLL.
  135. ----------------------------------------
  136. {e0cf4345-866b-4220-9983-57299acceb02}
  137.     Assembly-Version: 0.0.0.0.
  138.     Win32-Version: 4.2.99.0.
  139.     CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/PowerShell%20Studio.exe.
  140. ----------------------------------------
  141. System.Configuration
  142.     Assembly-Version: 4.0.0.0.
  143.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  144.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
  145. ----------------------------------------
  146. System.Data.Linq
  147.     Assembly-Version: 4.0.0.0.
  148.     Win32-Version: 4.6.1038.0.
  149.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Data.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Linq.dll.
  150. ----------------------------------------
  151. Anonymously Hosted DynamicMethods Assembly
  152.     Assembly-Version: 0.0.0.0.
  153.     Win32-Version: 4.6.1063.1 built by: NETFXREL3STAGE.
  154.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll.
  155. ----------------------------------------
  156. Accessibility
  157.     Assembly-Version: 4.0.0.0.
  158.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  159.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll.
  160. ----------------------------------------
  161. System.Windows.Forms.resources
  162.     Assembly-Version: 4.0.0.0.
  163.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  164.     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.
  165. ----------------------------------------
  166. UIAutomationClient
  167.     Assembly-Version: 4.0.0.0.
  168.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  169.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/UIAutomationClient/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationClient.dll.
  170. ----------------------------------------
  171. PresentationCore
  172.     Assembly-Version: 4.0.0.0.
  173.     Win32-Version: 4.6.1063.1 built by: NETFXREL3STAGE.
  174.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll.
  175. ----------------------------------------
  176. WindowsBase
  177.     Assembly-Version: 4.0.0.0.
  178.     Win32-Version: 4.6.1063.1 built by: NETFXREL3STAGE.
  179.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll.
  180. ----------------------------------------
  181. System.xml.resources
  182.     Assembly-Version: 4.0.0.0.
  183.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  184.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Xml.resources.dll.
  185. ----------------------------------------
  186. System.Management.Automation
  187.     Assembly-Version: 3.0.0.0.
  188.     Win32-Version: 10.0.10586.63.
  189.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management.Automation/v4.0_3.0.0.0__31bf3856ad364e35/System.Management.Automation.dll.
  190. ----------------------------------------
  191. System.Numerics
  192.     Assembly-Version: 4.0.0.0.
  193.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  194.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll.
  195. ----------------------------------------
  196. Microsoft.Management.Infrastructure
  197.     Assembly-Version: 1.0.0.0.
  198.     Win32-Version: 10.0.10586.0.
  199.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Management.Infrastructure/v4.0_1.0.0.0__31bf3856ad364e35/Microsoft.Management.Infrastructure.dll.
  200. ----------------------------------------
  201. System.DirectoryServices
  202.     Assembly-Version: 4.0.0.0.
  203.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  204.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.DirectoryServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll.
  205. ----------------------------------------
  206. System.Management
  207.     Assembly-Version: 4.0.0.0.
  208.     Win32-Version: 4.6.1038.0 built by: NETFXREL2.
  209.     CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll.
  210. ----------------------------------------
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

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

Post by davidc »

The issue will be resolved in the next service release.

David
David
SAPIEN Technologies, Inc.
This topic is 8 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.