Open mark--stephenson opened 1 year ago
@MarkMpn can you tell us if you merge ScintillaNet assembly with your tool assembly or if it is added in a subfolder. I guess using it in a subfolder leads to conflict with other tools using it also.
Neither, since it’s been included in XrmToolBox I haven’t shipped it at all and rely on it being available as part of the default installation.
@mark--stephenson Still an issue? There does not seem to be anything special here, so it might eventually be related to your computer only
Describe the bug When opening certain plugins, or using the code editor functionality in some plugins, I get an error. I initially raised this as an issue with "SQL4CDS", but I have also noticed the error in FetchXML builder, so thought I would raise the issue here in case it's more an issue with XrmToolBox than the individual plugins.
To Reproduce Open XrmToolBox, connect to Dynamics instance, open SQL 4 CDS
Expected behavior The error not to happen, and to be able to use the plugin.
Screenshots
** Exception Text ** System.ComponentModel.Win32Exception (0x80004005): The Scintilla module has no export for the 'Scintilla_DirectFunction' procedure.
Full exception output below.
Desktop (please complete the following information): SQL 4 CDS 7.6.0.0 XRM Toolbox 1.2023.9.66
Additional context
Exception Text System.ComponentModel.Win32Exception (0x80004005): The Scintilla module has no export for the 'Scintilla_DirectFunction' procedure. ---> System.ComponentModel.Win32Exception (0x80004005): The specified procedure could not be found at ScintillaNET.Scintilla.get_CreateParams() at System.Windows.Forms.Control..ctor(Boolean autoInstallSyncContext) at ScintillaNET.Scintilla..ctor() at MarkMpn.Sql4Cds.XTB.SqlQueryControl.CreateEditor() at MarkMpn.Sql4Cds.XTB.SqlQueryControl.CreateSqlEditor() at MarkMpn.Sql4Cds.XTB.SqlQueryControl..ctor(ConnectionDetail con, IDictionary
2 dataSources, TelemetryClient ai, Action
1 showFetchXml, Action`1 log, PropertiesWindow properties) at MarkMpn.Sql4Cds.XTB.PluginControl.CreateQuery(ConnectionDetail con, String sql) at MarkMpn.Sql4Cds.XTB.PluginControl.PluginControl_Load(Object sender, EventArgs e) at System.Windows.Forms.UserControl.OnLoad(EventArgs e) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)Loaded Assemblies XrmToolBox Assembly Version: 1.2023.9.66 Win32 Version: 1.2023.9.66 CodeBase: file:///C:/Tools/XrmToolbox/XrmToolBox.exe
XrmToolBox.Extensibility Assembly Version: 1.2023.9.66 Win32 Version: 1.2023.9.66 CodeBase: file:///C:/Tools/XrmToolbox/XrmToolBox.Extensibility.DLL
NuGet.Common Assembly Version: 6.4.0.123 Win32 Version: 6.4.0.123 CodeBase: file:///C:/Tools/XrmToolbox/NuGet.Common.DLL
NuGet.Packaging Assembly Version: 6.4.0.123 Win32 Version: 6.4.0.123 CodeBase: file:///C:/Tools/XrmToolbox/NuGet.Packaging.DLL
NuGet.Protocol Assembly Version: 6.4.0.123 Win32 Version: 6.4.0.123 CodeBase: file:///C:/Tools/XrmToolbox/NuGet.Protocol.DLL
Newtonsoft.Json Assembly Version: 13.0.0.0 Win32 Version: 13.0.2.27524 CodeBase: file:///C:/Tools/XrmToolbox/Newtonsoft.Json.DLL
McTools.Xrm.Connection Assembly Version: 1.2023.6.56 Win32 Version: 1.2023.6.56 CodeBase: file:///C:/Tools/XrmToolbox/McTools.Xrm.Connection.DLL
McTools.Xrm.Connection.WinForms Assembly Version: 1.2023.6.56 Win32 Version: 1.2023.6.56 CodeBase: file:///C:/Tools/XrmToolbox/McTools.Xrm.Connection.WinForms.DLL
Microsoft.Xrm.Sdk Assembly Version: 9.0.0.0 Win32 Version: 9.2.49.3165 CodeBase: file:///C:/Tools/XrmToolbox/Microsoft.Xrm.Sdk.DLL
Microsoft.Xrm.Sdk.Workflow Assembly Version: 9.0.0.0 Win32 Version: 9.2.49.665 CodeBase: file:///C:/Tools/XrmToolbox/Microsoft.Xrm.Sdk.Workflow.DLL
Microsoft.Crm.Sdk.Proxy Assembly Version: 9.0.0.0 Win32 Version: 9.2.49.3165 CodeBase: file:///C:/Tools/XrmToolbox/Microsoft.Crm.Sdk.Proxy.DLL
Microsoft.Xrm.Tooling.Connector Assembly Version: 4.0.0.0 Win32 Version: 4.0.0.155 CodeBase: file:///C:/Tools/XrmToolbox/Microsoft.Xrm.Tooling.Connector.DLL
Microsoft.Xrm.Tooling.Ui.Styles Assembly Version: 4.0.0.0 Win32 Version: 4.0.0.155 CodeBase: file:///C:/Tools/XrmToolbox/Microsoft.Xrm.Tooling.Ui.Styles.DLL
Microsoft.Xrm.Tooling.CrmConnectControl Assembly Version: 4.0.0.0 Win32 Version: 4.0.0.155 CodeBase: file:///C:/Tools/XrmToolbox/Microsoft.Xrm.Tooling.CrmConnectControl.DLL
Microsoft.IdentityModel.Clients.ActiveDirectory Assembly Version: 5.3.0.0 Win32 Version: 5.3.0.0 CodeBase: file:///C:/Tools/XrmToolbox/Microsoft.IdentityModel.Clients.ActiveDirectory.DLL
WeifenLuo.WinFormsUI.Docking Assembly Version: 3.0.6.0 Win32 Version: 3.0.6.0 CodeBase: file:///C:/Tools/XrmToolbox/WeifenLuo.WinFormsUI.Docking.DLL
WeifenLuo.WinFormsUI.Docking.ThemeVS2015 Assembly Version: 3.0.6.0 Win32 Version: 3.0.6.0 CodeBase: file:///C:/Tools/XrmToolbox/WeifenLuo.WinFormsUI.Docking.ThemeVS2015.DLL
ScintillaNET Assembly Version: 3.6.3.0 Win32 Version: 3.6.3.0 CodeBase: file:///C:/Tools/XrmToolbox/ScintillaNET.DLL