Launchbox crashes on startup

Issue #6693 resolved
Paul Green created an issue

Launch box is crashing on start up at the “loading interface” stage.

  • Launch box version: 12.7
  • Windows 11

Issue occurs every time that Launch box is run.

Error that shows up is below:

(Inner Exception)

Could not load file or assembly 'System.Net.WebHeaderCollection, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Format of the executable (.exe) or library (.dll) is invalid.

App:     LaunchBox
Version: 12.7
Type:    System.BadImageFormatException
Site:    System.Net.WebRequest System.Net.IWebRequestCreate.Create(System.Uri)
Source:  PresentationCore

   at System.IO.Packaging.PackWebRequestFactory.System.Net.IWebRequestCreate.Create(Uri uri)
   at System.IO.Packaging.PackWebRequestFactory.CreateWebRequest(Uri uri)
   at MS.Internal.WpfWebRequestHelper.CreateRequest(Uri uri)
   at System.Windows.ResourceDictionary.set_Source(Uri value)
   at System.Windows.Baml2006.WpfSharedBamlSchemaContext.<>c.<Create_BamlProperty_ResourceDictionary_Source>b__342_0(Object target, Object value)
   at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)


(Outer Exception)

Set property 'System.Windows.ResourceDictionary.Source' threw an exception.

App:     LaunchBox
Version: 12.7
Type:    System.Windows.Markup.XamlParseException
Site:    Void RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri)
Source:  PresentationFramework

   at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at Unbroken.LaunchBox.Windows.Desktop.App.UpdatePrincipalCreator(Object , Object )
   at Unbroken.LaunchBox.Windows.Desktop.App.InitializeComponent()
   at ResolverParam.MapPrincipalMap(Object , ResolverParam )
   at Unbroken.LaunchBox.Windows.Desktop.Program.Main(String[] args)

Recent Log:

   00:47:15 Exception

