"Cannot find an appropriate constructor..." in recent releases

Jan 19, 2012 at 8:33 AM

Is it possible that something has changed in the .Net 3.5 code between version 0.62.0 and 0.62.1 to produce the below error?  (seems to be the same for the .Net 4.0 code also)

I am using the dll in PowerShell, if that makes a difference.

PS D:\Development\PowerShell> Add-Type -Path "D:\Users\Jason\Desktop\ClosedXML-0.62.0.dll"
PS D:\Development\PowerShell> $wb = New-Object -TypeName ClosedXml.Excel.XLWorkbook

--

PS D:\Development\PowerShell> Add-Type -Path "D:\Users\Jason\Desktop\ClosedXML-0.62.1.dll"
PS D:\Development\PowerShell> $wb = New-Object -TypeName ClosedXml.Excel.XLWorkbook
New-Object : Constructor not found. Cannot find an appropriate constructor for type ClosedXml.Excel.XLWorkbook.
At line:1 char:17
+ $wb = New-Object <<<<  -TypeName ClosedXml.Excel.XLWorkbook
    + CategoryInfo          : ObjectNotFound: (:) [New-Object], PSArgumentException
    + FullyQualifiedErrorId : CannotFindAppropriateCtor,Microsoft.PowerShell.Commands.NewObjectCommand

Hopefully, this is an easy one (probably something I'm doing wrong).  Definitely looking forward to using the latest AdjustToContents (71903)!

Coordinator
Jan 19, 2012 at 1:52 PM

Overloaded workbook constructor for 3.5 users. Pick up the latest code.