question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I installed ClosedXML.Report (version 0.2.6) [Dependencies ClosedXML version is 0.97.0) from the NuGet and write a simple program. When I run program, it’s OK. I also upgraded ClosedXML to the latest (version 0.100.3) and then when I run, I got this error message.

System.MissingMethodException HResult=0x80131513 Message=Method not found: ‘Void ClosedXML.Excel.IXLCell.set_Value(System.Object)’. Source=ClosedXML.Report StackTrace: at ClosedXML.Report.RangeInterpreter.ParseTags(IXLRange range, String rangeName) at ClosedXML.Report.RangeInterpreter.Evaluate(IXLRange range) at ClosedXML.Report.XLTemplate.Generate() at Program.<Main>$(String[] args) in D:\ConsoleApp\Program.cs:line 18

Here is the source.

var template = new XLTemplate(@"D:\Simple.xlsx");
var file = @"D:\Simple data.xlsx";
var cust = Customer.Default();

template.AddVariable(cust);
template.Generate();
template.SaveAs(file);
Process.Start(new ProcessStartInfo(file) { UseShellExecute = true });

I think, should be upgraded ClosedXML.Report to be working together with lasted update of ClosedXML.

Issue Analytics

  • State:closed
  • Created 7 months ago
  • Reactions:6
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
Pankratycommented, Jul 27, 2023

Versions 0.2.7 and 0.2.8 (referencing ClosedXML 0.100 and 0.101, respectively) have been released lately. The version 0.2.9 (referencing 0.102) is on its way.

3reactions
mymintincommented, Mar 10, 2023

I cloned the ClosedXML.Report source and then made some fixes. Now it’s working with ClosedXML version 0.100.3 (no more errors and output results correctly) but I am not sure all features of ClosedXML.Report is working or not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Method not found on runtime
"Method not found" is a very specific error, which means a method it expected (i.e. was there at compile time) simply is not...
Read more >
System.MissingMethodException - Method not found in C#
To fix the Method not found error in C#, ensure that the latest assemblies are deployed and no duplicate or older assemblies are...
Read more >
MissingMethodException Class (System)
MissingMethodException is thrown when code in a dependent assembly attempts to access a missing method in an assembly that was modified. MissingMethodException ...
Read more >
Why am I getting method not found exception?
Here is the error message: Method not found: 'Void ssContactManagementServices.Actions.ActionUpdateMessageById(OutSystems.HubEdition.
Read more >
Question - MissingMethodException: Method not found.
I've written a basic script that allows the player to slow time while they are aiming a weapon. Everything works fine until I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found