Support Forums

[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: 197
Joined: Sun Mar 03, 2013 12:45 pm

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

Postby 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:

System.InvalidCastException: Das Objekt des Typs "System.Xml.XmlComment" kann nicht in Typ "System.Xml.XmlElement" umgewandelt werden.
bei ..(Type , Char , String )
bei ..(MemberInfo )
bei ..(SyntaxEditor , EventArgs )
bei ActiproSoftware.SyntaxEditor.SyntaxEditor.#VZe(EventArgs #yhb)
bei #CLe.#4Le.UpdateDescriptionTip()
bei #CLe.#4Le.#Njc(SyntaxEditor #bCb)
bei ActiproSoftware.SyntaxEditor.SyntaxEditor.#Njc()
bei ActiproSoftware.SyntaxEditor.SyntaxEditor.#F2e(Object #xhb, EventArgs #yhb)
bei System.Windows.Forms.Timer.OnTick(EventArgs e)
bei System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 
 
************** Geladene Assemblys **************
mscorlib
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1063.1 built by: NETFXREL3STAGE.
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll.
----------------------------------------
PowerShell Studio
Assembly-Version: 4.2.99.0.
Win32-Version: 4.2.99.0.
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/PowerShell%20Studio.exe.
----------------------------------------
System
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Core
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
----------------------------------------
System.Windows.Forms
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System.Drawing
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
DevExpress.XtraBars.v15.1
Assembly-Version: 15.1.8.0.
Win32-Version: 15.1.8.0.
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/DevExpress.XtraBars.v15.1.DLL.
----------------------------------------
DevExpress.Utils.v15.1
Assembly-Version: 15.1.8.0.
Win32-Version: 15.1.8.0.
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/DevExpress.Utils.v15.1.DLL.
----------------------------------------
DevExpress.XtraEditors.v15.1
Assembly-Version: 15.1.8.0.
Win32-Version: 15.1.8.0.
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/DevExpress.XtraEditors.v15.1.DLL.
----------------------------------------
ActiproSoftware.SyntaxEditor.WinForms
Assembly-Version: 14.1.322.0.
Win32-Version: 14.1.322.0.
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/ActiproSoftware.SyntaxEditor.WinForms/14.1.322.0__c27e062d3c1a4763/ActiproSoftware.SyntaxEditor.WinForms.dll.
----------------------------------------
ActiproSoftware.Shared.WinForms
Assembly-Version: 14.1.322.0.
Win32-Version: 14.1.322.0.
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/ActiproSoftware.Shared.WinForms/14.1.322.0__c27e062d3c1a4763/ActiproSoftware.Shared.WinForms.dll.
----------------------------------------
LogicNP.FileView
Assembly-Version: 12.0.0.0.
Win32-Version: 12.0.0.0.
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/LogicNP.FileView.DLL.
----------------------------------------
System.Xml
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
Microsoft.WindowsAPICodePack.Shell
Assembly-Version: 1.1.0.0.
Win32-Version: 1.1.0.0.
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/Microsoft.WindowsAPICodePack.Shell.DLL.
----------------------------------------
DevExpress.Data.v15.1
Assembly-Version: 15.1.8.0.
Win32-Version: 15.1.8.0.
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/DevExpress.Data.v15.1.DLL.
----------------------------------------
System.Design
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll.
----------------------------------------
System.Web
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll.
----------------------------------------
PrimalSQL.Common
Assembly-Version: 1.0.3.0.
Win32-Version: 1.0.3.0.
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/PrimalSQL.Common.DLL.
----------------------------------------
System.ServiceProcess
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll.
----------------------------------------
PSSyntaxCheckV3
Assembly-Version: 1.3.3.0.
Win32-Version: 1.3.3.0.
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/PSSyntaxCheckV3.DLL.
----------------------------------------
PSSyntaxCheck
Assembly-Version: 1.0.3.0.
Win32-Version: 1.0.3.0.
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/PSSyntaxCheck.DLL.
----------------------------------------
mscorlib.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
----------------------------------------
LogicNP.FolderView
Assembly-Version: 12.0.0.0.
Win32-Version: 12.0.0.0.
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/LogicNP.FolderView.DLL.
----------------------------------------
LogicNP.ShComboBox
Assembly-Version: 12.0.0.0.
Win32-Version: 12.0.0.0.
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/LogicNP.ShComboBox.DLL.
----------------------------------------
{e0cf4345-866b-4220-9983-57299acceb02}
Assembly-Version: 0.0.0.0.
Win32-Version: 4.2.99.0.
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202015/PowerShell%20Studio.exe.
----------------------------------------
System.Configuration
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.Data.Linq
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Data.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Linq.dll.
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly-Version: 0.0.0.0.
Win32-Version: 4.6.1063.1 built by: NETFXREL3STAGE.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll.
----------------------------------------
Accessibility
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll.
----------------------------------------
System.Windows.Forms.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
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.
----------------------------------------
UIAutomationClient
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/UIAutomationClient/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationClient.dll.
----------------------------------------
PresentationCore
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1063.1 built by: NETFXREL3STAGE.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll.
----------------------------------------
WindowsBase
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1063.1 built by: NETFXREL3STAGE.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll.
----------------------------------------
System.xml.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Xml.resources.dll.
----------------------------------------
System.Management.Automation
Assembly-Version: 3.0.0.0.
Win32-Version: 10.0.10586.63.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management.Automation/v4.0_3.0.0.0__31bf3856ad364e35/System.Management.Automation.dll.
----------------------------------------
System.Numerics
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll.
----------------------------------------
Microsoft.Management.Infrastructure
Assembly-Version: 1.0.0.0.
Win32-Version: 10.0.10586.0.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Management.Infrastructure/v4.0_1.0.0.0__31bf3856ad364e35/Microsoft.Management.Infrastructure.dll.
----------------------------------------
System.DirectoryServices
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.DirectoryServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll.
----------------------------------------
System.Management
Assembly-Version: 4.0.0.0.
Win32-Version: 4.6.1038.0 built by: NETFXREL2.
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll.
----------------------------------------
User avatar
davidc
Posts: 4354
Joined: Thu Aug 18, 2011 4:56 am

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

Postby davidc » Thu Feb 11, 2016 9:49 am

The issue will be resolved in the next service release.

David
David
SAPIEN Technologies, Inc.

Return to “PowerShell Studio”

Who is online

Users browsing this forum: No registered users and 2 guests