Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot close "Could not load file or assembly ChilkatDotNet47, Version=9.5.0.90" #243

Closed
KoalaBear84 opened this issue Jul 20, 2022 · 10 comments · Fixed by #280
Closed

Cannot close "Could not load file or assembly ChilkatDotNet47, Version=9.5.0.90" #243

KoalaBear84 opened this issue Jul 20, 2022 · 10 comments · Fixed by #280
Assignees
Labels
bug Pesky little gritter, needs squashing
Milestone

Comments

@KoalaBear84
Copy link

Bug

Clean install, cannot close LogExpert, and maybe other things not working. See video.

WindowsSandboxClient_PXLxn5INRc.mp4

Could not load file or assembly 'ChilkatDotNet47, Version=9.5.0.90, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd' or one of its dependencies. The specified module could not be found.

FileNotFoundException
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at LogExpert.Classes.PluginRegistry.LoadPlugins()
   at LogExpert.Classes.PluginRegistry.GetInstance()
   at LogExpert.Classes.LogExpertProxy.WindowClosed(LogTabWindow logWin)
   at LogExpert.Controls.LogTabWindow.LogTabWindow.OnLogTabWindowClosing(Object sender, CancelEventArgs e)
   at System.Windows.Forms.Form.OnClosing(CancelEventArgs e)
   at System.Windows.Forms.Form.WmClose(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
@Hirogen Hirogen added the bug Pesky little gritter, needs squashing label Jul 20, 2022
@Hirogen
Copy link
Collaborator

Hirogen commented Jul 20, 2022

This seems odd, trys to load the plugin while WindowClosed is called, but there is no loading in the vicinity.

Does this happen everytime you close it?
Does this also happen if a file is open?
Is the ChilkatDotNet47 in the plugin folder?
Is the dll blocked? => https://github.com/zarunbal/LogExpert/wiki/FAQ

image

@Hirogen
Copy link
Collaborator

Hirogen commented Jul 20, 2022

Hmm it seems the pluginregistry was not correctly initialized

@KoalaBear84
Copy link
Author

Sorry, didn't see the question as the mail preview only showed the first line.

Is it then also related to #242 ?

@Hirogen
Copy link
Collaborator

Hirogen commented Jul 20, 2022

Sorry, didn't see the question as the mail preview only showed the first line.

Is it then also related to #242 ?

no this is a different issue, because the ChilkatDotNet47 dll is used for the sftp plugin

@Hirogen
Copy link
Collaborator

Hirogen commented Jul 20, 2022

I'm currently a little bit baffled, because the PluginRegistry was not initialized, even though as soon as the "LogWindow" is Displayed it will be initilized

I'm currently downloading a windows vm to test this on a clean install, since my home system is compromised by Logexpert :D

@Hirogen Hirogen self-assigned this Jul 20, 2022
@Hirogen Hirogen added this to the Release 1.9.1 milestone Jul 20, 2022
@KoalaBear84
Copy link
Author

You can easily test it with Windows Sandbox if you have it.

Does this happen everytime you close it?
Yes

Does this also happen if a file is open?
I get the same exception when opening a file.

Is the ChilkatDotNet47 in the plugin folder?
Yes
image

Is the dll blocked? => https://github.com/zarunbal/LogExpert/wiki/FAQ
No
image
image

@Hirogen
Copy link
Collaborator

Hirogen commented Jul 20, 2022

You can easily test it with Windows Sandbox if you have it.

Ah, I never considered that, and yeah, I can reproduce the error with the sandbox version :)

@Hirogen
Copy link
Collaborator

Hirogen commented Jul 20, 2022

Files:

  • ChilkatDotNet47.dll
  • SftpFileSystem.dll
    should not be part of the setup, just double checked
    explicit dll transfering in the setup #244
    I updated the setup, to remove those 2 dlls, but still need to fix the loading part, so issue will be left open

@Hirogen
Copy link
Collaborator

Hirogen commented Mar 20, 2023

#273
both have the same plugin

@Hirogen Hirogen linked a pull request Mar 23, 2023 that will close this issue
@Hirogen
Copy link
Collaborator

Hirogen commented Mar 23, 2023

fixed with #280

@Hirogen Hirogen closed this as completed Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Pesky little gritter, needs squashing
Projects
None yet
2 participants