Home > Net >  Win8.1 pro, "failed to load the file assemblies" problem
Win8.1 pro, "failed to load the file assemblies" problem

Time:10-14

The problem is shown in figure:


Box detailed error message:
On call in real time (JIT) debugging rather than detailed information about this dialog,
Please see the end of this message,

* * * * * * * * * * * * * * exception text * * * * * * * * * * * * * *
System. BadImageFormatException: failed to load file or assembly "NIST. Refprop. Interface, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" or one of its dependencies, trying to load the format is not correct procedure,
The file name: "the NIST. Refprop. Interface, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"
In WindowsFormsApplication1. Form1. Button1_Click (Object sender, EventArgs e)
In the System. Windows. Forms. Button. onm ouseUp (MouseEventArgs mevent)
In the System. Windows. Forms. Control. WmMouseUp (Message& M, MouseButtons button, Int32 on)
In the System. Windows. Forms. Control. WndProc (Message& M)
In the System. Windows. Forms. ButtonBase. WndProc (Message& M)
In the System. Windows. Forms. Button. WndProc (Message& M)
In the System. Windows. Forms. NativeWindow. Callback (IntPtr hWnd, Int32 MSG, IntPtr wparam, IntPtr lparam)

Warning: the assembly binding logging was shut down,
To enable the assembly bind failure logging, please keep registry value [registry key HKLM \ Software \ Microsoft \ Fusion! EnableLog] (DWORD) is set to 1,
Note: there will be some associated with assembly bind failure logging performance loss,
To shut down this function, please remove the registry value [registry key HKLM \ Software \ Microsoft \ Fusion! EnableLog],



* * * * * * * * * * * * * * loaded assembly * * * * * * * * * * * * * *
Mscorlib
The assembly version: 4.0.0.0
Win32 version: 4.0.30319.34209 built by: FX452RTMGDR
The basic code: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
WindowsFormsAppRefprop
The assembly version: 1.0.0.0
Win32 version: 1.0.0.0
The basic code: file:///Z:/wenminluo/PSFLSH_Error247_TestProject/bin/Debug/WindowsFormsAppRefprop.exe
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
System. Windows. Forms
The assembly version: 4.0.0.0
Win32 version: 4.0.30319.34209 built by: FX452RTMGDR
The basic code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
System. Drawing
The assembly version: 4.0.0.0
Win32 version: 4.0.30319.34209 built by: FX452RTMGDR
The basic code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
The System
The assembly version: 4.0.0.0
Win32 version: 4.0.30319.34209 built by: FX452RTMGDR
The basic code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
System. Windows. Forms. Resources
The assembly version: 4.0.0.0
Win32 version: 4.0.30319.33440 built by: FX45W81RTMREL
The basic code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dll
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Mscorlib. Resources
The assembly version: 4.0.0.0
Win32 version: 4.0.30319.33440 built by: FX45W81RTMREL
The basic code: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

* * * * * * * * * * * * * * JIT debugging * * * * * * * * * * * * * *
To enable the real time (JIT) debugging,
The application program or a computer. The config file (machine. Config) system. Windows. The forms section must set
JitDebugging value,
Compile the application must also be enabled
Debugging,

For example:




After enabling JIT debugging, any abnormal untreated
Will be sent to the registered on this computer JIT debugger,
Instead of the dialog box processing,

Test program is a way of using managed c # call write a c + + DLL, error, whether colleagues have encountered similar problems, still hope solutions, grateful to disrespect!!!!!


CodePudding user response:

NIST. Refprop. Interface DLL not found or is
NIST. Refprop. Interface. Other referenced library DLL does not exist
  •  Tags:  
  • C#
  • Related