Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error for System.Linq.Dynamic.Core.ParsingConfig.set_CustomTypeProvider #376

Open
mon4github opened this issue Jan 28, 2025 · 0 comments
Open

Comments

@mon4github
Copy link

Hi.
On https://www.nuget.org/packages/ClosedXML.Report/0.2.10 on the Dependencies tab:
System.Linq.Dynamic.Core (>= 1.3.8)

Radzen.Blazor since version 5.9.0 (current 5.9.5) uses System.Linq.Dynamic.Core версии 1.6.0
Version 1.6.0 has been updated due to security issues.
Package ClosedXML.Report 0.2.10 when using System.Linq.Dynamic.Core version 1.6.0 on the command
template.Generate()
began to give an error that the System.Linq.Dynamic.Core method ParsingConfig.set_CustomTypeProvider was not found:

fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
Unhandled exception in circuit 'oTSNbTowXyf2zRggTI7Ngs0R5CSbr6dbAqXtYx59hC0'.
System.Exception: An error occurred while generating report
---> System.MissingMethodException: Method not found: 'Void System.Linq.Dynamic.Core.ParsingConfig.set_CustomTypeProvider(System.Linq.Dynamic.Core.CustomTypeProviders.IDynamicLinkCustomTypeProvider)'.
at ClosedXML.Report.Utils.XLDynamicExpressionParser.ParseLambda(ParameterExpression[] parameters, Type resultType, String expression, Object[] values)
at ClosedXML.Report.FormulaEvaluator.ParseExpression(String formula, ParameterExpression[] parameters)
at ClosedXML.Report.FormulaEvaluator.Eval(String expression, Parameter[] pars)
at ClosedXML.Report.FormulaEvaluator.Evaluate(String formula, Parameter[] pars)
at ClosedXML.Report.RangeInterpreter.EvaluateValues(IXLRange range, Parameter[] pars)
at ClosedXML.Report.RangeInterpreter.Evaluate(IXLRange range)
at ClosedXML.Report.XLTemplate.Generate()

jafin added a commit to jafin/ClosedXML.Report that referenced this issue Jan 29, 2025
Adjust PassNullParameter test, add new case, comment out failing case.
See also CVE-2024-51417 zzzprojects/System.Linq.Dynamic.Core#867
jafin added a commit to jafin/ClosedXML.Report that referenced this issue Jan 29, 2025
Adjust PassNullParameter test, add new case, comment out failing case.
See also CVE-2024-51417 zzzprojects/System.Linq.Dynamic.Core#867
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant