Options

Unhandled Exception - Import / Export -

PruPru Posts: 5 New member
Was trying to Export / Import list of servers.  Multi Script crashed.  When I restarted the software I get an Unhandled Exception Error and all my previous scripts and Database Distribution List was empty.  I tried to Uninstall the single tool and then Resinstall.  Did not fix the issue.  Clicking Continue will bring you to the tool but clicking on anything else generates the same Unhandled Exception Error.  Great tool when it works.  Would like to figure out how to get this tool working again.  All other Tools are working.  Error Details are noted below. 


Screen scrape of tool when you click Continue.  Clicking on any other buttons generates the same error above. 



Multi Script Version:  SQL Multi Script 1.5.11.2072

=========================

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: Sequence contains more than one matching element
   at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at SQLMultiScript.MainForm.get_DatabasesValidForExecution()
   at SQLMultiScript.MainForm.get_IsValidForExecution()
   at SQLMultiScript.MainForm.EnableExecuteAndParseButtons(Boolean value)
   at SQLMultiScript.ScriptSelector.UpdateTextBox(ScriptViewModel svm)
   at SQLMultiScript.ScriptSelector.ScriptSelector_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(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.Form.WmShowWindow(Message& m)
   at RedGate.Honeycomb.Winforms.HoneycombMainForm.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4614.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
SQLMultiScript
    Assembly Version: 1.5.11.2072
    Win32 Version: 1.5.11.2072
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/SQLMultiScript.exe
----------------------------------------
RedGate.Shared.Controls
    Assembly Version: 19.0.0.0
    Win32 Version: 19.4.625.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.Shared.Controls.DLL
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4550.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4605.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
RedGate.SQLMultiScript.Engine
    Assembly Version: 1.5.11.2072
    Win32 Version: 1.5.11.2072
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.SQLMultiScript.Engine.DLL
----------------------------------------
RedGate.Legacy.Serialization
    Assembly Version: 1.0.0.0
    Win32 Version: 1.3.157.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.Legacy.Serialization.DLL
----------------------------------------
RedGate.Honeycomb.Winforms
    Assembly Version: 3.0.46.0
    Win32 Version: 3.0.46.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.Honeycomb.Winforms.DLL
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4605.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
RedGate.Usage.Client
    Assembly Version: 15.0.0.0
    Win32 Version: 15.2.0.1370
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.Usage.Client.DLL
----------------------------------------
System.Data.SQLite
    Assembly Version: 1.0.117.0
    Win32 Version: 1.0.117.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/System.Data.SQLite.DLL
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4584.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.Net.Http
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
----------------------------------------
DevExpress.XtraEditors.v17.2
    Assembly Version: 17.2.4.0
    Win32 Version: 17.2.4.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/DevExpress.XtraEditors.v17.2.DLL
----------------------------------------
DevExpress.Utils.v17.2
    Assembly Version: 17.2.4.0
    Win32 Version: 17.2.4.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/DevExpress.Utils.v17.2.DLL
----------------------------------------
DevExpress.Data.v17.2
    Assembly Version: 17.2.4.0
    Win32 Version: 17.2.4.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/DevExpress.Data.v17.2.DLL
----------------------------------------
System.DirectoryServices
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4501.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.DirectoryServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll
----------------------------------------
RedGate.Update.Client.WinForms
    Assembly Version: 3.0.0.0
    Win32 Version: 3.1.94.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.Update.Client.WinForms.DLL
----------------------------------------
RedGate.Update.Client.Interfaces
    Assembly Version: 3.0.0.0
    Win32 Version: 3.1.73.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.Update.Client.Interfaces.DLL
----------------------------------------
RedGate.Update.Client
    Assembly Version: 3.0.0.0
    Win32 Version: 3.1.179.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.Update.Client.DLL
----------------------------------------
System.EnterpriseServices
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Management
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4435.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
DevExpress.XtraGrid.v17.2
    Assembly Version: 17.2.4.0
    Win32 Version: 17.2.4.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/DevExpress.XtraGrid.v17.2.DLL
----------------------------------------
System.ComponentModel.DataAnnotations
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
----------------------------------------
DevExpress.XtraLayout.v17.2
    Assembly Version: 17.2.4.0
    Win32 Version: 17.2.4.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/DevExpress.XtraLayout.v17.2.DLL
----------------------------------------
ActiproSoftware.SyntaxEditor.Net20
    Assembly Version: 4.0.287.0
    Win32 Version: 4.0.287.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/ActiproSoftware.SyntaxEditor.Net20.DLL
----------------------------------------
ActiproSoftware.WinUICore.Net20
    Assembly Version: 1.0.104.0
    Win32 Version: 1.0.104.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/ActiproSoftware.WinUICore.Net20.DLL
----------------------------------------
ActiproSoftware.Shared.Net20
    Assembly Version: 1.0.104.0
    Win32 Version: 1.0.104.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/ActiproSoftware.Shared.Net20.DLL
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
RedGate.Client.Common
    Assembly Version: 11.1.1.3369
    Win32 Version: 11.1.1.3369
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.Client.Common.DLL
----------------------------------------
RedGate.Client.Shims.Common
    Assembly Version: 11.1.1.3369
    Win32 Version: 11.1.1.3369
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.Client.Shims.Common.DLL
----------------------------------------
RedGate.Client.ActivationPluginShim.UI.WinForms
    Assembly Version: 11.1.1.3369
    Win32 Version: 11.1.1.3369
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.Client.ActivationPluginShim.UI.WinForms.DLL
----------------------------------------
RedGate.Client.ActivationPluginShim
    Assembly Version: 11.1.1.3369
    Win32 Version: 11.1.1.3369
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.Client.ActivationPluginShim.DLL
----------------------------------------
RedGate.Client.ActivationPluginShim.Vsix
    Assembly Version: 11.1.1.3369
    Win32 Version: 11.1.1.3369
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.Client.ActivationPluginShim.Vsix.DLL
----------------------------------------
RedGate.Ipc
    Assembly Version: 2.2.3.303
    Win32 Version: 2.2.3.303
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.Ipc.DLL
----------------------------------------
RedGate.Client.ActivationPluginShim.UI.Common
    Assembly Version: 11.1.1.3369
    Win32 Version: 11.1.1.3369
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.Client.ActivationPluginShim.UI.Common.DLL
----------------------------------------
System.ServiceProcess
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
System.DirectoryServices.AccountManagement
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.DirectoryServices.AccountManagement/v4.0_4.0.0.0__b77a5c561934e089/System.DirectoryServices.AccountManagement.dll
----------------------------------------
System.DirectoryServices.Protocols
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.DirectoryServices.Protocols/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.Protocols.dll
----------------------------------------
System.ServiceModel
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4536.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll
----------------------------------------
RedgateIpcDynamicProxies
    Assembly Version: 1.0.0.0
    Win32 Version: 2.2.3.303
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.Ipc.dll
----------------------------------------
System.Runtime.Serialization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4536.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Xml.Linq
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
RedGate.Win32
    Assembly Version: 3.0.0.119
    Win32 Version: 3.0.0.119
    CodeBase: file:///C:/Program%20Files%20(x86)/Red%20Gate/SQL%20Multi%20Script%201/RedGate.Win32.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Tagged:

Best Answer

  • Options
    ATurnerATurner Posts: 194 Silver 2
    edited March 20, 2023 5:06PM Answer ✓
    Hi Pru

    Could you close multi script, browse to  %AppData%\Red Gate\SQL Multi Script 1  , then rename the file "Application.dat" within and relaunch multiscript. Does this now work for you?

Answers

  • Options
    PruPru Posts: 5 New member
    Hello ATurner -- Multi Script comes up now without the Unhandled Exception.  I tried to import a Database Distribution List (exported from my old laptop) and the Unhandled Exception error reappeared.  I renamed the Application.dat file again and Multi Script comes back ok.  I will probably need to rebuild the 75+ servers I had from my old laptop just to get back all the servers I take care of.  Has this happened before to anybody else and if so is there a solution to importing an smsdl file so that the Unhandled Exception Error does not come back?  
  • Options
    Hi Pru

    Have you modified the exported distribution list? This error usually occurs when the distribution list is corrupted or in an unexpected format. 
  • Options
    PruPru Posts: 5 New member
    Nothing was modified on the distribution list.  The export of the distribution list was done from a working version before a leased laptop was returned to the leasing company.  Honestly too -- I am not smart enough to open up the file and modify the contents (more like me not wanting to modify file contents because I do not understand the file format).   :D
  • Options
    Hi Pru

    Was it of the same version of multiscript?
  • Options
    PruPru Posts: 5 New member
    Hello ATurner -- 

    Not sure at this point unless there is something stored in the file I can look at to confirm.  However I am pretty sure it was Version 1 where the updated version on my system now is 1.5.
  • Options
    Hi Pru

    Sounds like it might be a version issue, is it possible to update that version and export again?

  • Options
    PruPru Posts: 5 New member
    Hello ATurner -- 

    Unfortunately No.  Version 1 was on an Old laptop (lease return) where having an export of the servers copied to a folder was the route I talk.  Not sure if upgrading the version before exporting would have solved it (It probably would have) however no real way to test it now.  Unfortunate but at this point I will need to rebuild the entire server list.  I think the answer at this point for anybody else coming into this is to have the upgraded version (if their subscription allows it), export from the upgraded version, then import to the upgraded version on the new computer.  

    Maybe I missed something (always possible) but at this point just gotta bite the bullet on my end and hope for something better on the next lease return laptop in 3 or so years.  

    Thanks for the replies though.  Been an interesting conversation.  :-)
Sign In or Register to comment.