Hi, I've been trying to use ClosedXML with .NET4, I've installed the proper installation (tried a few versions),
downloaded the DocumentFormat.OpenXml.dll file for 4 (And for 3.5), and also tried using the SDK dll (SDK 2.5) that's in my Program Files dir, and nothing helps.
It compiles ok, but in runtime I get:
{System.IO.FileLoadException: Could not load file or assembly 'ClosedXML, Version=0.76.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'ClosedXML, Version=0.76.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b'
=== Pre-bind state information ===
LOG: DisplayName = ClosedXML, Version=0.76.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b
(Fully-specified)
LOG: Appbase = file:///C:/views/ResultsManager/
LOG: Initial PrivatePath = NULL
Calling assembly : ResultsManager, Version=1.0.0.3, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: ClosedXML, Version=0.76.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b
LOG: Attempting download of new URL file:///C:/views/ResultsManager/ClosedXML.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
}
I tried all the options with the properties of both DLLs - "Copy local" (true of false), "Specific Version" (true or false and what not.
Nothing helps.
I've even tried using .NET3.5 ClosedXML with OpenXml v2, and even mix the openXML and closedXML versions (.NET4 with SDK2, .NET3.5 with SDK 2.5, etc')
Any ideas?
Thanks
downloaded the DocumentFormat.OpenXml.dll file for 4 (And for 3.5), and also tried using the SDK dll (SDK 2.5) that's in my Program Files dir, and nothing helps.
It compiles ok, but in runtime I get:
{System.IO.FileLoadException: Could not load file or assembly 'ClosedXML, Version=0.76.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'ClosedXML, Version=0.76.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b'
=== Pre-bind state information ===
LOG: DisplayName = ClosedXML, Version=0.76.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b
(Fully-specified)
LOG: Appbase = file:///C:/views/ResultsManager/
LOG: Initial PrivatePath = NULL
Calling assembly : ResultsManager, Version=1.0.0.3, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: ClosedXML, Version=0.76.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b
LOG: Attempting download of new URL file:///C:/views/ResultsManager/ClosedXML.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
}
I tried all the options with the properties of both DLLs - "Copy local" (true of false), "Specific Version" (true or false and what not.
Nothing helps.
I've even tried using .NET3.5 ClosedXML with OpenXml v2, and even mix the openXML and closedXML versions (.NET4 with SDK2, .NET3.5 with SDK 2.5, etc')
Any ideas?
Thanks