Could not load file or assembly 'Microsoft.Cis.Monitoring.ConfigReader.DLL' or one of its dependencies

0

I add project A to the project B's reference list and it turned out such error.

I have tried:

  • clean, rebuild, reopen Visual Studio, clean bin and obj folder
  • use "Sysinternals Process Monitor". Cannot find any relevant and useful information.
  • Specify my build to be "Debug", "x64"
  • update very old Nuget packages
  • use "Fuision log viewer", it shows lz4X64 and lz4x86. One of these two file information is shown as follow(the other one is similar) I still cannot figure out any reason.
The operation failed.
Bind result: hr = 0x80131018. No description available.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  C:\Program Files\IIS Express\iisexpress.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = lz4X64
 (Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: lz4X64 | Domain ID: 2
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///D:/workspace/Myproject/
LOG: Initial PrivatePath = D:\workspace\Myproject\bin
LOG: Dynamic Base = C:\Users\my\AppData\Local\Temp\Temporary ASP.NET Files\vs\d0162efa
LOG: Cache Base = C:\Users\my\AppData\Local\Temp\Temporary ASP.NET Files\vs\d0162efa
LOG: AppName = 3f27dee
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: D:\workspace\Myproject\web.config
LOG: Using host configuration file: C:\Users\my\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Users/my/AppData/Local/Temp/Temporary ASP.NET Files/vs/d0162efa/3f27dee/lz4X64.DLL.
LOG: Attempting download of new URL file:///C:/Users/my/AppData/Local/Temp/Temporary ASP.NET Files/vs/d0162efa/3f27dee/lz4X64/lz4X64.DLL.
LOG: Attempting download of new URL file:///D:/workspace/Myproject/bin/lz4X64.DLL.
LOG: Assembly download was successful. Attempting setup of file: D:\workspace\Myproject\bin\lz4X64.dll
LOG: Entering download cache setup phase.
ERR: Error extracting manifest import from file (hr = 0x80131018).
ERR: Setup failed with hr = 0x80131018.
ERR: Failed to complete setup of assembly (hr = 0x80131018). Probing terminated.

Can anyone provide any other idea?

c#
.net
visual-studio
asked on Stack Overflow Mar 29, 2019 by Spencer

1 Answer

0

What you can try to do is since there are several dozen binaries not referenced in the code .BIN folder and this should not be in there at all. Renaming the bin folder and recompiling should solve the problem. But simply deleting it first of course.

answered on Stack Overflow Mar 29, 2019 by Tauheed

User contributions licensed under CC BY-SA 3.0