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

[BUG] FileLoadException: Could not load file or assembly 'System.Drawing.Common, Version=4.0.2.2 #165

Closed
Hofknecht opened this issue Apr 29, 2021 · 5 comments

Comments

@Hofknecht
Copy link
Owner

Hofknecht commented Apr 29, 2021

Thank you Ralf and Timohy for reporting

SystemTrayMenu Bug reported 1.0.17.24

System.IO.FileLoadException: Could not load file or assembly 'System.Drawing.Common, Version=4.0.2.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)File name: 'System.Drawing.Common, Version=4.0.2.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, StackCrawlMarkHandle stackMark, ObjectHandleOnStack assemblyLoadContext, Boolean loadTypeFromPartialName, ObjectHandleOnStack type, ObjectHandleOnStack keepalive) at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, StackCrawlMark


@Hofknecht
Copy link
Owner Author

at the moment i can not reproduce

i found this
JanKallman/EPPlus#594
here the solution was
4.5.3.2 has the above problem,i downgrade to 4.5.3,it works well.


Press Windows + R.
Type cmd.

check .net core verison
dotnet --version
3.1.301

check .net version
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP"

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\CDF
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.0
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4.0

@Hofknecht
Copy link
Owner Author

Hofknecht commented May 2, 2021

Thank you Jean-Pierre for reporting

until now 3 user reported this bug

@topeterk
Copy link
Collaborator

topeterk commented May 2, 2021

@Tanjalibertatis
Copy link
Collaborator

It is occuring on this pc here, also in debug and reproducible when opening settings, see here
image

not depending on framework because same output for framework with these commands
image

even shown in debugger when try to select designer
image

Hofknecht added a commit that referenced this issue May 9, 2021
…ing.Common, Version=4.0.2.2 (#165), version 1.0.17.40
@Hofknecht
Copy link
Owner Author

we got feedback from 1/3 users

Merci pour votre message !
J'ai résolu le problème.
J'ai désinstallé complètement votre programme, puis je l'ai réinstallé !
Et il fonctionne très bien !
Encore merci !

=> seems to solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants