I am trying to use ClosedXML to create excel documents in an application, but when I try to run it, I get can not load the file or assembly server error.
Could not load file or assembly 'DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
I saw several solutions for this, which include changing the "Copy local" value for the .dll in its properties and adding the assembly directly to the web.config file.
I am using Visual Studios 2010 and the dll properties do not include the copy local entry. Then, when I enter the next build in the web configuration, I still get the server error message. I got the assembly from the error message.
<add assembly="ClosedXML, Version=0.76.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b"/>
source share