Comments (21)

  1. Christian

    I’m not recognizing some of those name spaces in the error. Do you have any plugins in your \\LaunchBox\Plugins\ folder?

  2. Christian

    Can you run the installer again on your LaunchBox directory and make sure that one of your files didn’t get corrupted. When doing so make sure it points to your LaunchBox folder correctly and not \\LaunchBox\LaunchBox

  3. Paul Green reporter

    Ok I ran the installer again making sure that it’s pointing to my current LaunchBox folder. It ran through the install, updated/installed direct x sdk after which it tries to launch Launch box and hits the same error.

  4. Paul Green reporter

    I have now tried dropping back to Launchbox 12.6 but I get the same issue:

    (Inner Exception)
    
    Could not load file or assembly 'System.Net.WebHeaderCollection, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Format of the executable (.exe) or library (.dll) is invalid.
    
    App:     LaunchBox
    Version: 12.6
    Type:    System.BadImageFormatException
    Site:    System.Net.WebRequest System.Net.IWebRequestCreate.Create(System.Uri)
    Source:  PresentationCore
    
       at System.IO.Packaging.PackWebRequestFactory.System.Net.IWebRequestCreate.Create(Uri uri)
       at System.IO.Packaging.PackWebRequestFactory.CreateWebRequest(Uri uri)
       at MS.Internal.WpfWebRequestHelper.CreateRequest(Uri uri)
       at System.Windows.ResourceDictionary.set_Source(Uri value)
       at System.Windows.Baml2006.WpfSharedBamlSchemaContext.<>c.<Create_BamlProperty_ResourceDictionary_Source>b__342_0(Object target, Object value)
       at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
       at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
       at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
    
    
    (Outer Exception)
    
    Set property 'System.Windows.ResourceDictionary.Source' threw an exception.
    
    App:     LaunchBox
    Version: 12.6
    Type:    System.Windows.Markup.XamlParseException
    Site:    Void RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri)
    Source:  PresentationFramework
    
       at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
       at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
       at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
       at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
       at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
       at Unbroken.LaunchBox.Windows.Desktop.App.ValidateFailureRole(Object , Object )
       at Unbroken.LaunchBox.Windows.Desktop.App.InitializeComponent()
       at SetterDic.FillFailureConfig(Object , SetterDic )
       at Unbroken.LaunchBox.Windows.Desktop.Program.Main(String[] args)
    
    Recent Log:
    
       15:24:33 Exception
    

  5. Christian

    Can you open up command prompt as administrator and run the following command “sfc /scannow" (without quotes) and let it run then restart your computer. It looks like you have some corrupted runtime DLLs potentially. This should potentially help correct it. Make sure you restart your computer after doing so.

  6. Paul Green reporter

    I ran the scan as admin, it didn’t find anything. I restarted afterwards and tried Launchbox and get the same error. If it is some DLLs that are potentially the issue is there any other way to identify them?

  7. Paul Green reporter

    I have updated to Launchbox 12.8 and I am still getting the issue. Currently unable to use Launchbox at all 😞

  8. Christian

    Could you post the new error message? I’m curious to see if there any differences that could help resolve the issue.

  9. Paul Green reporter

    It has changed a little in that I cannot properly view the error now. It appears like this I cannot move the launchbox bar and then it closes the window after a few seconds. From the top line of the error it looks like the same issue though. I will try and get a better view of the error and upload if possible.

  10. Paul Green reporter

    Managed to get the bar out of the way but that is the best I can get before the window auto closes. Does look like it is a little different than before, now that the rest of the error can be seen.

  11. Paul Green reporter

    Hi just updated to 12.9 and still having issues

    (Inner Exception)
    
    Could not load file or assembly 'System.Net.WebHeaderCollection, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Format of the executable (.exe) or library (.dll) is invalid.
    
    App:     LaunchBox
    Version: 12.9
    Type:    System.BadImageFormatException
    Site:    System.Net.WebRequest System.Net.IWebRequestCreate.Create(System.Uri)
    Source:  PresentationCore
    
       at System.IO.Packaging.PackWebRequestFactory.System.Net.IWebRequestCreate.Create(Uri uri)
       at System.IO.Packaging.PackWebRequestFactory.CreateWebRequest(Uri uri)
       at MS.Internal.WpfWebRequestHelper.CreateRequest(Uri uri)
       at System.Windows.ResourceDictionary.set_Source(Uri value)
       at System.Windows.Baml2006.WpfSharedBamlSchemaContext.<>c.<Create_BamlProperty_ResourceDictionary_Source>b__342_0(Object target, Object value)
       at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
       at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
       at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
    
    
    (Outer Exception)
    
    Set property 'System.Windows.ResourceDictionary.Source' threw an exception.
    
    App:     LaunchBox
    Version: 12.9
    Type:    System.Windows.Markup.XamlParseException
    Site:    Void RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri)
    Source:  PresentationFramework
    
       at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
       at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
       at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
       at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
       at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
       at Unbroken.LaunchBox.Windows.Desktop.App.CalcInterfaceAuthentication(Object , Object )
       at Unbroken.LaunchBox.Windows.Desktop.App.InitializeComponent()
       at CandidateDispatcher.DestroyInterfaceMock(Object , CandidateDispatcher )
       at Unbroken.LaunchBox.Windows.Desktop.Program.Main(String[] args)
    
    Recent Log:
    
       12:25:16 Exception
    

  12. Paul Green reporter

    I was looking at themes before this all happened. I’m not sure if I am on the default or not. How can I check without loading up launchbox? Is there a config I can check?

  13. brian

    I am curious to know what would happen if you install a fresh copy of LaunchBox in a different location. If it still has the same issue, that would point to Windows, if it doesn’t, that would point to LaunchBox.

  14. Christian

    Can you try to go to Add/Remove Programs and look for any record starting with “Microsoft .NET Core” and remove them and restart your computer. Then go to https://dotnet.microsoft.com/en-us/download/dotnet/3.1 and download the .NET Core 3.1 Desktop Runtime. You want the x64 one. Once downloaded, run that and restart the computer again. Then try opening LaunchBox. Something is corrupt in either your .NET Core runtime or your .NET Framework 4.8 and need to track down which.

  15. Paul Green reporter

    I cleared out as much of the .NET framework as I could and started again. That appears to have resolved the issue. Thank you for all the help locating and resolving the problem

  16. Log in to comment