rfvgyhn / min-ed-launcher

Minimal Elite Dangerous Launcher
MIT License
252 stars 9 forks source link

Couldn't extract salt - System.IO.FileNotFoundException #55

Closed RexTheCapt closed 1 year ago

RexTheCapt commented 1 year ago

Every single time i try to run min-ed, i keep getting the same error. Got the same error before updating to v0.6.0. Is there a fix for this?

I am running windows 11.

Log:

[18:43:55 INF] Elite Dangerous: Minimal Launcher - v0.6.0+8103a3a6
[18:43:56 ERR] Couldn't extract salt - System.IO.FileNotFoundException:
IO_FileName_Name, C:\Users\user\ClientSupport.dll
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr , String , String , ObjectHandleOnStack )
   at System.Runtime.Loader.AssemblyLoadContext.InternalLoadFromPath(String , String )
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String )
   at System.Reflection.Assembly.LoadFrom(String )
   at MinEdLauncher.Cobra.getSalt@42.Invoke(Unit unitVar)
rfvgyhn commented 1 year ago

There might be a bug when trying to resolve the path to ClientSupport.dll. I won't have access to a computer for a few days to check though. A couple things you could try until then:

RexTheCapt commented 1 year ago

I did as your instructions said.

My console output is:

[12:10:32 INF] Elite Dangerous: Minimal Launcher - v0.6.0+8103a3a6
[12:10:33 ERR] Couldn't extract salt - System.IO.FileNotFoundException:
IO_FileName_Name, C:\Users\user\ClientSupport.dll
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr , String , String , ObjectHandleOnStack )
   at System.Runtime.Loader.AssemblyLoadContext.InternalLoadFromPath(String , String )
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String )
   at System.Reflection.Assembly.LoadFrom(String )
   at MinEdLauncher.Cobra.getSalt@42.Invoke(Unit unitVar)

[process exited with code 1 (0x00000001)]

Here is my log file (censored my username in filepaths): min-ed-launcher.censored.log

rfvgyhn commented 1 year ago

So it looks like you have the normal launcher installed at C:\Users[user], is that correct? Does the ClientSupport.dll file exist there too?

RexTheCapt commented 1 year ago

The launcher is downloaded thru steam, but I usually just start it standalone without steam most of the time due to a script I have. I do not have any DLL files in my root user directory.

From: Chris @.> Sent: 19 September 2022 21:59 To: rfvgyhn/min-ed-launcher @.> Cc: RexTheCapt @.>; Author @.> Subject: Re: [rfvgyhn/min-ed-launcher] Couldn't extract salt - System.IO.FileNotFoundException (Issue #55)

So it looks like you have the normal launcher installed at C:\Users[user], is that correct? Does the ClientSupport.dll file exist there too?

— Reply to this email directly, view it on GitHub https://github.com/rfvgyhn/min-ed-launcher/issues/55#issuecomment-1251483070 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTCFMT7EE6K3ALOPR7TGW3V7DAYXANCNFSM6AAAAAAQOPXHYE . You are receiving this because you authored the thread. https://github.com/notifications/beacon/ABTCFMXQYIWY6ZBK2JF5IALV7DAYXA5CNFSM6AAAAAAQOPXHYGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSKTAO34.gif Message ID: @. @.> >

rfvgyhn commented 1 year ago

What triggers your script to run, what's the path to it and how does your script start the launcher? This looks like a working directory issue.

RexTheCapt commented 1 year ago

It’s a manually ran script whenever I want to start the game, I have multiple accounts that I run. The command looks like this:


$Host.UI.RawUI.WindowTitle = "ED <accountName>"

Start-Process -FilePath '<SteamLibrary>\\steamapps\\common\\Elite Dangerous\\MinEdLauncher.exe' -ArgumentList "/frontier <fdevAccount> /autoquit"

I have placed it in a directory I use for all my scripts, it is also added top the system path variable so I can run it anywhere. I have just noticed while writing this that the default location in powershell (or WindowsTerminal) is C:\Users\

I added -WorkingDirectory to Start-Process and that fixed the issue… thank you for pointing that out.

From: Chris @.> Sent: 20 September 2022 02:16 To: rfvgyhn/min-ed-launcher @.> Cc: RexTheCapt @.>; Author @.> Subject: Re: [rfvgyhn/min-ed-launcher] Couldn't extract salt - System.IO.FileNotFoundException (Issue #55)

What triggers your script to run, what's the path to it and how does your script start the launcher? This looks like a working directory issue.

— Reply to this email directly, view it on GitHub https://github.com/rfvgyhn/min-ed-launcher/issues/55#issuecomment-1251698369 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTCFMTFJC4P35IZZ56LKY3V7D65NANCNFSM6AAAAAAQOPXHYE . You are receiving this because you authored the thread. https://github.com/notifications/beacon/ABTCFMSVA2W7CVZ7GVUOYITV7D65NA5CNFSM6AAAAAAQOPXHYGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSKTNTMC.gif Message ID: @. @.> >