Could not load file or assembly 'Bunifu_UI_v1.5.3' (Exception from HRESULT: 0x80131044)

痴心易碎 提交于 2019-12-11 05:32:39

问题


I've been getting this error in one of my Visual Studio 2017 projects for a while now:

'SploitBase UI©.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SploitBase UI©.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\Angus\Desktop\SploitBase UI©\SploitBase UI©\bin\Debug\SploitBase UI©.exe'. Symbols loaded.
'SploitBase UI©.exe' (CLR v4.0.30319: SploitBase UI©.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SploitBase UI©.exe' (CLR v4.0.30319: SploitBase UI©.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SploitBase UI©.exe' (CLR v4.0.30319: SploitBase UI©.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SploitBase UI©.exe' (CLR v4.0.30319: SploitBase UI©.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SploitBase UI©.exe' (CLR v4.0.30319: SploitBase UI©.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SploitBase UI©.exe' (CLR v4.0.30319: SploitBase UI©.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SploitBase UI©.exe' (CLR v4.0.30319: SploitBase UI©.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'SploitBase UI©.exe' (CLR v4.0.30319: SploitBase UI©.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Remoting.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Exception thrown: 'System.IO.FileLoadException' in SploitBase UI©.exe
An unhandled exception of type 'System.InvalidOperationException' occurred in SploitBase UI©.exe
An error occurred creating the form. See Exception.InnerException for details.  The error is: Could not load file or assembly 'Bunifu_UI_v1.5.3, Version=1.5.3.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)

The program '[5012] SploitBase UI©.exe' has exited with code -1 (0xffffffff).

I've re-downloaded the Bunifu DLL, and re-added it to Toolbox and References, but still doesn't seem to make a difference.

The program also enters 'Break mode' when I Start it, and whenever I start the program from

C:\Users\Chris\Desktop\SploitBase UI©\SploitBase UI©\bin\Debug

it says 'This program is not responding'.


回答1:


By default 'Just my code' option is enabled and with this options ON, VS will skip loading symbols for optimized dll-s. You can disable 'Just My Code' by unchecking this option in Debug->Options->Debugging->General:

Also, try to uncheck optimize code, under project properties:




回答2:


Bunifu Dll is not signed with a strong keyname, that is mistake made during deployment, what you need to do therefore is avoid signing your software - a temporary solution. A request has been submitted to the company to sign their assemblies. See below on how to disable - [ leave unchecked ].



来源:https://stackoverflow.com/questions/48835342/could-not-load-file-or-assembly-bunifu-ui-v1-5-3-exception-from-hresult-0x80

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!